Merge PR #4474: Add go comment for user defined address
This commit is contained in:
parent
30550257a7
commit
75de63ce31
|
@ -17,6 +17,18 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// Constants defined here are the defaults value for address.
|
||||||
|
// You can use the specific values for your project.
|
||||||
|
// Add the follow lines to the `main()` of your server.
|
||||||
|
//
|
||||||
|
// config := sdk.GetConfig()
|
||||||
|
// config.SetBech32PrefixForAccount(yourBech32PrefixAccAddr, yourBech32PrefixAccPub)
|
||||||
|
// config.SetBech32PrefixForValidator(yourBech32PrefixValAddr, yourBech32PrefixValPub)
|
||||||
|
// config.SetBech32PrefixForConsensusNode(yourBech32PrefixConsAddr, yourBech32PrefixConsPub)
|
||||||
|
// config.SetCoinType(yourCoinType)
|
||||||
|
// config.SetFullFundraiserPath(yourFullFundraiserPath)
|
||||||
|
// config.Seal()
|
||||||
|
|
||||||
// AddrLen defines a valid address length
|
// AddrLen defines a valid address length
|
||||||
AddrLen = 20
|
AddrLen = 20
|
||||||
// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
|
// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
|
||||||
|
@ -25,7 +37,7 @@ const (
|
||||||
// Atom in https://github.com/satoshilabs/slips/blob/master/slip-0044.md
|
// Atom in https://github.com/satoshilabs/slips/blob/master/slip-0044.md
|
||||||
CoinType = 118
|
CoinType = 118
|
||||||
|
|
||||||
// BIP44Prefix is the parts of the BIP32 HD path that are fixed by
|
// BIP44Prefix is the parts of the BIP44 HD path that are fixed by
|
||||||
// what we used during the fundraiser.
|
// what we used during the fundraiser.
|
||||||
FullFundraiserPath = "44'/118'/0'/0/0"
|
FullFundraiserPath = "44'/118'/0'/0/0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue