Skip to content

ndelvalle/bitcoin-vanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

📬 Bitcoin vanity address generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published