Skip to content

Commit 63b6771

Browse files
committed
elip151: add multisig test vectors
We're relying on into_single_descriptors behavior, make that more explicit with more test cases.
1 parent 3abd2fa commit 63b6771

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/confidential/elip151.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ mod test {
176176
for (desc, key) in [
177177
(&format!("elwpkh({xpub}/<0;1>/*)"), "b3baf94d60cf8423cd257283575997a2c00664ced3e8de00f8726703142b1989"),
178178
(&format!("elwpkh({xpub}/0/*)"), "de9c5fb624154624146a8aea0489b30f05c720eed6b493b1f3ab63405a11bf37"),
179+
(&format!("elwsh(multi(2,{xpub}/<0;1>/*,{xpub}/0/<0;1>/*))"), "7fcc1b9a20bbf611d157016192a7d28e353033cfa6a4885b3c48fa5ff9ce1881"),
180+
(&format!("elwsh(multi(2,{xpub}/<0;1>/*,{xpub}/0/<1;2>/*))"), "ff0a08050417f0ca95fb6ef7df979ae464739cb79b8c8f4b05408e0ac681a527"),
179181
] {
180182
let conf_desc = confidential_descriptor(desc).unwrap();
181183
let elip151_desc = add_checksum(&format!("ct(elip151,{})", desc));

0 commit comments

Comments
 (0)