OP_CHECK_SIG_ADD

(186 | 0xba)

Input

1 items

|

Output

1 items

The operation OP_CHECKSIGADD verifies a signature against a public key and increments the result by one if successful. It follows the OP_CHECKSIG operation, which typically pops three items off the stack: the signature, the public key, and the original data. If the signature verification is successful, OP_CHECKSIGADD pushes back the incremented verification result onto the stack; otherwise, it pushes 0 onto the stack.

OP_Code Walkthrough

Verifies a signature against a public key and increments the result by one if successful.

Pop public key

Pop signature

Apply OP_CHECKSIGADD

add the result to the initial value

Push incremented verification result to the stack