Package Exports
- @zkthings/e2e-encryption-ed25519
- @zkthings/e2e-encryption-ed25519/src/index.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zkthings/e2e-encryption-ed25519) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@zkthings/e2e-encryption-ed25519
End-to-end encryption library using Ed25519 keys with X25519 key exchange for secure data transmission.
Features
- Encrypt/decrypt data using Ed25519 key pairs
- Support for multiple data types (strings, numbers, objects, etc.)
- Secure key exchange using X25519
- AES-256-GCM encryption with authentication
- Support for user and notary type encryption
- Data integrity verification
- TypeScript support
Installation
bun install @zkthings/e2e-encryption-ed25519Usage
import { Ed25519E2E } from '@zkthings/e2e-encryption-ed25519';
// Initialize
const e2e = new Ed25519E2E();
// Encrypt data
const encrypted = await e2e.encryptFor(
'Hello, World!',
'0x1234...', // recipient address
publicKey // recipient's Ed25519 public key
);
// Decrypt data
const decrypted = await e2e.decrypt(encrypted, privateKey);Development
To install dependencies:
bun installTo run tests:
bun testLicense
MIT License - see LICENSE file for details.