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
{{ message }}
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
varMessage=require('bitcore-message');varprivateKey=newbitcore.PrivateKey('L23PpjkBQqpAF4vbMHNfTZAb3KFPBSawQ7KinFTzz7dxq6TZX8UA');varmessage=newMessage('This is an example of a signed message.');varsignature=message.sign(privateKey);
Verify a Bitcoin message
varMessage=require('bitcore-message');varaddress='13Js7D3q4KvfSqgKN8LpNq57gcahrVc5JZ';varsignature='IBOvIfsAs/da1e36W8kw1cQOPqPVXCW5zJgNQ5kI8m57FycZXdeFmeyoIqJSREzE4W7vfDmdmPk0HokuJPvgPPE=';varverified=newMessage('This is an example of a signed message.').verify(address,signature);