feat(genutil): Allow manually setting the consensus key type in genesis (#24018)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
Hoang Do
2025-03-17 17:32:39 -04:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent 64d4cd125b
commit 3ac5b7c912
3 changed files with 18 additions and 3 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ const (
// private key representations used by RFC 8032.
SeedSize = 32
keyType = "ed25519"
KeyType = "ed25519"
)
var (
@@ -91,7 +91,7 @@ func (privKey *PrivKey) Equals(other cryptotypes.LedgerPrivKey) bool {
}
func (privKey *PrivKey) Type() string {
return keyType
return KeyType
}
// MarshalAmino overrides Amino binary marshaling.
@@ -192,7 +192,7 @@ func (pubKey *PubKey) String() string {
}
func (pubKey *PubKey) Type() string {
return keyType
return KeyType
}
func (pubKey *PubKey) Equals(other cryptotypes.PubKey) bool {