I have signed a message using solana/web3.js. How can I verify in a contract that this signed message and the address are matched?
const web3 = require('@solana/web3.js'); const messageBuffer = Buffer.from('testMessage'); const signature = nacl.sign.detached(messageBuffer, keypair.secretKey); const base58String = bs58.encode(signature);
"How can the contract verify that this signed message and the address are matched?"