MCPcopy Create free account
hub / github.com/DEROFDN/Engram / getUsernames

Function getUsernames

functions.go:1926–1934  ·  view source on GitHub ↗

Get the local list of registered usernames saved from previous Gnomon scans

()

Source from the content-addressed store, hash-verified

1924
1925// Get the local list of registered usernames saved from previous Gnomon scans
1926func getUsernames() (result []string, err error) {
1927 usernames, err := GetEncryptedValue("Usernames", []byte("usernames"))
1928 if err != nil {
1929 return
1930 }
1931
1932 result = strings.Split(string(usernames), ",")
1933 return
1934}
1935
1936// Set the Primary Username saved to a wallet's datashard
1937func setPrimaryUsername(s string) (err error) {

Callers 1

layoutIdentityFunction · 0.85

Calls 1

GetEncryptedValueFunction · 0.85

Tested by

no test coverage detected