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

Method is_valid_index

src/wallet.rs:397–404  ·  view source on GitHub ↗
(&self, index: u32)

Source from the content-addressed store, hash-verified

395 }
396
397 pub fn is_valid_index(&self, index: u32) -> bool {
398 if self.is_wildcard {
399 // non-hardended derivation only
400 index & (1 << 31) == 0
401 } else {
402 index == 0
403 }
404 }
405
406 pub fn find_gap(&self, store: &MemoryStore) -> Option<usize> {
407 // return None if this wallet has no history at all

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected