NKeyStorage -> NKeyring
This commit is contained in:
parent
f066228b22
commit
ce5a4b9a03
|
@ -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;
|
|
@ -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',
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue