2

To me it looks like colored coins just have additional information stored. It sounds like a struct that has an additional variable. There's probably more to it, I did not yet check that in the source code, but it sounds easy to implement (just add the variable).

1 Answer 1

1

It is not hard to implement colored coins. There are a few details you need to keep in mind, though:

  • Remember for each UTXO which color it was for

  • Make sure to verify that when a transaction generates colored coins, they are either the same color as at least one of the inputs (and their sum matches) or a completely new color (for example, derived from the transaction ID).

1
  • thank you very much
    – user5793
    Jun 26, 2021 at 15:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.