bitcoin-vanity

0.1.1 • Public • Published

bitcoin-vanity

This is a naive implementation to generate a bitcoin vanity address. This operation runs in a synchronous way blocking the event loop. This project is a proof of concept to play around with bitcoin concepts.

Install

$ npm install --save bitcoin-vanity
$ yarn add bitcoin-vanity

Use

const vanity = require('bitcoin-vanity')
 
const pattern = `1N`
const identity1 = vanity(pattern) // identity is an object with a private and public key and an address
 
 
const isMatch = (addr) => addr.toLowerCase().startsWith(pattern)
const identity2 = vanity(isMatch) // identity is an object with a private and public key and an address

Test

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i bitcoin-vanity

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

4.96 kB

Total Files

8

Last publish

Collaborators

  • ndelvalle