aboutsummaryrefslogtreecommitdiff
path: root/cmd/tmp/keygen/main.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2021-12-07 14:34:14 +0100
committerRasmus Dahlberg <rasmus@mullvad.net>2021-12-07 14:34:14 +0100
commite74021bee14cdc6a5aa22ddc2068c2f72dfe277f (patch)
tree1ff34f15fd3ddb25f50886637cc7a14e1785cced /cmd/tmp/keygen/main.go
parent8d145157c7dc0085e1872ba81868e00527dfbd21 (diff)
added print of verification key hash
Diffstat (limited to 'cmd/tmp/keygen/main.go')
-rw-r--r--cmd/tmp/keygen/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/tmp/keygen/main.go b/cmd/tmp/keygen/main.go
index c1c1b58..c5f60fd 100644
--- a/cmd/tmp/keygen/main.go
+++ b/cmd/tmp/keygen/main.go
@@ -5,6 +5,8 @@ import (
"crypto/rand"
"fmt"
"log"
+
+ "git.sigsum.org/sigsum-log-go/pkg/types"
)
func main() {
@@ -14,4 +16,5 @@ func main() {
}
fmt.Printf("sk: %x\n", sk[:])
fmt.Printf("vk: %x\n", vk[:])
+ fmt.Printf("kh: %x\n", types.Hash(vk[:])[:])
}