verifySignature()

Verify a signature with a public key

Method signature

function verifySignature(publicKey, message, signature)

Parameters

NameTypeDescription

publicKey

string

Public key in hexadecimal format.

message

string

Message that you want to verify

signature

string

Signature that you want to compare

Example

var publicKey = "0x04b5aa6be8b2e3420fb5a8b22e80e64ace8271d88dc4c081436956b0848e7bcf4e864b35c59e218885ed3d839352b81f85872c9460732ca05b8c18dad29dbad00e";
var message = "Hello, World!";
var signature = "0x9f1dd25076c04c5139acba458f86cdccd2d322c61d19bc28daa3bbd9450837af";

var result = CircularProtocolAPI.verifySignature(publicKey, message, signature);

Result

The result will be a boolean object.

true

Last updated