pub fn is_valid_checksum(address: &str) -> Result<bool> {
    let address_without_checksum = remove_checksum(address);
    let address_with_recalculated_checksum =
        address_without_checksum.clone() + &calculate_checksum(&address_without_checksum)?;
    Ok(address == address_with_recalculated_checksum)
}
/// If an address has a valid checksum
If an address has a valid checksum
If an address has a valid checksum
pub fn is_valid_checksum(address: &str) -> Result<bool> {
    let address_without_checksum = remove_checksum(address);
    let address_with_recalculated_checksum =
        address_without_checksum.clone() + &calculate_checksum(&address_without_checksum)?;
    Ok(address == address_with_recalculated_checksum)
}
pub fn is_valid_checksum ( address : & str ) -> Result < bool > { let address_without_checksum = remove_checksum ( address ) ; let address_with_recalculated_checksum = address_without_checksum . clone ( ) + & calculate_checksum ( & address_without_checksum ) ? ; Ok ( address == address_with_recalculated_checksum ) }
If an address has a valid checksum
If an address has a valid checksum
address
&str