Skip to content

BTXexplorer/btxcore-message

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitcore Message Verification and Signing for btxcore

btxcore-message adds support for verifying and signing bitcore messages in Node.js and web browsers.

See the main btxcore repo for more information.

Getting Started

npm install btxcore-message
bower install btxcore-message

To sign a message:

var btxcore = require('btxcore-lib');
var Message = require('btxcore-message');

var privateKey = btxcore.PrivateKey.fromWIF('5K2DxqJ9kLFL3hF3KEWDftAig3TyAXenDxpr27PaLBieuSFo5PQ');
var signature = Message('hello, world').sign(privateKey);

To verify a message:

var address = 'RGRsG7UQc3AmvdrhPDngpPjvTNhJQFeHYj';
var signature = 'G5cFMHRysjcxkBJ7mol8l3cjPbFQFQ68fNqTGehTO9/cLNUaflt3gQT//yAUp5fqWF0snDlZYkXJoooazBicRTg=';
var verified = Message('hello, world').verify(address, signature);

Contributing

See CONTRIBUTING.md on the main btxcore repo for information about how to contribute.

License

Code released under the MIT license.

About

Ravencoin Message Verification and Signing for ravencore

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%