Skip to main content

MAX_SEQ

Constant MAX_SEQ 

Source
pub const MAX_SEQ: u64 = _ /* 9_007_199_254_740_991u64 */;
Available on crate feature audit only.
Expand description

The largest sequence number a record can carry.

Records are hashed over their RFC 8785 canonical form, which writes every number as an IEEE 754 double. Above 2^53 − 1 two adjacent integers share a double, so two records could canonicalize identically; a chain that long is refused rather than hashed ambiguously.