rainbreak / solidity-btc-parser

Solidity library to parse raw Bitcoin transaction bytes
Other
33 stars 11 forks source link

Be a library again #13

Closed rainbreak closed 8 years ago

rainbreak commented 8 years ago

This was a library before but changed to a contract because libraries can't hold non constant state. We want some constant state in the form of pre-computed byte arrays, but arrays cannot be constant at present in Solidity.

rainbreak commented 8 years ago

Once it is a library again we can use using for and a custom transaction struct to do all sorts of fancy things.

rainbreak commented 8 years ago

Implemented.