hexresearch / hschain-utxo

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

Generalize transaction type #151

Closed Shimuuar closed 3 years ago

Shimuuar commented 3 years ago
  1. Get rid of ExpectedBox by noticing that it's same as InputBoxRef where proof is replaced with sigma expression. So we could just make type of "proof" type parameter to InputBoxRef

  2. Introduce type GTx which unify both Tx ~ GTx Proof Box and PreTx a ~ GTx a PreBox. Tx is provided as type synonym.

  3. Use crypto-hashable machinery for calculation of TxId & BoxId