Skip to content

Commit

Permalink
Add BIP-384 test vector
Browse files Browse the repository at this point in the history
  • Loading branch information
azuchi committed Jul 4, 2024
1 parent 18244b4 commit 671a72b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/bitcoin/descriptor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
expect{wsh(sh(pk('L4rK1yDtCWekvXuE6oXD9jCYfFNV2cWRpVuPLBcCU2z8TrisoyY1')))}.to raise_error(ArgumentError, 'Can only have sh() at top level.')
expect{sh(sh(pk('L4rK1yDtCWekvXuE6oXD9jCYfFNV2cWRpVuPLBcCU2z8TrisoyY1')))}.to raise_error(ArgumentError, 'Can only have sh() at top level.')
expect{wsh(wsh(pk('L4rK1yDtCWekvXuE6oXD9jCYfFNV2cWRpVuPLBcCU2z8TrisoyY1')))}.to raise_error(ArgumentError, 'Can only have wsh() at top level or inside sh().')
expect{combo(pkh('03a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd'))}.to raise_error(ArgumentError, 'key must be string.') # BIP-384

# Checksums
expected = 'a91445a9a622a8b0a1269944be477640eedc447bbd8487'
Expand Down

0 comments on commit 671a72b

Please sign in to comment.