You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #95: Remove inner checksum in pegin descriptor
fe43086 remove inner checksum in pegin desc and fix test (Riccardo Casatta)
1a0fa05 expand pegin test to show inner checksum (Riccardo Casatta)
Pull request description:
I noticed in the pegin descriptor inner checksum are printed, for example:
`pegin(feddesc#cheksum, elem_desc#cheksum)#checksum`
and this changes it to
`pegin(feddesc, elem_desc)#checksum`
ACKs for top commit:
apoelstra:
ACK fe43086; successfully ran local tests
Tree-SHA512: 59c411c4ec17b71a244a92e73fd9f1938bda68df5e7fff5211055065c66b336b65ea2aea35ae1437a41ab90678f9ed6d8646ca01e229f2f10d39771ce01877e8
let s = super::bitcoin_witness_script(&d,&claimscript,&secp).unwrap();
353
354
let b = bitcoin::Address::p2wsh(&s, bitcoin::Network::Bitcoin);
354
355
assert_eq!(mainchain_address, b.to_string());
356
+
357
+
let elem_desc = "ct(slip77(ab5824f4477b4ebb00a132adfd8eb0b7935cf24f6ac151add5d1913db374ce92),elwpkh([759db348/84'/1'/0']tpubDCRMaF33e44pcJj534LXVhFbHibPbJ5vuLhSSPFAw57kYURv4tzXFL6LSnd78bkjqdmE3USedkbpXJUPA1tdzKfuYSL7PianceqAhwL2UkA/0/*))";
358
+
let elem_desc:ConfidentialDescriptor<DescriptorPublicKey> = elem_desc.parse().unwrap();
359
+
let elem_desc = elem_desc.descriptor.at_derivation_index(0).unwrap();
360
+
let elem_desc = elem_desc.derived_descriptor(&secp).unwrap();
0 commit comments