Nocturnal Pumpkin Maelstrom

    bs58check-mc
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.14 • Public • Published

    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

    Install

    npm i bs58check-mc

    DownloadsWeekly Downloads

    3

    Version

    2.0.14

    License

    MIT

    Last publish

    Collaborators

    • hexorx
    • justin16