V3 is here
1.
Threshold Cryptography & Key Derivation (vetKeys)
ICP Management Canister Integration: Interfaces directly with ICP’s native threshold key derivation endpoints (vetkd_public_key / vetkd_derive_key).
On-Demand Key Derivation: Replaces static client-side key storage with verifiably derived, threshold-derived keys bound directly to caller identities.
Decentralized Key Exchange: Allows secure key derivation and transport directly on-chain without exposing private decryption keys to intermediate canisters, nodes, or build tools.
2.
End-to-End Encrypted (E2EE) Tickets
Client-Side AES-GCM Wrapping: Contact form submissions are encrypted in the browser using standard Web Crypto (AES-GCM) before transmission.
Zero-Knowledge On-Chain Storage: The backend canister (backend/main.mo) strictly persists Blob ciphertexts, ensuring raw message content is never visible to canister nodes, network relays, or unauthorized callers.
Master Principal Decryption: Only the creator authenticated as the Master Owner Principal via Internet Identity (II) can derive decryption keys to read ticket payloads in-browser (getTickets, clearTickets, markAllRead).
Automated Expiration Pruning: Retention policies run natively over encrypted blob metadata to purge expired tickets after a configurable retention window (e.g., 7 days) without exposing plaintext contents on-chain.
3.
Dual-Principal Architecture & Wizard Overhaul (setup.py)
Publisher PID vs. Master PID Decoupling: Explicitly separates the Publisher/Terminal Principal (the automated deployment key running dfx deploy / push.py) from the Master Owner Principal (the creator’s Internet Identity). This guarantees deployment scripts, automated build pipelines, or CI environments never gain access to private inbox decryption keys.
Dynamic Motoko AST/Code Generation: setup.py dynamically compiles tailored Motoko source files (backend/main.mo) enforcing owner checks, vetKeys Management Canister interfaces, encrypted ticket storage limits, and retention timers prior to deployment.
Interactive Ticket Configuration: Adds setup prompts to configure ticket system toggles, custom retention windows, and explicit fallback permissions.