From 4b20ef0c1732bcef633c0ed7104501898aa84e2c Mon Sep 17 00:00:00 2001 From: Grégoire Détrez Date: Fri, 17 Jun 2022 16:09:42 +0200 Subject: Read key file as a seed --- cmd/sigsum_log_go/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 } -- cgit v1.2.3