verifyDetachedAt function
void
verifyDetachedAt({})
Validates a COSE_Sign1 digital signature with a detached payload against a time from the caller.
msgToCheck: The serialized COSE_Sign1 structure (with null payload)msgToAuth: The same message used during signing (verified but not embedded)verifier: The xDSA public key to verify againstdomain: Application domain for separating protocol purposesmaxDriftSecs: Maximum allowed timestamp difference in seconds, past or future. A value of n accepts differences up to and including n;nullskips the check.now: Unix timestamp in seconds to measure the drift against
Throws as verifyDetached does, with the drift measured against now.
Implementation
void verifyDetachedAt({
required Uint8List msgToCheck,
required Object? msgToAuth,
required xdsa.PublicKey verifier,
required Uint8List domain,
int? maxDriftSecs,
required int now,
}) => ffi.coseVerifyDetachedAt(
msgToCheck: msgToCheck,
msgToAuth: _encode(msgToAuth),
verifier: verifier.inner,
domain: domain,
maxDriftSecs: _drift(maxDriftSecs),
now: now,
);