MCPcopy Create free account
hub / github.com/chain/txvm / VerifyTxID

Function VerifyTxID

protocol/txbuilder/standard/standard.go:12–18  ·  view source on GitHub ↗

VerifyTxID returns a program that verifies the txid matches the given value.

(txid [32]byte)

Source from the content-addressed store, hash-verified

10// VerifyTxID returns a program that verifies the txid matches the
11// given value.
12func 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}

Callers 3

SignMethod · 0.92
TxMethod · 0.92
TestProgCreationFunction · 0.85

Calls 3

OpMethod · 0.95
PushdataBytesMethod · 0.95
BuildMethod · 0.95

Tested by 1

TestProgCreationFunction · 0.68