pub fn decode(s: &str) -> Result<(Tag, Payload)>Expand description
Decode a v0.1 ms1 string into (Tag, Payload).
Rejects per SPEC §4 rules 1-10:
- Rule 1: upstream codex32 parse failure (Codex32 variant).
- Rules 2-4, 8: wire-invariant violations (delegated to envelope::discriminate).
- Rules 5-7: tag-table membership rules (here).
- Rule 9: total string length not in v0.1-emittable set (here, before parse).
- Rule 10: payload byte length mismatch for the tag (here, via Payload::validate()).