New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

myntcore-message

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myntcore-message

Myntcoin Messages for Myntcore

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

Myntcoin Message Verification and Signing for Myntcore

myntcore-message adds support for verifying and signing myntcoin messages in Node.js and web browsers.

See the main myntcore repo for more information.

Getting Started

npm install myntcore-message
bower install myntcore-message

To sign a message:

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

var privateKey = myntcore.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 myntcore repo for information about how to contribute.

License

Code released under the MIT license.

Keywords

myntcoin

FAQs

Package last updated on 10 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts