Socket
Book a DemoInstallSign in
Socket

bip39-codec

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bip39-codec

encode buffers into words, like bip39.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

bip39 codec

encode buffers into words, like bip39.

easy way for humans to take small amounts of binary data and:

  • write it down
  • or say it over the telephone

behavior

guarantees matching input and output content and length,

but does include any correctness check for user-error (e.g. skipped or swapped words)

example

const initial = Buffer.from('deadbeefcafe', 'hex') // <Buffer de ad be ef ca fe>
const encoded = bip39codec.encode(initial) // "abandon asset turn term sand garlic"
const decoded = bip39codec.decode(encoded) // <Buffer de ad be ef ca fe>

FAQs

Package last updated on 27 Feb 2018

Did you know?

Socket

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