string-to-btc-addresses

1.0.6 • Public • Published

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);

Package Sidebar

Install

npm i string-to-btc-addresses

Weekly Downloads

8

Version

1.0.6

License

ISC

Last publish

Collaborators

  • timdaub