ravencore-message

1.0.3 • Public • Published

Ravencoin Message Verification and Signing for Ravencore

ravencore-message adds support for verifying and signing ravencoin messages in Node.js and web browsers.

See the main ravencore repo for more information.

Getting Started

npm install ravencore-message
bower install ravencore-message

To sign a message:

var ravencore = require('ravencore-lib');
var Message = require('ravencore-message');
 
var privateKey = ravencore.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 ravencore repo for information about how to contribute.

License

Code released under the MIT license.

Package Sidebar

Install

npm i ravencore-message

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

17.4 kB

Total Files

11

Last publish

Collaborators

  • xittz
  • ravenland
  • russkidooski