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
}
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...