rainbreak/solidity-btc-parser

Be a library again

rainbreak opened this issue · 2 comments

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.

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

Implemented.