PubPort
A tool to import a wallet public key with descriptors from many different formats seamlessly
Supported formats
- Descriptors
- Electrum
- Wasabi
- JSON
- Bare XPUB
- BIP380 Key Expressions
- note: XPUBs only, key expressions with private keys, bare compressed or uncompressed public keys are not supported)
Supported descriptors
- Single Sig
Examples
Import in generic JSON format used by many wallets
use Format;
let string = read_to_string.unwrap;
let format = try_new_from_str;
assert!;
let format = format.unwrap;
assert!;
Import from file containing descriptors
note: need external and internal descriptors, but can be single descriptor or multiple descriptor format
use Format;
let string = read_to_string.unwrap;
let format = try_new_from_str;
assert!;
let format = format.unwrap;
assert!;
Import from wasabi wallet format
use Format;
let string = read_to_string.unwrap;
let format = try_new_from_str;
assert!;
let format = format.unwrap;
assert!;
Import from electrum wallet format
use Format;
let string = read_to_string.unwrap;
let format = try_new_from_str;
assert!;
let format = format.unwrap;
assert!;