Browse Source

Fix bug in GenPrivKeyEd25519FromSecret

pull/1782/head
Jae Kwon 9 years ago
parent
commit
76ba23e4c0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      priv_key.go

+ 1
- 0
priv_key.go View File

@ -73,5 +73,6 @@ func GenPrivKeyEd25519FromSecret(secret string) PrivKeyEd25519 {
privKey32 := wire.BinarySha256(secret) // Not Ripemd160 because we want 32 bytes.
privKeyBytes := new([64]byte)
copy(privKeyBytes[:32], privKey32)
ed25519.MakePublicKey(privKeyBytes)
return PrivKeyEd25519(*privKeyBytes)
}

Loading…
Cancel
Save