Skip to main content

decode_md1_string

Function decode_md1_string 

Source
pub fn decode_md1_string(s: &str) -> Result<Descriptor, Error>
Expand description

Decode a Descriptor from a complete codex32 md1 string.

Uses the symbol-aligned bit count returned by unwrap_string (5 × symbol_count), which is exact at the codex32 layer with ≤4 bits of trailing zero-padding — well within the v11 decoder’s TLV-rollback tolerance.