diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/cmd/keygen/main.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/cmd/keygen/main.go b/client/cmd/keygen/main.go new file mode 100644 index 0000000..c1c1b58 --- /dev/null +++ b/client/cmd/keygen/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "crypto/ed25519" + "crypto/rand" + "fmt" + "log" +) + +func main() { + vk, sk, err := ed25519.GenerateKey(rand.Reader) + if err != nil { + log.Fatalf("GenerateKey: %v", err) + } + fmt.Printf("sk: %x\n", sk[:]) + fmt.Printf("vk: %x\n", vk[:]) +} |