pub fn encode_bytecode(card: &KeyCard) -> Result<Vec<u8>>
Encode a KeyCard to its canonical bytecode form (pre-chunking).
KeyCard