# artbytecore-message

> ArtByte Messages for ArtBytecore

Latest version **1.0.7** (published 2017-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install artbytecore-message
pnpm add artbytecore-message
yarn add artbytecore-message
bun add artbytecore-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 | 2017-10-07 |
| First published | 2017-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | BitPay |
| Maintainers | bushstar |
| Keywords | bitcoin, bitcore, btc, satoshi, message, signing |

## Links

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

## Dependencies (1)

- [artbytecore-lib](https://npm.io/package/artbytecore-lib.md) ^0.13.22

## Recent versions

- 1.0.7 (latest) — 2017-10-07
- 1.0.6 — 2017-10-04

## README

<img src="http://bitcore.io/css/images/module-message.png" alt="bitcore message" height="35">
# ArtByte Message Verification and Signing for ArtBytecore

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

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

## Getting Started

```sh
npm install artbytecore-message
```

```sh
bower install artbytecore-message
```

To sign a message:

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

var privateKey = artbytecore.PrivateKey.fromWIF('66Raa77nju5Qs1pfgfcSAXuN4y2wHT8AYuV6UNoVQ5sjpWKBJco');
var signature = Message('hello, world').sign(privateKey);
```

To verify a message:

```javascript
var address = 'n1ZCYg9YXtB5XCZazLxSmPDa8iwJRZHhGx';
var signature = 'H/DIn8uA1scAuKLlCx+/9LnAcJtwQQ0PmcPrJUq90aboLv3fH5fFvY+vmbfOSFEtGarznYli6ShPr9RXwY9UrIY=';
var verified = Message('hello, world').verify(address, signature);
```

## Contributing

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

## License

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

Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

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