An open API service indexing awesome lists of open source software.

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

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