nucypher-experimental-taco-storage
Version:
TypeScript SDK for encrypted data storage with TACo (Threshold Access Control), supporting multiple storage providers including IPFS and SQLite
42 lines • 1.77 kB
TypeScript
/**
* TACo Storage SDK - Professional SDK for encrypted data storage and retrieval
*
* This SDK provides a high-level interface for storing and retrieving encrypted data
* using TACo (Threshold Access Control) with multiple storage provider adapters.
*
* @example
* ```typescript
* import { TacoStorage, IPFSAdapter } from '@nucypher/taco-storage';
* import { ethers } from 'ethers';
*
* // Create storage instance with IPFS adapter
* const storage = TacoStorage.createWithIPFS({
* domain: 'devnet',
* ritualId: 123,
* });
*
* // Store encrypted data
* const signer = new ethers.Wallet('...');
* const data = new TextEncoder().encode('Hello, encrypted world!');
* const result = await storage.store(data, signer, {
* contentType: 'text/plain',
* expiresAt: new Date(Date.now() + 24 * 60 * 60 * 1000), // 24 hours
* });
*
* // Retrieve and decrypt data
* const retrieved = await storage.retrieve(result.id, signer);
* console.log(new TextDecoder().decode(retrieved.data));
* ```
*/
export { TacoStorage } from './core/storage';
export { TacoEncryptionService } from './core/encryption';
export { BaseStorageAdapter, BaseIPFSAdapter, KuboAdapter, HeliaAdapter, IPFSAdapter, // For backward compatibility
SQLiteAdapter, } from './adapters';
export type { IStorageAdapter, } from './adapters';
export type { KuboAdapterConfig, HeliaAdapterConfig, IPFSAdapterConfig, // For backward compatibility
SQLiteAdapterConfig, } from './adapters';
export type { TacoConfig, StorageMetadata, StorageResult, RetrievalResult, AdapterConfig, } from './types';
export type { StoreOptions } from './core/storage';
export { TacoStorageError, TacoStorageErrorType, } from './types';
export declare const VERSION = "0.1.0";
//# sourceMappingURL=index.d.ts.map