Function bech32::encode_upper
source · pub fn encode_upper<Ck: Checksum>(
hrp: Hrp,
data: &[u8]
) -> Result<String, EncodeError>
Expand description
Encodes data
as an uppercase bech32 encoded string.
Encoded string will be prefixed with the hrp
and have a checksum appended as specified by the
Ck
algorithm (NoChecksum
to exclude checksum all together).