[NOD-575] Change devent address prefix to kaspadev. (#598)

This commit is contained in:
Dan Aharoni 2020-01-23 15:36:40 +02:00 committed by stasatdaglabs
parent c0463a8a68
commit ed606bfda3
2 changed files with 5 additions and 1 deletions

View File

@ -448,7 +448,7 @@ var DevnetParams = Params{
AcceptUnroutable: true, AcceptUnroutable: true,
// Human-readable part for Bech32 encoded addresses // Human-readable part for Bech32 encoded addresses
Prefix: util.Bech32PrefixKaspaTest, Prefix: util.Bech32PrefixKaspaDev,
// Address encoding magics // Address encoding magics
PrivateKeyID: 0xef, // starts with 9 (uncompressed) or c (compressed) PrivateKeyID: 0xef, // starts with 9 (uncompressed) or c (compressed)

View File

@ -43,6 +43,9 @@ const (
// Prefix for the main network. // Prefix for the main network.
Bech32PrefixKaspa Bech32PrefixKaspa
// Prefix for the dev network.
Bech32PrefixKaspaDev
// Prefix for the regression test network. // Prefix for the regression test network.
Bech32PrefixKaspaReg Bech32PrefixKaspaReg
@ -56,6 +59,7 @@ const (
// Map from strings to Bech32 address prefix constants for parsing purposes. // Map from strings to Bech32 address prefix constants for parsing purposes.
var stringsToBech32Prefixes = map[string]Bech32Prefix{ var stringsToBech32Prefixes = map[string]Bech32Prefix{
"kaspa": Bech32PrefixKaspa, "kaspa": Bech32PrefixKaspa,
"kaspadev": Bech32PrefixKaspaDev,
"kaspareg": Bech32PrefixKaspaReg, "kaspareg": Bech32PrefixKaspaReg,
"kaspatest": Bech32PrefixKaspaTest, "kaspatest": Bech32PrefixKaspaTest,
"kaspasim": Bech32PrefixKaspaSim, "kaspasim": Bech32PrefixKaspaSim,