github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/utils/jwted25519/jwted25519_test.go (about) 1 package jwted25519_test 2 3 import ( 4 "crypto/rand" 5 "fmt" 6 "golang.org/x/crypto/ed25519" 7 "testing" 8 ) 9 10 func TestGenEd25519Key(t *testing.T) { 11 publicKey, privateKey, _ := ed25519.GenerateKey(rand.Reader) 12 fmt.Println(publicKey, privateKey) 13 }