Migration
Upgrade from Ed25519
Section titled “Upgrade from Ed25519”import { crypto } from '@brivora/crypto';
const upgraded = await crypto.upgradeKey({ publicKey: existingEd25519PublicKey, secretKey: existingEd25519SecretKey,});
// upgraded.identity is now a hybrid PQC identity// upgraded.migration is a signed proof of the upgradeThe upgrade process:
- Takes your existing Ed25519 key pair
- Generates new ML-DSA-65 + ML-KEM-768 key pairs
- Creates a hybrid identity combining classical and PQC keys
- Produces a signed migration proof linking old key to new identity
The migration proof ensures verifiable continuity — anyone can confirm the new identity belongs to the same entity as the old Ed25519 key.
API Reference
Section titled “API Reference”| Method | Description |
|---|---|
crypto.upgradeKey(ed25519KeyPair) | Upgrade Ed25519 → hybrid PQC |