LPsLux Proposals
LRC Standards
LP-1350

Vault VM

Draft

A permissionless post-quantum encrypted object store on the Lux network — public ciphertext, ML-KEM capsules, and decentralized authorization, with no node holding decryption capability

LP-1350: Vault VM

Abstract

The V-Chain stores encrypted objects on a public, permissionless network. Ciphertext, key-encapsulation capsules and policy commitments are chain state and readable by anyone; the plaintext is readable only by a holder of a private key that never reaches the chain. A node serving the object learns nothing beyond its size, its metadata and the fact that someone asked for it.

This is ordinary hybrid encryption placed on a chain that was designed to hold it: a random data key protects the object under AEAD, and ML-KEM protects the data key for each recipient. Nothing here is novel cryptography, which is the point.

Motivation

The K-Chain (LP-1340) may never hold secret-bearing material, and that invariant is enforced structurally: every field of every type it persists is public by construction, and its test suite refuses a field whose type or name could carry a key or a share. That property is worth keeping exactly as it is.

It is a statement about K-Chain. It is not a statement about the network. Reading it as one — as a prohibition on the estate storing encrypted data anywhere — is a category error, and it forecloses a primitive the estate has no other way to build.

The reasoning that produced that error is worth naming, because it is common: an encrypted secret is still a secret, one compromise away. It is not. Modern cryptography assumes the adversary holds the ciphertext; that assumption is what the constructions are analysed under. A design in which possessing the ciphertext threatens confidentiality is a broken design, and the correct response is to fix the construction rather than to hide the bytes.

So the requirement is stated positively:

Possession of network state confers zero decryption capability.

A chain that satisfies that may store ciphertext publicly, and gains the properties a public chain has — no trusted storage operator, no access control to administer, no operator to compel, availability that does not depend on anyone's goodwill.

Specification

The object

A VaultObject is chain state. Every field is public.

VaultObject {
  version        uint16
  id             [32]byte     // content-addressed
  ciphertext     bytes        // AEAD over the plaintext
  nonce          [24]byte
  suite          CipherSuite  // KEM + AEAD + KDF, by name and version
  capsules       []Capsule    // one per recipient
  owner          Account
  policy         [32]byte     // commitment to the authorization policy
  epoch          uint64
  createdAt      int64
  expiresAt      int64
}

Capsule {
  recipient      [32]byte     // hash of the recipient's KEM public key
  kemCiphertext  bytes        // ML-KEM encapsulation
  wrappedDEK     bytes        // AEAD over the data key, under the KEK
}

Writing

The client does all of this locally. The chain sees only the result.

DEK        ← random 256 bits
ciphertext ← AEAD(DEK, plaintext, associatedData)

for each recipient with KEM public key pk:
    (K, kemCiphertext) ← ML-KEM.Encaps(pk)
    KEK               ← HKDF(K, context)
    wrappedDEK        ← AEAD(KEK, DEK)

ML-KEM is a key-encapsulation mechanism and not bulk encryption: it establishes a shared secret, and the AEAD protects the data. Conflating the two is how an implementation ends up encrypting a megabyte with a primitive that was never meant to carry it.

associatedData binds the object id, the suite and the policy commitment, so a ciphertext lifted into another object or replayed under another policy fails to authenticate rather than decrypting into something plausible.

Reading

object ← network.get(id)
K      ← ML-KEM.Decaps(sk, capsule.kemCiphertext)
KEK    ← HKDF(K, context)
DEK    ← AEAD⁻¹(KEK, capsule.wrappedDEK)
plain  ← AEAD⁻¹(DEK, object.ciphertext)

Any node serves the object. No node is trusted. The private key is never transmitted, and no part of this exchange reveals whether the decapsulation succeeded.

Authorization, and where it lives

Two paths open an object, and they are different in kind.

A key the holder has. The capsule names their KEM public key; they decapsulate locally. No chain is consulted, no policy applies, and nothing can revoke it — which is the correct property for self-custody and the wrong one for anything an organisation must be able to withdraw.

A ceremony the committee performs. The capsule names the committee. K-Chain says whether a subject may request the release; M-Chain performs it, re-wrapping the data key to an ephemeral public key the requesting device generated and kept. The device receives a key for that object at that moment, and the login and recovery infrastructure never sees the plaintext.

