Auth#

rizemind.authentication.signatures.auth.recover_auth_signer(*, round: int, nonce: bytes, domain: EIP712DomainRequiredFields, signature: Signature) ChecksumAddress[source]#

Recovers the address that signed an authentication message.

Parameters:
  • round – The round number from the signed message.

  • nonce – The nonce from the signed message.

  • domain – The EIP712 required fields.

  • signature – The signature of the message.

Returns:

The address that signed the message.

rizemind.authentication.signatures.auth.sign_auth_message(*, round: int, nonce: bytes, domain: EIP712DomainRequiredFields, account: BaseAccount) Signature[source]#

Signs an authentication message using the EIP-712 standard.

Parameters:
  • round – The current round number.

  • nonce – A unique nonce for this authentication.

  • domain – The EIP712 required fields.

  • account – The account that will sign the message.

Returns:

The signed authentication message.