Module lnpbp::bech32[][src]

Types that need to have data1... and z1... bech 32 implementation according to LNPBP-39 must implement ToBech32Payload and FromBech32Payload traits.

Bech32 id1... representation is provided automatically only for hash types implementing bitcoin::hashes::Hash trait

Re-exports

pub use strategies::Strategy;
pub use zip::*;

Modules

strategies
zip

Structs

Blob

Type for wrapping Vec data in cases you need to do a convenient enum variant display derives with #[display(inner)]

Enums

Error

Errors generated by Bech32 conversion functions (both parsing and type-specific conversion errors)

Constants

HRP_DATA
HRP_ID
HRP_ZIP
RAW_DATA_ENCODING_DEFLATE

Traits

AsBech32Payload
Bech32DataString
FromBech32DataStr
FromBech32IdStr

Trait that can generate the type from a given Bech32 id1... value

FromBech32Payload
FromBech32Str
ToBech32DataString
ToBech32IdString

Trait representing given bitcoin hash type as a Bech32 id1... value

ToBech32Payload
ToBech32String