Add comments for prefixes the encoding IDs map to.

This commit is contained in:
Dave Collins 2014-06-12 18:14:13 -05:00
parent a3091847b3
commit c71988f668

View file

@ -135,9 +135,9 @@ var MainNetParams = Params{
RelayNonStdTxs: false, RelayNonStdTxs: false,
// Encoding magics // Encoding magics
PubKeyHashAddrID: 0x00, PubKeyHashAddrID: 0x00, // starts with 1
ScriptHashAddrID: 0x05, ScriptHashAddrID: 0x05, // starts with 3
PrivateKeyID: 0x80, PrivateKeyID: 0x80, // starts with 5 (uncompressed) or K (compressed)
} }
// RegressionNetParams defines the network parameters for the regression test // RegressionNetParams defines the network parameters for the regression test
@ -176,9 +176,9 @@ var RegressionNetParams = Params{
RelayNonStdTxs: true, RelayNonStdTxs: true,
// Encoding magics // Encoding magics
PubKeyHashAddrID: 0x6f, PubKeyHashAddrID: 0x6f, // starts with m or n
ScriptHashAddrID: 0xc4, ScriptHashAddrID: 0xc4, // starts with 2
PrivateKeyID: 0xef, PrivateKeyID: 0xef, // starts with 9 (uncompressed) or c (compressed)
} }
// TestNet3Params defines the network parameters for the test Bitcoin network // TestNet3Params defines the network parameters for the test Bitcoin network
@ -219,9 +219,9 @@ var TestNet3Params = Params{
RelayNonStdTxs: true, RelayNonStdTxs: true,
// Encoding magics // Encoding magics
PubKeyHashAddrID: 0x6f, PubKeyHashAddrID: 0x6f, // starts with m or n
ScriptHashAddrID: 0xc4, ScriptHashAddrID: 0xc4, // starts with 2
PrivateKeyID: 0xef, PrivateKeyID: 0xef, // starts with 9 (uncompressed) or c (compressed)
} }
// SimNetParams defines the network parameters for the simulation test Bitcoin // SimNetParams defines the network parameters for the simulation test Bitcoin