bradyrussell / UISCoin

Java cryptocurrency made to learn more about Bitcoin.
https://bradyrussell.github.io/UISCoin/javadoc
0 stars 1 forks source link

OpCode FLAG #23

Closed bradyrussell closed 3 years ago

bradyrussell commented 3 years ago

perhaps I should add a FLAG operator which takes a single byte following it. this can be used to set metadata or settings for a script. one idea is a script can start with a FLAG with an identifier for a standard script type (p2pkh etc) for faster parsing by clients as a valid UTXO.

bradyrussell commented 3 years ago

should not have any effect on the execution. maybe we can replace this with a standardized comment prepended to scripts?

bradyrussell commented 3 years ago

could make a method List< byte > getFlagsForScript(byte[] Script) that returns all the flags found in a script