# rpgcore-message

> RPGcoin Messages for RPGcore

Latest version **1.0.7** (published 2019-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install rpgcore-message
pnpm add rpgcore-message
yarn add rpgcore-message
bun add rpgcore-message
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-03-03 |
| First published | 2019-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Silence |
| Maintainers | silence480 |
| Keywords | rpgcoin, rpgcore, btc, satoshi, message, signing |

## Links

- npm: https://www.npmjs.com/package/rpgcore-message
- Repository: https://github.com/RPGCoin/rpgcore-message
- Homepage: https://github.com/RPGCoin/rpgcore-message#readme
- Issues: https://github.com/RPGCoin/rpgcore-message/issues
- npm.io page: https://npm.io/package/rpgcore-message

## Dependencies (1)

- [rpgcore-lib](https://npm.io/package/rpgcore-lib.md) ^1.0.3

## Recent versions

- 1.0.7 (latest) — 2019-03-03
- 1.0.6 — 2019-03-03
- 1.0.5 — 2019-03-03
- 1.0.4 — 2019-03-03
- 1.0.3 — 2019-03-01

## README

# RPGcoin Message Verification and Signing for RPGcore




rpgcore-message adds support for verifying and signing rpgcoin messages in [Node.js](http://nodejs.org/) and web browsers.

See [the main rpgcore repo](https://github.com/RPGCoin/rpgcore) for more information.

## Getting Started

```sh
npm install rpgcore-message
```

```sh
bower install rpgcore-message
```

To sign a message:

```javascript
var rpgcore = require('rpgcore-lib');
var Message = require('rpgcore-message');

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

To verify a message:

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

## Contributing

See [CONTRIBUTING.md](https://github.com/RPGCoin/rpgcore/blob/master/CONTRIBUTING.md) on the main rpgcore repo for information about how to contribute.

## License

Code released under [the MIT license](https://github.com/RPGCoin/rpgcore/blob/master/LICENSE).

---
_Source: https://npm.io/package/rpgcore-message · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
