Sign Messages
Bitte Wallet provides functionalities for signing and verifying messages. This documentation outlines the steps for using these features, including signing a message, verifying a message via the UI.
Sign Message
The sign message functionality allows you to sign a message using your Mintbase Wallet. The signed message can then be used for various verification purposes.
Endpoint
Parameters
message: The message you want to sign.callbackUrl: The URL to which the signed message will be sent.nonce: A unique identifier to prevent replay attacks.
Example
https://wallet.bitte.ai/sign-message?message=hey&callbackUrl=https://wallet.bitte.ai&nonce=1Always make sure to encode the parameters when redirecting
message=${encodeURIComponent}&callbackUrl......You can generate the nonce using this code snippet
const nonce = Buffer.from(randomBytes(32)).toString('base64')Verify Message
The verify message functionality allows you to verify a signed message using the UI or API. Verification ensures that the message was signed by the rightful owner of the specified account.
Verify via UI
Endpoint
Parameters
accountId: The account ID of the signer.publicKey: The public key of the signer in base58 format.signature: The signature of the signed message in base64 format.message: The original message that was signed.nonce: A unique identifier used during signing.recipient: The intended recipient (e.g.,mainnet).callbackUrl: The URL to which the verification result will be sent.
Example
Verify Message via API Endpoint
Endpoint
Parameters
accountId: The account ID of the signer.publicKey: The public key of the signer in base58 format.signature: The signature of the signed message in base64 format.message: The original message that was signed.nonce: A unique identifier used during signing.recipient: The intended recipient (e.g.,mainnet).callbackUrl: The URL to which the verification result will be sent.
Example
Last updated

