4.5.1 Envelope structure
PXP-201 schema
flowchart TB
A[Plaintext] --> B[AES-256-GCM encrypt\nDEK + nonce]
B --> C[Ciphertext + ciphertextHash]
C --> D[Store ciphertext\n(uri e.g. ipfs://...)]
B --> E[Wrap DEK per recipient\nsecp256k1 ECDH + HKDF-SHA256]
E --> F[Envelope\nv, typ, cipher, kdf,\naccess.recipients[], uri,\nciphertextHash, meta, createdAt]
F --> G[validateEnvelope()]
G --> H[Recipient unwraps DEK]
H --> I[Decrypt -> Plaintext]Last updated
