Commit ed9743a 1 parent 7ff75e1 commit ed9743a Copy full SHA for ed9743a
File tree 1 file changed +5
-0
lines changed
packages/cosmic-swingset/app
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ const (
50
50
// Bech32MainPrefix defines the Bech32 prefix used by all types
51
51
Bech32MainPrefix = "agoric"
52
52
53
+ // CoinType is used in the slip44 HD key derivation path.
54
+ // https://github.com/satoshilabs/slips/blob/master/slip-0044.md
55
+ CoinType = 564
56
+
53
57
// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
54
58
Bech32PrefixAccAddr = Bech32MainPrefix
55
59
// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
@@ -166,6 +170,7 @@ type AgoricApp struct {
166
170
167
171
// SetConfigDefaults sets the appropriate parameters for the Agoric chain.
168
172
func SetConfigDefaults (config * sdk.Config ) {
173
+ config .SetCoinType (CoinType )
169
174
config .SetBech32PrefixForAccount (Bech32PrefixAccAddr , Bech32PrefixAccPub )
170
175
config .SetBech32PrefixForValidator (Bech32PrefixValAddr , Bech32PrefixValPub )
171
176
config .SetBech32PrefixForConsensusNode (Bech32PrefixConsAddr , Bech32PrefixConsPub )
You can’t perform that action at this time.
0 commit comments