16 lines
198 B
Go
16 lines
198 B
Go
package crypto
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestKey(t *testing.T) {
|
|
pub, key, err := GenerateKey()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
t.Logf("key: %s", key.HexString())
|
|
t.Logf("pub: %s", pub)
|
|
}
|