validate static method
Validates that nonce
is exactly 8 bytes.
Throws ArgumentError if invalid.
HINT: Call this when parsing incoming headers to enforce format.
Implementation
static void validate(Uint8List nonce) {
if (nonce.length != 8) {
throw ArgumentError.value(
nonce.length,
'nonce.length',
'Nonce must be exactly 8 bytes.',
);
}
}