MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetPublicKeyBase64

Function GetPublicKeyBase64

pkg/wavejwt/wavejwt.go:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

GetPublicKeyFunction · 0.85

Tested by

no test coverage detected