Skip to content

Commit

Permalink
Merge pull request #18 from hirosystems/add-non-seq-multi-sig
Browse files Browse the repository at this point in the history
feat: add non-sequential AddressHashMode for multi-sig
  • Loading branch information
zone117x authored Jul 2, 2024
2 parents 9e2aa26 + 84badb5 commit 09fd8ca
Show file tree
Hide file tree
Showing 13 changed files with 223 additions and 87 deletions.
186 changes: 121 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sha2 = { version = "0.10", features = ["asm"] }
sha2 = { version = "0.10" }

[dependencies.neon]
version = "0.10.0"
version = "1.0.0"
# git = "https://github.com/zone117x/neon"
# rev = "bdb936a7fba8fb932fc61cbe529e06f65f75f9d9"
default-features = false
Expand Down
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,12 @@ export enum TxSpendingConditionSingleSigHashMode {
export enum TxSpendingConditionMultiSigHashMode {
/** hash160(multisig-redeem-script), same as bitcoin's multisig p2sh */
P2SH = 0x01,
/** hash160(multisig-redeem-script), same as bitcoin's multisig p2sh (non-sequential signing) */
P2SHNonSequential = 0x05,
/** hash160(segwit-program-00(public-keys)), same as bitcoin's p2sh-p2wsh */
P2WSH = 0x03,
/** hash160(segwit-program-00(public-keys)), same as bitcoin's p2sh-p2wsh (non-sequential signing) */
P2WSHNonSequential = 0x07,
}

export enum ClarityVersion {
Expand Down
Loading

0 comments on commit 09fd8ca

Please sign in to comment.