bs58check-mc
A straightforward implementation of base58-check encoding for bitcoin and multichain
Last updated 4 years ago by justin16 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bs58check-mc 
SYNC missed versions from official npm registry.

bs58check

NPM Package Build Status Dependency status

js-standard-style

A straight forward implementation of base58check extending upon bs58.

https://www.multichain.com/developers/address-key-format/

Example

var bs58check = require('bs58check-mc')

const multichainSampleParams = {address_pubkeyhash_version: '00AFEA21', address_checksum_value: '953ABC69'};
const bs58check = new Base58Checksum(multichainSampleParams);

var decoded = bs58check.decode('5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr')

console.log(decoded)
// => <Buffer 80 ed db dc 11 68 f1 da ea db d3 e4 4c 1e 3f 8f 5a 28 4c 20 29 f7 8a d2 6a f9 85 83 a4 99 de 5b 19>

console.log(bs58check.encode(decoded))
// => 5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr

LICSENSE MIT

Current Tags

  • 2.0.14                                ...           latest (4 years ago)

12 Versions

  • 2.0.14                                ...           4 years ago
  • 2.0.13                                ...           4 years ago
  • 2.0.12                                ...           4 years ago
  • 2.0.11                                ...           4 years ago
  • 2.0.10                                ...           4 years ago
  • 2.0.9                                ...           4 years ago
  • 2.0.8                                ...           4 years ago
  • 2.0.7                                ...           4 years ago
  • 2.0.6                                ...           4 years ago
  • 2.0.5                                ...           4 years ago
  • 2.0.4                                ...           4 years ago
  • 2.0.3                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |