()
| 70 | } |
| 71 | |
| 72 | func GetPublicKeyBase64() string { |
| 73 | pubKey := GetPublicKey() |
| 74 | if len(pubKey) == 0 { |
| 75 | return "" |
| 76 | } |
| 77 | return base64.StdEncoding.EncodeToString(pubKey) |
| 78 | } |
| 79 | |
| 80 | func SetPrivateKey(keyData []byte) error { |
| 81 | if len(keyData) != ed25519.PrivateKeySize { |
no test coverage detected