checkNonce
suspend fun checkNonce(clientId: String, nonce: ByteString, expiration: Instant): RpcNonceAndSession
Validates a client nonce and returns the next nonce and session ID.
Return
RpcNonceAndSession containing the next nonce and session ID.
Parameters
clientId
identifier of the client.
nonce
current nonce sent by the client.
expiration
expiration timestamp for the session.
Throws
if the nonce is empty, invalid, or out of sequence, providing a fresh nonce.