Canary registry
3 proof systemsBounty-backed puzzles whose answers the program checks itself. No human judges a kill.
- RSA: on-chain bigint p·q = N, commit-reveal→
- secp256k1:
secp256k1_recover→ - Ed25519: precompile introspection→
The truth layer for quantum risk · Solana
Crypto canaries that die on chain, with proof, the moment a key breaks. Your vault moves before the headlines do.
Powered by hashes · open to everyone · no token, no presale, no “wen”
Only proof moves your funds.
Fear alone never trips it. Today's readings →
A lattice shell, a canary core, and 67 Winternitz hash chains. Each pulse walks a chain inward, the way the on-chain verifier walks every chain to the public key.
Three Anchor programs answer one question: is it broken, and if so, how do my funds move?
Bounty-backed puzzles whose answers the program checks itself. No human judges a kill.
secp256k1_recover→The index moves only on the median of fresh votes. Each vote pins the Merkle root of its signal ledger.
See today's votes →Any program asks “is it safe right now?” in one CPI. A stalled heartbeat or a missing index counts as danger.
Integrate in Rust →Ed25519 day to day, with a timelock and a post-quantum veto. When the breaker trips, only a hash-based signature moves funds.
Threat is weighted by how practical an attack is. Fear tracks press and markets. The gap between them is the story.
Every signal is a leaf. Your browser climbs the proof path and compares it with the root the board posted on chain.
Verify a signal →Quantum risk is not one team's problem. The same on-chain signal serves whoever holds, builds, guards or hunts.
Hear it first. A sentinel canary dies on chain, with the proof attached, before any headline can spin it.
See the ladder → 02One CPI asks “is it safe right now?” and closes the Ed25519 path when it is not.
Integrate → 03A bunker vault: timelock by day, hash-based veto when the breaker trips.
Open the vault → 04Break a rung and the program pays you itself. No form, no judge, no waiting.
Pick a rung → 05Threat and fear as two numbers, every signal a Merkle leaf you can check.
Today’s readings →Threat and fear are different numbers.
An RSA-2048 rumor, a theoretical quantum attack on lattices, and NSA and big-tech calls to migrate all landed in one week. The market had no measurement to check, and no defence that moves on its own when something really breaks.
LMS (RFC 8554, NIST SP 800-208) trusts nothing but a hash function. The signer reveals each of 67 hash chains up to a digit of the message; the verifier walks the rest of the way to the public key. A Solana program does that walk itself, and passes the RFC's own test vectors. The 2.3 KB signature is larger than one transaction, so it is staged in a buffer account first.
During the timelock the PQ key can veto. That is the defence against a silent break that happens before any canary dies.
check() mask 4The digest binds the vault address, the leaf index and the whole action, so a staged signature cannot be redirected to a new destination or amount.
A snapshot of the ladder registered on a local validator. Calibration rungs are controls that can be broken on purpose; sentinels are RSA Labs challenge numbers and NUMS curve keys that no one should hold a private key for. Bounties are symbolic local amounts. No snapshot
Every signal is a leaf in a Merkle tree. Press “Verify” and this browser hashes up the proof path with SHA-256 and compares the result with the root the oracle board posted on chain.
On-chain root –
| Date | Category | Target | Practicality | Verified | Attention | Signal | Merkle proof |
|---|
// In your program: close the Ed25519 path on quantum risk
let mask = qcanary::cpi::check(
CpiContext::new(
ctx.accounts.qcanary_program.to_account_info(),
qcanary::cpi::accounts::Check {
registry: ctx.accounts.registry.to_account_info(),
},
),
SafetyPolicy {
rsa_trip_bits: 1024, // RSA rungs of 1024 bits and up
trip_on_ed25519: true, // Solana's signature curve
max_heartbeat_age_slots: 9_000, // dead-man switch
max_index_bps: 8_000, // oracle median above 80
..Default::default()
},
)?.get();
if mask != 0 {
// pq_vault: from here on, only LMS (RFC 8554) signatures count
return err!(PqError::BreakerTripped);
}
No wallet connect, no sign-up, nothing to buy. Each of these runs in this page or on your own machine.
Type a message, sign it with 67 hash chains, and watch your browser verify it the way the Solana program does.
Sign now →Pick any line in the ledger and hash its Merkle proof up to the root the oracles posted on chain.
Verify →Add one check(policy) CPI to your Anchor program and fail safe on quantum risk.
Three programs, a ladder and 42 integration tests on your own validator. Nothing touches a public cluster.
Read the spec →Whoever breaks a scheme may prefer a bigger prize than the bounty, and the canary stays quiet. That is why the vault pairs a timelock with a PQ veto.
Each LMS leaf must be used once. The chain enforces monotone leaves, but keeping the signer's counter safe (backup, sync) is an operational job.
Calibration RSA rungs rely on the generator discarding factors; challenge numbers rely on RSA Labs. The index assumes an honest majority of oracles.
Research prototype. Tested on a local validator only; not deployed to devnet or mainnet, not audited. Not investment advice.
Fresh local validator, three programs, 42 integration tests, a ladder snapshot and a benchmark file. Nothing touches a public cluster.
$ bash scripts/build.sh
rust unit tests · 12 passed
$ bash scripts/index.sh
index tests · 11 passed
$ bash scripts/local.sh
42 passing · site/data/*.js written