Skip to content

Commit 51e07db

Browse files
committed
Use full tuple instead of KeySource
The `KeySource` type is a type alias from `bitcoin::bip32` for a tuple (fingerprint, derivation_path). In other places in the code we use the full tuple, we should be uniform and use one or the other. Elect to use the tuple. Use full tuple `(FingerPrint, DerivationPath)` instead of `KeySource`.
1 parent 33af3ad commit 51e07db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/descriptor/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub struct DescriptorSinglePub {
4343
#[derive(Debug)]
4444
pub struct DescriptorSinglePriv {
4545
/// Origin information (fingerprint and derivation path).
46-
pub origin: Option<bip32::KeySource>,
46+
pub origin: Option<(bip32::Fingerprint, bip32::DerivationPath)>,
4747
/// The private key.
4848
pub key: bitcoin::PrivateKey,
4949
}

0 commit comments

Comments
 (0)