Skip to content

[feat] Implement OP_CHECKSIGADD #245

@b-j-roberts

Description

@b-j-roberts

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.

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions