Socket
Socket
Sign inDemoInstall

bc-bech32

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bc-bech32

this library is for implementing [BlockChain Commons bc-32](https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-0004-bc32.md)


Version published
Weekly downloads
387
increased by22.47%
Maintainers
1
Install size
22.3 kB
Created
Weekly downloads
 

Readme

Source

bc-bech32

this library is for implementing BlockChain Commons bc-32

an encoding

Installation

yarn add bc-bech32

Test

    yarn test

Build

    yarn build

Sample

    import { encodeBc32Data, decodeBc32Data, encodeSegwitAddress, decodeSegwitAddress } from '../src';
    const data = encodeBc32Data('48656c6c6f20776f726c64');
    console.log(data) // fpjkcmr0ypmk7unvvsh4ra4j

note: for using the node vesion should be upper than 10.16

this library is inspire on the bech32. Thanks for the good library.

FAQs

Last updated on 09 Jun 2020

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