-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
Description
The last remaining opcode in the engine to be implemented is OP_CHECKSIGADD.
Description
Three values are popped from the stack. The integer n is incremented by one and returned to the stack if the signature is valid for the public key and transaction. The integer n is returned to the stack unchanged if the signature is the empty vector (OP_0). In any other case, the script is invalid. This opcode is only available in tapscript.
NOTE
A large part of the work for OP_CHECKSIGADD had been done as part of this PR, but was closed due to time constraints. This could be a very good start.
We will need to implement the opcode and a set of tests.