We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0b7217 + 39dafdf commit 40e0e1dCopy full SHA for 40e0e1d
packages/wasm-utxo/src/fixed_script_wallet/wallet_keys.rs
@@ -9,20 +9,6 @@ pub type XpubTriple = [Xpub; 3];
9
10
pub type PubTriple = [CompressedPublicKey; 3];
11
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
26
pub fn to_pub_triple(xpubs: &XpubTriple) -> PubTriple {
27
xpubs
28
.iter()
0 commit comments