aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum_log_go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sigsum_log_go')
-rw-r--r--cmd/sigsum_log_go/main.go2
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
}