Skip to content

Add OP_CHECKSIGADD opcode #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Haskoin/Script/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ data ScriptOp
| OP_NOP8
| OP_NOP9
| OP_NOP10
-- BIP 342 (Tapscript)
| OP_CHECKSIGADD
| -- Other
OP_PUBKEYHASH
| OP_PUBKEY
Expand Down Expand Up @@ -348,6 +350,8 @@ instance Serial ScriptOp where
| op == 0xb7 = return OP_NOP8
| op == 0xb8 = return OP_NOP9
| op == 0xb9 = return OP_NOP10
-- BIP 342 (Tapscript)
| op == 0xba = return OP_CHECKSIGADD
-- Constants
| op == 0xfd = return OP_PUBKEYHASH
| op == 0xfe = return OP_PUBKEY
Expand Down Expand Up @@ -500,6 +504,8 @@ instance Serial ScriptOp where
OP_NOP8 -> putWord8 0xb7
OP_NOP9 -> putWord8 0xb8
OP_NOP10 -> putWord8 0xb9
-- BIP 342 (Tapscript)
OP_CHECKSIGADD -> putWord8 0xba


instance Binary ScriptOp where
Expand Down