package genkey import ( "crypto/ed25519" "crypto/rand" "fmt" "git.sigsum.org/sigsum-go/pkg/hex" ) func Main(_ []string) error { _, priv, err := ed25519.GenerateKey(rand.Reader) if err != nil { return fmt.Errorf("genkey: %v", err) } fmt.Printf("%s\n", hex.Serialize(priv[:])) return nil }