https://github.com/timdaub/string-to-btc-addresses
A little script that converts text to bitcoin addresses which can be used as outputs in transactions
https://github.com/timdaub/string-to-btc-addresses
Last synced: 4 months ago
JSON representation
A little script that converts text to bitcoin addresses which can be used as outputs in transactions
- Host: GitHub
- URL: https://github.com/timdaub/string-to-btc-addresses
- Owner: TimDaub
- Created: 2014-11-26T22:55:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-26T23:43:10.000Z (about 11 years ago)
- Last Synced: 2025-02-02T06:24:14.025Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 348 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
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](http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html).
This package can be found on [npm](https://www.npmjs.org/package/string-to-btc-addresses).
## 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);
```