pub struct ExpandedKey {
pub idx: u8,
pub origin_path: OriginPath,
pub use_site_path: UseSitePath,
pub fingerprint: Option<[u8; 4]>,
pub xpub: Option<[u8; 65]>,
}Expand description
Fully-resolved per-@N key record produced by expand_per_at_n.
Each field is populated via the canonical-fill / per-@N override
composition rules (spec v0.13 §5.3 + §6.3, “Option A”):
origin_path:OriginPathOverrides[idx]if present, elsepath_declresolved per theShared/Divergentvariant.use_site_path:UseSitePathOverrides[idx]if present, elseDescriptor::use_site_path(the descriptor-level baseline).fingerprint:Fingerprints[idx]if present, elseNone.xpub:Pubkeys[idx]if present, elseNone.
Fields§
§idx: u8Placeholder index @N; equals position in the returned Vec.
origin_path: OriginPathResolved origin path (per-@N override or path_decl baseline).
use_site_path: UseSitePathResolved use-site path (per-@N override or descriptor baseline).
fingerprint: Option<[u8; 4]>4-byte master fingerprint, if a Fingerprints entry is present.
xpub: Option<[u8; 65]>65-byte xpub (32 chain-code || 33 compressed pubkey), if a
Pubkeys entry is present.
Trait Implementations§
Source§impl Clone for ExpandedKey
impl Clone for ExpandedKey
Source§fn clone(&self) -> ExpandedKey
fn clone(&self) -> ExpandedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpandedKey
impl Debug for ExpandedKey
Source§impl PartialEq for ExpandedKey
impl PartialEq for ExpandedKey
Source§fn eq(&self, other: &ExpandedKey) -> bool
fn eq(&self, other: &ExpandedKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExpandedKey
impl StructuralPartialEq for ExpandedKey
Auto Trait Implementations§
impl Freeze for ExpandedKey
impl RefUnwindSafe for ExpandedKey
impl Send for ExpandedKey
impl Sync for ExpandedKey
impl Unpin for ExpandedKey
impl UnsafeUnpin for ExpandedKey
impl UnwindSafe for ExpandedKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more