validateAndExtractNonceAndSession
Validates an RPC authorization assertion and extracts the nonce and session.
Return
RpcNonceAndSession containing the next nonce and session ID.
Parameters
the authorization assertion to validate.
RPC target endpoint.
RPC method name.
payload CBOR bstr.
authorization validity timeout.
Throws
if payload hash mismatch, target/method mismatch, or message expired.
if a fresh nonce must be issued.
Validates an RPC authorization assertion and extracts the nonce and session using a custom nonce checker.
Return
RpcNonceAndSession containing the next nonce and session ID.
Parameters
the authorization assertion to validate.
RPC target endpoint.
RPC method name.
payload CBOR bstr.
authorization validity timeout.
lambda to check and advance the nonce.
Throws
if payload hash mismatch, target/method mismatch, or message expired.
if a fresh nonce must be issued.