Skip to main content

encode_with_chunk_set_id

Function encode_with_chunk_set_id 

Source
pub fn encode_with_chunk_set_id(
    card: &KeyCard,
    chunk_set_id: u32,
) -> Result<Vec<String>>
Expand description

Like encode, but with an explicit chunk_set_id override.

chunk_set_id MUST fit in 20 bits (0..=0x000F_FFFF); otherwise returns Error::ChunkedHeaderMalformed. The override is only consulted on the chunked path; single-string encodings have no chunk_set_id field, so the value is silently ignored.