feat: save user key to keyring

This commit is contained in:
2024-11-21 09:03:48 +07:00
parent c60a37a245
commit 126506522d
6 changed files with 31 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ use std::collections::HashSet;
pub fn get_all_accounts_from_keyring() -> HashSet<PublicKey> {
let search = Search::new().expect("Keyring not working.");
let results = search.by_service("coop");
let results = search.by_service("Coop Safe Storage");
let list = List::list_credentials(&results, Limit::All);
let accounts: HashSet<PublicKey> = list
.split_whitespace()