Skip to content

Commit 39dafdf

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo): remove unused xpub_triple_from_strings function
Remove an unused function that was parsing string arrays into xpub triples. Issue: BTC-2786 Co-authored-by: llm-git <[email protected]>
1 parent 9556545 commit 39dafdf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/wasm-utxo/src/fixed_script_wallet/wallet_keys.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@ pub type XpubTriple = [Xpub; 3];
99

1010
pub type PubTriple = [CompressedPublicKey; 3];
1111

12-
pub fn xpub_triple_from_strings(xpub_strings: &[String; 3]) -> Result<XpubTriple, WasmUtxoError> {
13-
let xpubs: Result<Vec<Xpub>, _> = xpub_strings
14-
.iter()
15-
.map(|s| {
16-
Xpub::from_str(s)
17-
.map_err(|e| WasmUtxoError::new(&format!("Failed to parse xpub: {}", e)))
18-
})
19-
.collect();
20-
21-
xpubs?
22-
.try_into()
23-
.map_err(|_| WasmUtxoError::new("Expected exactly 3 xpubs"))
24-
}
25-
2612
pub fn to_pub_triple(xpubs: &XpubTriple) -> PubTriple {
2713
xpubs
2814
.iter()

0 commit comments

Comments
 (0)