diff --git a/contrib/test.sh b/contrib/test.sh index 541516fa..71236ce4 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -10,6 +10,7 @@ rustc --version # Pin dependencies required to build with Rust 1.58 if cargo --version | grep "1\.58"; then cargo update -p byteorder --precise 1.4.3 + cargo update -p cc --precise 1.0.94 fi # Format if told to diff --git a/fuzz/fuzz.sh b/fuzz/fuzz.sh index 3d940c02..229a7072 100755 --- a/fuzz/fuzz.sh +++ b/fuzz/fuzz.sh @@ -19,6 +19,7 @@ cargo --version rustc --version cargo update -p byteorder --precise 1.4.3 +cargo update -p cc --precise 1.0.94 # Testing cargo install --force honggfuzz --no-default-features diff --git a/src/confidential/mod.rs b/src/confidential/mod.rs index 39786888..2935c46f 100644 --- a/src/confidential/mod.rs +++ b/src/confidential/mod.rs @@ -404,13 +404,22 @@ mod tests { conf_addr: "lq1pq26fndnz8ef6umlz6e2755sm6j5jwxv3tdt2295mr4mx6ux0uf8vcc2tuvwx7k7g9kvhhpux07vqpm3qjj8uwdj94650265ustv0xy8z8wfacw9e5a5t", unconf_addr: "ex1pv997x8r0t0yzmxtms7r8lxqqacsffr78xez6a284d2wg9k8nzr3qxa9kvf", }, + // Bare, P2WPKH ConfidentialTest { - key: Key::Bare(single_ct_key), + key: Key::Bare(single_ct_key.clone()), descriptor: crate::Descriptor::new_wpkh(single_spk_key).unwrap(), descriptor_str: format!("ct(02dce16018bbbb8e36de7b394df5b5166e9adb7498be7d881a85a09aeecf76b623,elwpkh(03774eec7a3d550d18e9f89414152025b3b0ad6a342b19481f702d843cff06dfc4))#h5e0p6m9"), conf_addr: "lq1qq0r6pegudzm0tzpszelc34qjln4fdxawgwmgnza63wwpzdy6jrm0grmqvvk2ce5ksnxcs9ecgtnryt7xg3406y5ccl0k2glns", unconf_addr: "ex1qpasxxt9vv6tgfnvgzuuy9e3j9lryg6hawrval4", }, + // Bare, P2WPKH xpub + ConfidentialTest { + key: Key::Bare(single_ct_key), + descriptor: crate::Descriptor::new_wpkh(spk_key.clone()).unwrap(), + descriptor_str: format!("ct(02dce16018bbbb8e36de7b394df5b5166e9adb7498be7d881a85a09aeecf76b623,elwpkh({}))#x6sc2de2", spk_key), + conf_addr: "lq1qqwkeuelr466ue5u8e0lz3a27q4yk93qnupry5h3q4h9pjpf8vrrzvknpl78t02k2xqgdh9ltmfmpy9ssk7qfvwt93dvuvssha", + unconf_addr: "ex1qtfsllr4h4t9rqyxmjl4a5asjzcgt0qyktcafre", + }, ]; for test in &tests {