()
| 49 | type outputIDConstraint bc.Hash |
| 50 | |
| 51 | func (o outputIDConstraint) code() []byte { |
| 52 | builder := vmutil.NewBuilder() |
| 53 | builder.AddData(bc.Hash(o).Bytes()) |
| 54 | builder.AddOp(vm.OP_OUTPUTID) |
| 55 | builder.AddOp(vm.OP_EQUAL) |
| 56 | return builder.Program |
| 57 | } |
| 58 | |
| 59 | // refdataConstraint requires the refdatahash of the transaction (if |
| 60 | // tx is true) or the input (if tx is false) to match that of the |