From 671a72bf4d057801d8749552f8656a39f57c73c6 Mon Sep 17 00:00:00 2001 From: azuchi Date: Thu, 4 Jul 2024 14:07:22 +0900 Subject: [PATCH] Add BIP-384 test vector --- spec/bitcoin/descriptor_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/bitcoin/descriptor_spec.rb b/spec/bitcoin/descriptor_spec.rb index b22b043..4e16ddc 100644 --- a/spec/bitcoin/descriptor_spec.rb +++ b/spec/bitcoin/descriptor_spec.rb @@ -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'