pub fn address(mode: HashMode, digests: &mut [i8]) -> Result<[i8; HASH_LENGTH]> {
    ensure!(
        !digests.is_empty() && digests.len() % HASH_LENGTH == 0,
        "Invalid key length: {}",
        digests.len()
    );
    let mut address = [0; HASH_LENGTH];
    hash_with_mode(mode, digests, &mut address)?;
    Ok(address)
}
/// Generate address
///
/// * `mode` - The hashing mode to use
/// * `digests` - Digests used to generate address
Generate address
`mode` - The hashing mode to use
`digests` - Digests used to generate address
Generate address ` mode ` - The hashing mode to use ` digests ` - Digests used to generate address
pub fn address(mode: HashMode, digests: &mut [i8]) -> Result<[i8; HASH_LENGTH]> {
    ensure!(
        !digests.is_empty() && digests.len() % HASH_LENGTH == 0,
        "Invalid key length: {}",
        digests.len()
    );
    let mut address = [0; HASH_LENGTH];
    hash_with_mode(mode, digests, &mut address)?;
    Ok(address)
}
pub fn address ( mode : HashMode , digests : & mut [ i8 ] ) -> Result < [ i8 ; HASH_LENGTH ] > { ensure ! ( digests is_empty ( ) digests len ( ) HASH_LENGTH 0 " " digests len ( ) ) ; let mut address = [ 0 ; HASH_LENGTH ] ; hash_with_mode ( mode , digests , & mut address ) ? ; Ok ( address ) }
Generate address
 `mode` - The hashing mode to use
 `digests` - Digests used to generate address
Generate address ` mode ` - The hashing mode to use ` digests ` - Digests used to generate address
mode
HashMode
digests
&mut [i8]