pub fn decode(strings: &[&str]) -> Result<KeyCard>Expand description
Decode one or more mk1-prefixed strings into a KeyCard.
Supports both single-string and chunked inputs:
- One string with
SingleStringheader → decode bytecode directly. - One or more strings with
Chunkedheaders → reassemble with cross-chunk-hash verification, then decode the bytecode.
Mixing SingleString and Chunked headers across a multi-string
input is rejected with Error::MixedHeaderTypes. (An empty input
list is rejected with Error::ChunkedHeaderMalformed — that’s the
“no input at all” case, distinct from “header types disagree.”)