Skip to main content

canonical_bytes

Function canonical_bytes 

Source
fn canonical_bytes(record: &SupporterRecord) -> Vec<u8> ⓘ
Expand description

Canonical byte encoding of the record’s verifiable fields. Field ordering and length-prefixing are fixed so the same record always serialises identically — JSON’s object-key order is not stable enough for HMAC input.