The layers stay as they are:

K-Chainwho is authorized
M-Chainthreshold ceremonies
V-Chainencrypted objects, and nothing else
lux.idauthenticating a human or a device
the clientencrypting and decrypting
nodesreplicating opaque bytes

How the committee releases a data key

This is the part that is not standard, and the construction matters.

The obvious approach — one capsule to a committee group public key, threshold-decapsulated by t-of-n without reconstructing the group secret — requires threshold ML-KEM decapsulation, and that does not exist here. luxfi/threshold implements threshold signatures: BLS, FROST, CGGMP21, ML-DSA, and the Module-LWE lanes. A threshold signature scheme does not yield threshold decapsulation; the primitives differ, and distributed decapsulation over module lattices carries noise-growth and decryption-failure problems that signing does not.

So the committee path shares the data key, not the KEM:

at write time
    DEK split t-of-n:  share₁ … shareₙ
    for each committee node i:
        (Kᵢ, ctᵢ) ← ML-KEM.Encaps(pkᵢ)      // node i's OWN public key
        capsule_i ← AEAD(HKDF(Kᵢ), shareᵢ)

at release
    each participating node decapsulates its own share — an ordinary
    single-party ML-KEM operation — and re-encapsulates that share to
    the requesting device's ephemeral public key

    the device collects t shares and reconstructs the DEK locally

Every node performs a single-party operation on its own key. Nothing new is required of the lattice, and the threshold property comes from the secret sharing rather than from the KEM. The device reconstructs the data key, which it must in any case, since it is the thing that decrypts.

An implementation MAY move to a single group capsule if threshold decapsulation becomes available. The object format admits it: that is a different suite, not a different chain.

Rationale

Why not put this on K-Chain? Because its invariant is worth more than the convenience. K-Chain's guarantee is that compromising a K validator yields nothing usable, and it is enforced by the shape of the types rather than by anyone's care. Adding ciphertext to it would trade a structural property for a cryptographic one, and structural properties are the ones that survive a careless change.

Why is public storage acceptable at all? Because the alternative is an access-controlled store, and that has an operator: someone who can be compelled, who can be breached, and whose access-control code is another thing to get right. Public ciphertext removes the operator from the trust argument entirely. The confidentiality rests where it can be analysed.

Why an object rather than a keychain? A keychain is a vault with one schema. The primitive is the same for wallet recovery material, API credentials, agent state, model weights or a medical record, and the network knows none of them apart. Naming it after one use would have built the others badly.

Security Considerations

Ciphertext is permanent, and adversaries keep it. Anything published should be assumed retained indefinitely, so the suite is named and versioned in every object and clients must be able to migrate. For long-lived high-value material, prefer storing something renewable over storing an eternal secret — an object that can be rotated is worth more than one that must never be broken.

Revocation is not confidentiality. A reader who has decrypted an object knows its contents, and no subsequent chain state changes that. Withdrawing access means rotating the data key and re-encrypting under a new epoch, which protects future writes and nothing already read. A system that presents Revoke as though it recalls the plaintext is lying to its operator.

A password must not become the key. Deriving a KEM private key from a passphrase makes every published object an offline guessing target, with unlimited attempts and no rate limit. A password, a passkey or an IAM session should authorize a ceremony — where attempts are counted, devices are visible, and a quorum must agree — rather than derive key material directly. This is the single most likely way to build this wrongly.

An IAM-openable object is as strong as the IAM account. Account recovery becomes key recovery. That is a legitimate trade for convenience and it must be a stated decision: MaxOpsPerEpoch and ExpiresAt on the K-Chain policy are the blast-radius controls, and they should be set rather than defaulted.

Metadata is not protected. Object size, write time, access pattern and the recipient set are public. For some material the pattern is the disclosure, and padding or decoy capsules are the mitigation.

Storage must be paid for. A permissionless store with no economics is a permissionless store for anything anyone wants to keep forever at someone else's expense. Rent, expiry, renewal, size limits and content-addressed deduplication are load-bearing, not incidental.

References

  • LP-1340 — Lux Chain Topology
  • LP-0019 — Finality Stack Vocabulary
  • FIPS 203 — Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM)
  • RFC 9180 — Hybrid Public Key Encryption

Copyright and related rights waived via CC0.