View Source Bitcoinex.Bech32 (bitcoinex v0.1.8)
Includes Bech32 serialization and validation.
Reference: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#bech32
Link to this section Summary
Link to this section Types
Link to this section Functions
@spec decode(String.t(), max_encoded_length()) :: {:ok, {encoding_type(), hrp(), data()}} | {:error, error()}
@spec encode(hrp(), data() | String.t(), encoding_type(), max_encoded_length()) :: {:ok, String.t()} | {:error, error()}