hexresearch / hschain-utxo

UTXO-based contracts for hschain
0 stars 0 forks source link

Drop BoxId from Box #169

Closed Shimuuar closed 3 years ago

Shimuuar commented 3 years ago

Drop BoxId from Box

We don't need to carry it around since it's computed from transaction.  This
allows to eliminate PreBox & PreTx on the flip side we have to introduce IBox
which caches box ID. Still it simplify user-facing API by removing Tx/PreTx
distinction