aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum-debug/hashkey/hashkey.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-04-23 18:44:09 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-23 18:44:09 +0200
commitcc9bb6a069d62ed37b7f4866d6dfe37049dc1cf1 (patch)
tree3dc49efe0e0690656897dc8562da6b7cbc41c9ea /cmd/sigsum-debug/hashkey/hashkey.go
parent2c28b4209be2ced9a18c20347e1819a24a45cb66 (diff)
remove sigsum-debug (pending merge in sigsum-go)HEADmain
Diffstat (limited to 'cmd/sigsum-debug/hashkey/hashkey.go')
-rw-r--r--cmd/sigsum-debug/hashkey/hashkey.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/sigsum-debug/hashkey/hashkey.go b/cmd/sigsum-debug/hashkey/hashkey.go
deleted file mode 100644
index f195239..0000000
--- a/cmd/sigsum-debug/hashkey/hashkey.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package hashkey
-
-import (
- "crypto/ed25519"
- "fmt"
-
- "git.sigsum.org/sigsum-go/pkg/hex"
- "git.sigsum.org/sigsum-go/pkg/types"
- "git.sigsum.org/sigsum-tools-go/internal/util"
-)
-
-func Main(_ []string) error {
- b, err := util.HexFromStdin()
- if err != nil {
- return fmt.Errorf("hashkey: %v", err)
- }
- if len(b) != ed25519.PublicKeySize {
- return fmt.Errorf("hashkey: invalid private key size %d", len(b))
- }
- pub := ed25519.PublicKey(b)
- keyHash := types.HashFn(pub)
-
- fmt.Printf("%s\n", hex.Serialize(keyHash[:]))
- return nil
-}