diff options
author | Grégoire Détrez <gregoire@mullvad.net> | 2022-06-17 16:09:42 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-06-20 14:10:36 +0200 |
commit | 4b20ef0c1732bcef633c0ed7104501898aa84e2c (patch) | |
tree | 124cebb966896659f8652398fc955a42b5e1f459 /cmd/sigsum_log_go/main.go | |
parent | dc8b3cd87b5c2dff55981900e31ed059ee9c688c (diff) |
Read key file as a seed
Diffstat (limited to 'cmd/sigsum_log_go/main.go')
-rw-r--r-- | cmd/sigsum_log_go/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/sigsum_log_go/main.go b/cmd/sigsum_log_go/main.go index b64da1a..c8e1692 100644 --- a/cmd/sigsum_log_go/main.go +++ b/cmd/sigsum_log_go/main.go @@ -185,7 +185,7 @@ func newLogIdentity(keyFile string) (crypto.Signer, string, error) { if buf, err = hex.DecodeString(strings.TrimSpace(string(buf))); err != nil { return nil, "", fmt.Errorf("DecodeString: %v", err) } - sk := crypto.Signer(ed25519.PrivateKey(buf)) + sk := crypto.Signer(ed25519.NewKeyFromSeed(buf)) vk := sk.Public().(ed25519.PublicKey) return sk, hex.EncodeToString([]byte(vk[:])), nil } |