Skip to content

How to verify signature after signMessage()? #27

Answered by fabianbormann
qrtp asked this question in Q&A
Discussion options

You must be logged in to vote

With the lastest release (1.0.4) of cardano-verify-datasignature you can just use:

const verifyDataSignature = require('@cardano-foundation/cardano-verify-datasignature');

const key = '...';
const signature = '...';
const message = 'plain message or undefined';
const address = 'addr1qxytm5f2y5x2yjw3fx60musegxxcvst8m8ck7lv0l0mfd4t8uh26h6gx5mzrjhs59kc03d8h5ga9a6ul4ptvve566vssmff09g';

console.log(verifyDataSignature(signature, key, message, address));

Have a nice day and please contact me again if you have any question 😊

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@qrtp
Comment options

@fabianbormann
Comment options

@qrtp
Comment options

Comment options

You must be logged in to vote
4 replies
@qrtp
Comment options

@qrtp
Comment options

@fabianbormann
Comment options

@fabianbormann
Comment options

Comment options

You must be logged in to vote
1 reply
@qrtp
Comment options

Answer selected by fabianbormann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants