Interface IValidatePolkadotWalletSignature

Represents the parameters for checking validity of a signed message from a Polkadot wallet address.

interface IValidatePolkadotWalletSignature {
    message: string | Uint8Array;
    signature: string | Uint8Array;
    walletAddress: string | Uint8Array;
    timestamp?: number;
    signatureValidityMinutes?: number;
}

Hierarchy

  • IValidateSignatureTimestamp
    • IValidatePolkadotWalletSignature

Properties

message: string | Uint8Array

The message that has been signed by the wallet.

signature: string | Uint8Array

The wallet's signature for the given message

walletAddress: string | Uint8Array

Wallet address parameter, used to check if address obtained from signature matches the parameter address

timestamp?: number

The timestamp when the message was generated, for added security (optional).

If you are generating the message yourself and you wish to validate the timestamp, append \n${timestamp} to the end of the message with your own timestamp.

signatureValidityMinutes?: number

For how many minutes the wallet signature is valid (default 10).