Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ngccc colored coin store
Stores information about colored transaction outputs.
For the sake of simplicity and interoperability, we'll use SQLite database for this, although eventually might switch to something offering higher performance and lower overhead.
(color_id, txhash, outindex, value, label). Label can be used by advanced coloring functions, otherwise it is unnecessary.
ColoredCoinStore add(color_id, txhash, outindex, value, label) remove(color_id, txhash, outindex) get(color_id, txhash, outindex) get_any(ctxhash, outindex) get_all(color_id)