MCPcopy Create free account
hub / github.com/encodeous/nylon / MarshalText

Method MarshalText

state/serialize.go:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 return []byte(base64.StdEncoding.EncodeToString(k[:])), nil
10}
11func (k NyPublicKey) MarshalText() ([]byte, error) {
12 return []byte(base64.StdEncoding.EncodeToString(k[:])), nil
13}
14func (k *NyPrivateKey) UnmarshalText(text []byte) error {
15 data, err := base64.StdEncoding.DecodeString(string(text))
16 if err != nil {

Callers 5

keyStringFunction · 0.45
TestPubkeyFunction · 0.45
TestGenerateKeyFunction · 0.45
utils.goFile · 0.45
TestPassiveRoamingFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestPubkeyFunction · 0.36
TestGenerateKeyFunction · 0.36
TestPassiveRoamingFunction · 0.36