mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 23:14:37 +00:00
Make Ripemd160 the default
This commit is contained in:
@@ -28,7 +28,7 @@ func GenPrivAccount() *PrivAccount {
|
||||
|
||||
// Generates a new account with private key from SHA256 hash of a secret
|
||||
func GenPrivAccountFromSecret(secret []byte) *PrivAccount {
|
||||
privKey32 := binary.BinarySha256(secret)
|
||||
privKey32 := binary.BinarySha256(secret) // Not Ripemd160 because we want 32 bytes.
|
||||
privKeyBytes := new([64]byte)
|
||||
copy(privKeyBytes[:32], privKey32)
|
||||
pubKeyBytes := ed25519.MakePublicKey(privKeyBytes)
|
||||
|
||||
Reference in New Issue
Block a user