NKeyStorage -> NKeyring

environments/review-update-vid-g70vyz/deployments/5013
Alex Gleason 2024-10-30 11:37:14 -05:00
rodzic f066228b22
commit ce5a4b9a03
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ import { z } from 'zod';
* When instantiated, it will lock the storage key to prevent tampering.
* Changes to the object will sync to storage.
*/
export class NKeyStorage implements ReadonlyMap<string, NostrSigner> {
export class NKeyring implements ReadonlyMap<string, NostrSigner> {
#keypairs = new Map<string, Uint8Array>();
#storage: Storage;

Wyświetl plik

@ -1,6 +1,6 @@
import { NKeyStorage } from './NKeyStorage';
import { NKeyring } from './NKeyring';
export const NKeys = new NKeyStorage(
export const NKeys = new NKeyring(
localStorage,
'soapbox:nostr:keys',
);