Skip to main content

Module decode

Module decode 

Source
Expand description

Top-level decoder per spec §13.2.

Structs§

DecodeOpts
Options controlling decode-time validation strictness (P0 pathless/ dead-card partial-decode).

Functions§

decode_md1_string
Decode a Descriptor from a complete codex32 md1 string.
decode_md1_string_with_opts
Decode a Descriptor from a complete codex32 md1 string, honoring opts (P0 partial-decode; see DecodeOpts). Routes chunk-form strings through crate::chunk::reassemble_with_opts and single-payload strings through decode_payload_with_opts, so opts reaches whichever layer actually performs the origin check.
decode_payload
Decode a Descriptor from the canonical payload bit stream (strict: byte-identical to pre-P0 behavior). Delegates to decode_payload_with_opts with the default (strict) options. bytes may be zero-padded; total_bits is the exact payload bit count.
decode_payload_with_opts
Decode a Descriptor from the canonical payload bit stream, honoring opts (P0 partial-decode; see DecodeOpts for the contract). bytes may be zero-padded; total_bits is the exact payload bit count.