Skip to content

Commit

Permalink
Merge PR #4474: Add go comment for user defined address
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Yang authored and alexanderbez committed Jun 4, 2019
1 parent 3055025 commit 75de63c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 75de63c

Please sign in to comment.