Get the local list of registered usernames saved from previous Gnomon scans
()
| 1924 | |
| 1925 | // Get the local list of registered usernames saved from previous Gnomon scans |
| 1926 | func 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 |
| 1937 | func setPrimaryUsername(s string) (err error) { |
no test coverage detected