pub fn generate_addresses(&mut self, depth: u64) -> Result<()> {
        let current = self.key_leaf.0;
        if current > depth {
            return Err(WalletError::LibraWalletGeneric(
                "Addresses already generated up to the supplied depth".to_string(),
            )
            .into());
        }
        while self.key_leaf != ChildNumber(depth) {
            let _ = self.new_address();
        }
        Ok(())
    }
/// Function that iterates from the current key_leaf until the supplied depth
Function that iterates from the current key_leaf until the supplied depth
Function that iterates from the current key_leaf until the supplied depth
pub fn generate_addresses(&mut self, depth: u64) -> Result<()> {
        let current = self.key_leaf.0;
        if current > depth {
            return Err(WalletError::LibraWalletGeneric(
                "Addresses already generated up to the supplied depth".to_string(),
            )
            .into());
        }
        while self.key_leaf != ChildNumber(depth) {
            let _ = self.new_address();
        }
        Ok(())
    }
pub fn generate_addresses ( & mut self , depth : u64 ) -> Result < ( ) > { let current = self . key_leaf . 0 ; if current > depth { return Err ( WalletError :: LibraWalletGeneric ( " " . to_string ( ) , ) . into ( ) ) ; } while self . key_leaf != ChildNumber ( depth ) { let _ = self . new_address ( ) ; } Ok ( ( ) ) }
Function that iterates from the current key_leaf until the supplied depth
Function that iterates from the current key_leaf until the supplied depth
&mut self
depth
u64
&mut self
depth
u64