@zkthings/e2e-encryption-ed25519
v0.1.0
Published
End-to-end encryption for Solana, StarkNet & ed25519 wallets - secure data transmission with AES-256-GCM
Downloads
6
Maintainers
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.
