Socket
Socket
Sign inDemoInstall

btc-address

Package Overview
Dependencies
4
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    btc-address

Manage Bitcoin addresses


Version published
Maintainers
4
Install size
64.0 kB
Created

Readme

Source

Bitcoin Address

JavaScript component to handle Bitcoin addresses.

See this article for more details: bitcoin address.

Install

Node.js/Browserify

npm install --save btc-address

Usage

var Address = require('btc-address')
var binConv = require('binstring')


var hash160 = "3c176e659bea0f29a3e9bf7880c112b1b31b4dc8";
var address = new Address(binConv(hash160, { in : 'hex', out: 'bytes'})); 
console.log(address.toString()) //16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS

Credits

Most of the code from Stefan Thomas in https://github.com/bitcoinjs/bitcoinjs-lib with modifications from Roman Shtylman

License

(MIT License)

Keywords

FAQs

Last updated on 13 Feb 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc