Skip to main content

manifest_signing_bytes

Function manifest_signing_bytes 

Source
pub fn manifest_signing_bytes(
    key_id: &str,
    epoch_id: EpochId,
    seq: ManifestSeq,
    head: ChainHead,
) -> Vec<u8> ⓘ
Expand description

Canonical signed payload for a manifest.

The layout is MANIFEST_DOMAIN ‖ kid_len(u64 BE) ‖ kid ‖ epoch_id(16) ‖ seq(u64 BE) ‖ head(32). The writer calls it to sign and the verifier calls it to verify.