Skip to main content

header_tail_kernel

Function header_tail_kernel 

Source
pub fn header_tail_kernel(
    key_index: b16,
    meta: KeyMeta,
    siblings: [[b8; 32]; 4],
    top: [[b8; 32]; 3],
) -> [b8; 290]
Expand description

The 290 header bytes after the signature (frame bytes 128..418).

Output index i is frame byte 128 + i:

h[..]Frame bytesField
0..2128..130key_index, LE16
2..34130..162pk_hash
34..50162..178pk_nonce
50..66178..194private nonce
66..290194..4187 siblings: siblings (subtree), then top (cert unit)

Bytes 0..256 fill header beats 2..5; bytes 256..290 become the packer prefix. Combinational.