Advanced Cryptography

Fort Knox for your soul.

← Back to Beyond
Advanced Cryptography · Optional Layers

Your vault is already extremely secure. This goes further.

Morrígan's default cryptographic stack — AES-256-GCM, Argon2id, and zero-knowledge architecture — is sufficient for any realistic threat model faced by a private individual. But for those who want to sleep even better, or whose threat models extend to nation-state adversaries, long-term quantum risks, or high-value assets, the Advanced Cryptography layer lets you add independent protection mechanisms on top.

Each layer is independent and additive — none of them weaken the base security, and each can be combined with the others. Think of it as defence in depth: the compromise of any single layer leaves all other layers intact.

Zero-Knowledge Proofs

Prove without revealing. The mathematical miracle.

A zero-knowledge proof (ZKP) allows a prover to convince a verifier that a statement is true — without revealing why it is true. This is not sleight of hand; it is a mathematical construction with formal security proofs. Morrígan implements ZKPs using Groth16 (EUROCRYPT 2016), the most efficient general-purpose zk-SNARK construction, with circuit compilation via circom.

Groth16 proof structure (simplified)
π = (A, B, C) where:
A ∈ G₁ — element of elliptic curve group 1 (BN254)
B ∈ G₂ — element of elliptic curve group 2
C ∈ G₁ — computed from witness and CRS
Verification: e(A, B) = e(α, β) · e(∑ lᵢ·γ⁻¹·δ, γ) · e(C, δ)
Proof size: 192 bytes. Verification: ~1.2ms on EVM. Reference: Groth, 2016.
What ZKPs enable in Morrígan
  • • Prove KYC passed without revealing identity
  • • Prove vault was created before a date without revealing contents
  • • Prove a beneficiary is in the authorised list without revealing all beneficiaries
  • • Selective disclosure of folder access rights
Technical parameters
  • → Curve: BN254 (alt_bn128)
  • → Circuit compiler: circom 2.x
  • → Trusted setup: Hermez Network ceremony (2022)
  • → On-chain verifier: Solidity, EVM precompile 0x08
Multi-Signature Schemes

No single key should hold everything.

Morrígan's multi-signature option implements Shamir's Secret Sharing (Adi Shamir, 1979) and threshold BLS signatures (Boneh-Lynn-Shacham, 2001) to split vault access across multiple key holders — so that no single compromised device, person, or institution can open your vault unilaterally.

2-of-3
Standard multi-sig. Two of three key holders must cooperate to unlock.
3-of-5
High-security. Tolerates loss of two key holders while still enabling access.
M-of-N
Custom. Any threshold configuration up to N=16.
Shamir Secret Sharing (k-of-n)
Secret S → polynomial f(x) of degree k-1:
f(x) = S + a₁x + a₂x² + … + aₖ₋₁xᵏ⁻¹ (mod p)
Share i = f(i) for i = 1…n
Reconstruction: Lagrange interpolation using any k shares
Information-theoretically secure: k-1 shares reveal zero information about S.
Hardware Security Modules

The key that never leaves hardware.

A Hardware Security Module (HSM) is a tamper-resistant device that generates and stores cryptographic keys in a physically isolated environment. Even if the operating system is compromised, the key material cannot be extracted — it is protected by the hardware itself, not just software.

Supported hardware
  • ✓ YubiKey 5 series (PIV applet)
  • ✓ Google Titan Security Key
  • ✓ Ledger hardware wallets (FIDO2)
  • ✓ Thales Luna HSM (enterprise)
  • ✓ AWS CloudHSM (cloud-hosted)
What HSM protects
  • ✓ Vault master key material
  • ✓ Per-folder key derivation inputs
  • ✓ Multi-sig share generation
  • ✓ ZKP witness computation
  • ✓ Post-quantum key encapsulation
Post-Quantum Cryptography

The quantum threat is not hypothetical.

Shor's algorithm — running on a sufficiently large quantum computer — can break RSA and elliptic curve cryptography in polynomial time. Current estimates place a cryptographically relevant quantum computer 10–15 years away. But your vault may need to remain secure for 50 years or more. Data encrypted today can be intercepted and stored by adversaries until quantum hardware becomes available ("harvest now, decrypt later"). The time to add post-quantum protection is now.

Morrígan implements the two NIST PQC standards finalised in 2024, used in a hybrid mode alongside existing classical algorithms — so you get the security of both without sacrificing compatibility.

CRYSTALS-Kyber (ML-KEM)
Key Encapsulation

NIST FIPS 203 (2024). Module Learning With Errors (MLWE) lattice problem. Replaces ECDH for key exchange. Kyber-768 provides 128-bit post-quantum security. Public key: 1184 bytes. Ciphertext: 1088 bytes.

Security: ~128-bit PQ · ~256-bit classical
CRYSTALS-Dilithium (ML-DSA)
Digital Signatures

NIST FIPS 204 (2024). Module Learning With Errors + Leftover Hash Lemma. Replaces ECDSA. Dilithium3 provides 128-bit post-quantum security. Signature size: 3293 bytes. Used for vault attestation and ZKP proof signing.

Security: ~128-bit PQ · ~256-bit classical
Hybrid key exchange (X25519 + Kyber-768)
shared_secret = KDF(X25519_secret || Kyber_secret)
Security: broken only if BOTH X25519 AND Kyber are broken.
In practice: X25519 holds classically; Kyber holds post-quantum.
Refs: FIPS 203, FIPS 204, RFC 9180 (HPKE), Banegas et al. 2023 hybrid KEM analysis
Per-Folder Architecture

Compartmentalisation at the cryptographic layer.

Morrígan's per-folder encryption architecture means that each folder in your vault is encrypted with a unique derived key — not a single vault-wide key. This provides cryptographic compartmentalisation: a beneficiary who receives access to one folder cannot access any other folder, even if they attempt to use their derived key against another folder's ciphertext.

Key derivation tree (per-folder)
master_key = Argon2id(passphrase, salt, t=3, m=65536, p=4)
folder_key[i] = HKDF-SHA512(master_key, "folder:" || folder_id[i])
file_key[i][j] = HKDF-SHA512(folder_key[i], "file:" || file_id[j])
Encryption: AES-256-GCM(file_key, nonce, plaintext) → ciphertext + tag
Compromise of any single folder_key does not expose master_key or other folder_keys.
Isolation

Each folder is a cryptographic island. Cross-folder access is impossible even for someone who knows a folder key.

Selective sharing

Share a folder key with one beneficiary and another folder key with a different beneficiary — without either being able to access the other's content.

Forward secrecy

Folder keys are re-derived each session. Old session keys are never persisted. Past sessions are not compromised by a current key exposure.

Start a vault

Advanced cryptography is available on all accounts. No extra cost.

Get Started

Read the security docs

Full technical architecture documentation on the Security page.

Security →
Morrígan — Vault
Workspace
Vault
Files
Timeline
Security
Keys
Recipients
Vault active AES-256-GCM
last_will
Encrypting
Shamir shards
S1
S2
S3
S4
S5
Recipients
M
J
A
+2
Vault sealed & distributed
Open source · Zero knowledge · Yours alone

Protect what matters.
Start for free.

Morrígan encrypts and protects everything you want to pass on. AES-256, Shamir secret sharing, zero-knowledge proofs. Open source forever.