You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a method signMessage to sign a message. However, seems like the signature is incorrect. I use this method below to verify
import{sign_detached_verify}from'tweetnacl-ts';// Sign the message using walletContext.signMessage => FALSEconstsigner=newHexString(walletCtx.account.publicKey?.toString());consthexMessage=HexString.fromUint8Array(message).toString();constsignature=awaitwalletCtx.signMessage(hexMessage);sign_detached_verify(message,newHexString(signature).toUint8Array(),signer.toUint8Array())// Sign the message using signHexString of AptosAccount => TRUEconstmockAccount=newAptosAccount();sign_detached_verify(message,mockAccount.signHexString(hexMessage).toUint8Array(),mockAccount.pubKey().toUint8Array())
The text was updated successfully, but these errors were encountered:
Description
I use a method
signMessage
to sign a message. However, seems like the signature is incorrect. I use this method below to verifyThe text was updated successfully, but these errors were encountered: