Skip to main content

Module key_card

Module key_card 

Source
Expand description

KeyCard — the in-memory representation of a decoded MK card.

Field semantics mirror the wire-format payload from design/SPEC_mk_v0_1.md §3.2. The bytecode-layer encode/decode lives in crate::bytecode (Phase 4); the string-layer wrapper (BCH + chunking) wires up the public encode/decode functions below in Phase 5.

Structs§

KeyCard
In-memory representation of one decoded MK card.

Functions§

decode
Decode one or more mk1-prefixed strings into a KeyCard.
encode
Encode a KeyCard into one or more mk1-prefixed strings.
encode_with_chunk_set_id
Like encode, with an explicit chunk_set_id override.