coininfo icon indicating copy to clipboard operation
coininfo copied to clipboard

support segwit constants

Open fanatid opened this issue 8 years ago • 1 comments

new structure versions (base58 prefixes) for bitcoin mainnet:

{
  address: {
    p2pkh: 0x00,
    p2sh: 0x05,
    p2wpkh: 0x06,
    p2wsh: 0x0a
  },
  privateKey: {
    compressed: 0x80,
    uncompressed: 0x80
  },
  bip32: {
    private: 0x0488ade4,
    public: 0x0488b21e
  },
  bip44: 0x00
}

fanatid avatar Mar 27 '16 08:03 fanatid

I'm open to this, but I think it makes sense to get in segwit support first and then revisit structure.

jprichardson avatar Mar 30 '16 04:03 jprichardson