Merge PR #4474: Add go comment for user defined address

This commit is contained in:
Frank Yang 2019-06-04 20:59:14 +08:00 committed by Alexander Bezobchuk
parent 30550257a7
commit 75de63ce31
1 changed files with 13 additions and 1 deletions

View File

@ -17,6 +17,18 @@ import (
)
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 = 20
// 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
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.
FullFundraiserPath = "44'/118'/0'/0/0"