MCPcopy Create free account
hub / github.com/bwt-dev/bwt / derive_address

Method derive_address

src/wallet.rs:379–382  ·  view source on GitHub ↗

Derive an address using the given non-hardended child derivation index. Assumes the index is valid and panics if not. See is_valid_index().

(&self, index: u32)

Source from the content-addressed store, hash-verified

377 /// Derive an address using the given non-hardended child derivation index.
378 /// Assumes the index is valid and panics if not. See is_valid_index().
379 pub fn derive_address(&self, index: u32) -> Address {
380 descriptor::derive_address(&self.desc, index, self.network)
381 .expect("constructed Wallet must have address representation")
382 }
383
384 pub fn derive_desc(&self, index: u32) -> ExtendedDescriptor {
385 self.desc.derive(index)

Callers 3

make_importsMethod · 0.80
find_gapMethod · 0.80

Calls 1

derive_addressFunction · 0.85

Tested by

no test coverage detected