Skip to main content

bech32_encode

Function bech32_encode 

Source
pub fn bech32_encode(hrp: Hrp, data: &[u8]) -> String
Expand description

Encodes data as a Bech32-encoded string with the given HRP.

This implements Bech32 as defined in BIP-173, except it does not enforce the length restriction, allowing for a reduction in error-correcting properties.