NKeyStorage -> NKeyring

This commit is contained in:
Alex Gleason 2024-10-30 11:37:14 -05:00
parent f066228b22
commit ce5a4b9a03
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import { z } from 'zod';
* When instantiated, it will lock the storage key to prevent tampering. * When instantiated, it will lock the storage key to prevent tampering.
* Changes to the object will sync to storage. * 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>(); #keypairs = new Map<string, Uint8Array>();
#storage: Storage; #storage: Storage;

View File

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