View Source BitcoinLib.Script.Opcodes.Crypto.CheckMultiSig (BitcoinLib v0.4.3)

Based on https://en.bitcoin.it/wiki/Script

Word OP_CHECKMULTISIG Opcode 174 Hex 0xae Input x sig1 sig2 ... <number of signatures> pub1 pub2 <number of public keys> Output True / False Description Compares the first signature against each public key until it finds an ECDSA match. Starting with the subsequent public key, it compares the second signature against each remaining public key until it finds an ECDSA match. The process is repeated until all signatures have been checked or not enough public keys remain to produce a successful result. All signatures need to match a public key. Because public keys are not checked again if they fail any signature comparison, signatures must be placed in the scriptSig using the same order as their corresponding public keys were placed in the scriptPubKey or redeemScript. If all signatures are valid, 1 is returned, 0 otherwise. Due to a bug, one extra unused value is removed from the stack.

Link to this section Summary

Functions

Returns <<0xae>>

NOT IMPLEMENTED YET

v()

Returns 0xaf

Link to this section Functions

@spec encode() :: <<_::8>>

Returns <<0xae>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.Crypto.CheckMultiSig.encode()
<<0xae>>
Link to this function

execute(check_multi_sig, list)

View Source

NOT IMPLEMENTED YET

@spec v() :: 174

Returns 0xaf

examples

Examples

iex> BitcoinLib.Script.Opcodes.Crypto.CheckMultiSig.v()
0xae