MCPcopy Create free account
hub / github.com/btcsuite/btcd / opcodeCheckSigVerify

Function opcodeCheckSigVerify

txscript/opcode.go:2109–2115  ·  view source on GitHub ↗

opcodeCheckSigVerify is a combination of opcodeCheckSig and opcodeVerify. The opcodeCheckSig function is invoked followed by opcodeVerify. See the documentation for each of those opcodes for more details. Stack transformation: [... signature pubkey] -> [... bool] -> [...]

(op *opcode, data []byte, vm *Engine)

Source from the content-addressed store, hash-verified

2107//
2108// Stack transformation: [... signature pubkey] -> [... bool] -> [...]
2109func opcodeCheckSigVerify(op *opcode, data []byte, vm *Engine) error {
2110 err := opcodeCheckSig(op, data, vm)
2111 if err == nil {
2112 err = abstractVerify(op, vm, ErrCheckSigVerify)
2113 }
2114 return err
2115}
2116
2117// opcodeCheckSigAdd implements the OP_CHECKSIGADD operation defined in BIP
2118// 342. This is a replacement for OP_CHECKMULTISIGVERIFY and OP_CHECKMULTISIG

Callers

nothing calls this directly

Calls 2

opcodeCheckSigFunction · 0.85
abstractVerifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…