Bitcoinjs-lib: What does each element of the network object represent?

Created on 14 Jun 2018  路  3Comments  路  Source: bitcoinjs/bitcoinjs-lib

I want to know what each element means. Who can tell me? Thank you very much.

testnet: {

    messagePrefix: '\x18Bitcoin Signed Message:\n',

    bech32: 'tb',

    bip32: {

      public: 0x043587cf,

      private: 0x04358394

    },

    pubKeyHash: 0x6f,

    scriptHash: 0xc4,

    wif: 0xef

  }
how to / question / docs

All 3 comments

Whatever the answer here, it should probably be added to the documentation at https://github.com/cryptocoinjs/coininfo/ too

@dcousens Thank you very much for your reply. I have just started to contact bitcoin. Your reply has helped me a lot.

testnet: {

    messagePrefix: '\x18Bitcoin Signed Message:\n', // for bitcoin signed messages. rarely used

    bech32: 'tb', // for segwit addresses (currently) and is the prefix for the bech32 format of addresses

    bip32: {

      public: 0x043587cf, // the prefix bytes for BIP32 base58 encoded extended public keys

      private: 0x04358394 // the prefix bytes for BIP32 base58 encoded extended private keys

    },

    pubKeyHash: 0x6f, // the prefix byte for base58 encoded p2pkh addresses

    scriptHash: 0xc4, // the prefix byte for base58 encoded p2sh addresses

    wif: 0xef // the prefix byte for base58 encoded WIF format private keys

  }

Though upon reading my explanations from the point of a new person....... having a short explanation is useless...

perhaps adding links to documentation could help...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoshsadiq picture hoshsadiq  路  3Comments

dcousens picture dcousens  路  3Comments

ishwarchandratiwari picture ishwarchandratiwari  路  3Comments

Beardcoding picture Beardcoding  路  3Comments

thrastarson picture thrastarson  路  3Comments