Resolve "Move Hasher and Encryptor to Primitives"

This commit is contained in:
2025-04-07 03:37:43 +00:00
committed by Jim Hamill
parent 653fbffac7
commit 9c7adae7b7
13 changed files with 118 additions and 126 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { Encrypter, EventEmitter, InverseBloomFilter } from '../utils';
import { EventEmitter, InverseBloomFilter } from '../utils';
import { Encrypter } from '@xocash/primitives';
export type StorageOpts = {
syncInMemory?: boolean;
encryption?: Encrypter;
@@ -1,7 +1,7 @@
import { BaseStorage, BaseStore, StorageOpts } from './base-store.js';
import { StoreInMemorySynced } from './store-inmemory-synced.js';
import { Encrypter } from '../utils';
import { Encrypter } from '@xocash/primitives';
// TODO: Only use pack/unpack on encrypted content.
// Unsure why you were doing it on non-encrypted content (as it's not needed for IDB).
@@ -1,7 +1,8 @@
import { BaseStore } from './base-store.js';
import { Encrypter, SSEClient } from '../utils';
import { SSEClient } from '../utils';
import {
Bytes,
Encrypter,
PrivateKey,
PublicKey,
decodeExtendedJson,