string-to-btc-addresses
v1.0.6
Published
A little programm that encodes a string into a parsable transaction that can be signed and put into the blockchain
Downloads
5
Maintainers
Readme
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);