00 / surface

lattice²

post quantum security for wallets, signatures and settlement, built on lattice problems instead of elliptic curves

scroll to descend into the experiment
01 / the threat

every key you hold today has an expiry date

ed25519 and secp256k1 both rest on the discrete log problem, and shor's algorithm solves it efficiently on a large fault tolerant quantum computer. encrypted data recorded now can be opened later, this is called harvest now, decrypt later.

Q = [d]G given Q, recover d shor: poly(log n) quantum steps classical best: ~2^(n/2) steps
02 / the lattice

a grid that gets hard to read

a lattice is every integer mix of a few basis vectors. in two dimensions the shortest vector is easy to see, in hundreds of dimensions no known quantum algorithm finds it efficiently. move your cursor to find the nearest point.

03 / learning with errors

add noise and linear algebra stops working

given a and b = a·s + e mod q, recovering the secret s is believed hard even for quantum computers. without the noise e it would be a school exercise.

b = A·s + e (mod q), e ← χσ, s ∈ ℤq^n
04 / lattice²

two lattice problems, one key

design intent: confidentiality rests on module-lwe, authenticity rests on module-sis. the two are independent problems, so a break in one does not hand over the other.

R_q = ℤ_q[x] / (x^256 + 1) enc : b = A·s + e k=3 q=3329 η=2 sig : A·z = 0 (mod q), ‖z‖∞ ≤ β (module-sis)
05 / parameters

sizes and security levels

one ring, three module ranks. a bigger k means a harder lattice and bigger keys. multiplication runs in the number theoretic transform, 7 butterfly layers over ℤ3329 with root ζ = 17.

set k pk bytes ct bytes nist level 512-class 2 800 768 1 768-class 3 1184 1088 3 1024-class 4 1568 1568 5 (sizes per fips 203, shared secret 32 bytes)
attacks: primal uSVP, dual, bkz with block size β cost ≈ 2^(0.292β) classical sieve, 2^(0.265β) quantum sieve
06 / design goals

what it is meant to do

quantum safe keyswallet keys that do not depend on discrete log
migrationmove balances to lattice keys without a flag day
verifiablepublic parameters, spec hashes and lwe checks anyone can rerun
status: pre-audit, parameters draft reference: nist fips 203 (ml-kem), fips 204 (ml-dsa)
07 / surface

check it yourself

do not trust the page, rerun the math. verify recomputes the checks in your browser, integrate shows the same primitives you can drop into your own site.

vaultusesverifyintegratex ↗

lattice² is experimental software. nothing here is a guarantee of security or returns, and nothing here is financial advice.

close [esc]
verify

do not trust, recompute

each check runs locally in your browser. a check can only prove what has been published, the table at the bottom shows what exists today.

01 / spec integrity (sha-256)

02 / lwe witness check

press new instance
the check recomputes b − A·s mod q and accepts only if every residual is a small error

03 / published artifacts

close [esc]
integrate

protect a message with lattice math

this runs a toy regev style lwe scheme with real random keys in your browser. parameters are tiny on purpose so you can read it, swap in an audited lattice library such as ml-kem before protecting anything real.

01 / protect

press encrypt

02 / embed it in your page

03 / steps

1 keygengenerate A, s, e and publish (A, b)
2 encryptpick random subset of rows, add bit·⌊q/2⌋
3 decryptsubtract c1·s and round to 0 or q/2
close [esc]
vault

your wallet, post quantum plan

connect phantom and lattice² writes a migration plan, a backup script and directions for your wallet. it reads only your public address, it never sees your keys.

01 / exposure report

connect to generate

02 / allocation plan

connect to generate

03 / directions

connect to generate

04 / backup script, node 18+

connect to generate
a signature proves you own this wallet and binds the plan hash to it

what this can and cannot do

canencrypt your backups, split holdings across wallets, show your exposure, prove ownership with a signature
cannotencrypt assets on chain, change how solana verifies signatures, or make a funded address quantum safe today
neverpaste a seed phrase into any site, including this one
close [esc]
uses

everything lattice math is used for

one family of hard problems, many applications. tap a card to open it, filter by status. standard means a finalized nist standard, deployed means shipping in real products, research means active work.