npm.io
1.0.6 • Published 11 years ago

string-to-btc-addresses

Licence
ISC
Version
1.0.6
Deps
2
Vulns
1
Weekly
0
Stars
1

Node.js: string-to-btc-addresses

This little script encodes a given text into valid bitcoin addresses that can later be used as outputs in a transaction in order to save a message forever in the blockchain.

This was inspired by Ken Shirriff.

This package can be found on npm.

Usage

npm install string-to-btc-addresses --save-dev

In your application:

var stringToBtcAddresses = require('string-to-btc-addresses');

var addresses = stringToBtcAddresses.encode('this is so romantic :heart:');
var strings = stringToBtcAddresses.decode(addresses);

console.log(addresses);
console.log(strings);

Keywords