VerifyTxID returns a program that verifies the txid matches the given value.
(txid [32]byte)
| 10 | // VerifyTxID returns a program that verifies the txid matches the |
| 11 | // given value. |
| 12 | func VerifyTxID(txid [32]byte) []byte { |
| 13 | var b txvmutil.Builder |
| 14 | b.Op(op.TxID) |
| 15 | b.PushdataBytes(txid[:]) |
| 16 | b.Op(op.Eq).Op(op.Verify) |
| 17 | return b.Build() |
| 18 | } |