MCPcopy Create free account
hub / github.com/chanify/chanify / GetPublicKeyString

Method GetPublicKeyString

model/user.go:28–30  ·  view source on GitHub ↗

GetPublicKeyString return the user public key

()

Source from the content-addressed store, hash-verified

26
27// GetPublicKeyString return the user public key
28func (u *User) GetPublicKeyString() string {
29 return crypto.Base64Encode.EncodeToString(u.PublicKey)
30}
31
32// PublicKeyEncrypt return encrypted public key
33func (u *User) PublicKeyEncrypt(data []byte) []byte {

Callers 2

handleUpdatePushTokenMethod · 0.80
handleUnbindUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected