Expand description
v0.11 ↔ codex32 BCH layer adapter, symbol-aligned per spec §3.1 / D7.
Bypasses v0.x’s byte-oriented encode_string / decode_string to avoid
adding an extra codex32 char per encoding due to byte-padding. Uses v0.x’s
lower-level BCH primitives (bch_create_checksum_regular,
bch_verify_regular) which operate on &[u8] slices of 5-bit symbols.
Functions§
- unwrap_
string - Unwrap a v0.11 md1 string into (byte-padded payload bytes, symbol-aligned bit count).
- wrap_
payload - Wrap a v0.11 payload bit stream (byte-padded with exact
bit_count) into a complete codex32 md1 string with HRP and BCH checksum, symbol-aligned.