Theme
Add post-quantum signatures to a blockchain project
For a protocol or wallet team: sign releases with ML-DSA now, prototype dual signatures off chain, and write down what the chain itself must change.
For: A blockchain protocol, validator or wallet team with a coding agent. Works with Aegis Cloud. The human version of this brief is the guide add post-quantum signatures to a blockchain project.
Brief for your AI agent
1136 words · plain text · open as a text file
Brief for my AI agent: Add post-quantum signatures to a blockchain project with Aegis by qblackbit (Aegis Cloud)
Source: https://docs.qblackbit.com/prompts/blockchain (version 1, 2026-12-04)
GOAL
Assess and prototype post-quantum signatures for our blockchain project (wallets, validators, release signing) with ML-DSA and SLH-DSA through Aegis, and write down exactly what the protocol itself must change, without touching any key that holds funds or stake.
WHAT AEGIS IS
Aegis is qblackbit's post-quantum cryptography platform. Aegis Cloud (Free and Pro, at https://aegis.qblackbit.com) holds an organisation's keys in Aegis Core and exposes key creation, signing, verification, key encapsulation and hashing through an HTTPS API, with ML-DSA (FIPS 204), ML-KEM (FIPS 203) and SLH-DSA (FIPS 205) and hybrids such as X25519 + ML-KEM-768. Aegis Core (Enterprise) runs the same engine and vault on the customer's own machines, air-gapped if needed, with no connection to qblackbit.
Before you start, read https://docs.qblackbit.com/llms.txt and the pages it links to; https://docs.qblackbit.com/llms-full.txt has every page in one file. What is built and what is planned: https://docs.qblackbit.com/overview/status.
WHAT YOU ARE WORKING WITH
- Aegis provides post-quantum keys and signatures: ML-DSA (FIPS 204) and SLH-DSA (FIPS 205). In Aegis Cloud, Free offers ml-dsa-65; Pro adds ml-dsa-44, ml-dsa-87 and six SLH-DSA sets. Aegis Core, run on our own machines, also offers composite ML-DSA (ML-DSA paired with ECDSA or Ed25519) and checks existing secp256k1 signatures (verification only).
- Aegis does not change a chain's consensus or transaction format and offers no on-chain verifier. A chain accepts post-quantum signatures only after its own protocol upgrade.
- Size matters on chain: an ML-DSA-65 public key is 1,952 bytes and a signature 3,309 bytes (FIPS 204); an SLH-DSA-SHA2-128s public key is 32 bytes and a signature 7,856 bytes (FIPS 205); a secp256k1 ECDSA public key is 33 bytes compressed and a signature about 64 to 72 bytes.
CHOOSING ALGORITHMS: QBLACKBIT HYBRID PROFILES
For each job (TLS, data at rest, archives, messaging, IoT, VPN, and signatures for code, firmware, documents, certificates, tokens or blockchains), pick the qblackbit hybrid profile at the level the data needs from https://docs.qblackbit.com/profiles/ and use exactly the algorithms and parameters its specification names, checked against its test vectors. Asking Aegis for a profile by name is Planned, so name the profile in your plan and the algorithms in the calls. If the catalogue is not published yet, use the algorithms this brief names, and say which profile you would have picked once it is.
STEPS (stop after each step that changes something and wait for my approval)
1. Inventory the project's keys: user wallets, validator or block-producer keys, bridge and multisig keys, governance keys, node-to-node transport, and the signing of node and wallet releases. For each: algorithm, where the key lives, how often it signs, and what verifies it (on chain, in clients, by users).
2. Start where nothing on chain changes: release signing. Create an ML-DSA-65 key (POST /api/v1/keys with {"name": "release-signing", "algorithm": "ml-dsa-65"}), sign the release's checksums file with POST /api/v1/keys/{name}/sign (files over 1 MiB: sign their SHA3-256 digest and say so), publish the public key from GET /api/v1/keys/{name}/public beside the current release key, and keep the current signatures.
3. Prototype dual signatures off chain with new test keys only: the existing secp256k1 or Ed25519 signature plus an ML-DSA-65 signature over the same transaction bytes. Verify the ML-DSA part with POST /api/v1/keys/{name}/verify and with an independent ML-DSA implementation in the client, so the format is not tied to one vendor.
4. Measure what changes: transaction and block size, bandwidth, storage and verification time in the client, for ML-DSA-65 and, on Pro, for SLH-DSA-SHA2-128s. Record how each number was measured.
5. Write the protocol change proposal: which accounts and validators sign with what, how a key is migrated (for example a classically signed transaction that registers the post-quantum public key), when classical-only signatures stop being accepted, and how old signatures and lost keys are handled.
HOW TO VERIFY SUCCESS
- The release checksums verify with the published ML-DSA public key and with the current key.
- The prototype's dual signatures verify in Aegis and in the independent implementation; changing one byte makes each check fail.
- The proposal states every size and timing figure with its method.
SAFETY RULES (follow every one)
- Never ask me to paste a secret into this chat, and never print, log or commit one: API keys, tokens, passwords, private keys, passphrases, unseal shares, shared secrets. Read each from an environment variable or a file that I set up myself.
- Show me every change as a diff and apply nothing until I approve it. Do not push, deploy or publish anything.
- Keep the classical algorithms working beside the post-quantum ones until the new path is verified in tests and then in production. Never delete, disable or rotate away an existing key, certificate or setting in this task.
- Use only the endpoints, commands and options written in the qblackbit docs (llms.txt). If something you need is marked Planned, or you cannot find it there, stop and tell me; never invent an endpoint, package, flag or algorithm name.
- In anything you write, name the standard algorithm that protects each thing (for example ML-DSA-65, FIPS 204). Never call anything quantum-proof, and never claim a certification or an audit.
- Use an API key made for this task: in the Aegis Cloud app, under API keys, an admin makes one with the developer role (auditor if the task only reads), labelled for this task. I put it in the environment variable AEGIS_API_KEY. Cloud API keys do not expire on their own yet (expiring keys are Planned), so tell me to revoke it in the app as soon as we finish.
- Call the API only from server-side code, scripts or your own tools, never from a web page or a mobile app, where the key would be exposed.
- Every create, sign, verify, encapsulate and hash call is metered against the plan's monthly operations. Ask me before any loop, batch or load test, and never retry blindly: on rate_limited wait, on quota stop and tell me.
- Never move, import, export or expose a wallet, validator or bridge key that holds funds or stake. Use new test keys only.
- Never broadcast a transaction to a main network, and never change node configuration outside a test network.
NOT AVAILABLE YET (do not try to use these)
- General SDKs are Planned; Aegis offers no chain-specific SDK or wallet integration.
- Hardware-held (HSM) keys for validators in Aegis Core are Planned.
- Composite ML-DSA is offered by Aegis Core; in Aegis Cloud it is Planned.
WHEN YOU FINISH
Report what you found (as a table), each change you made with my approval, how you verified it, and what is left, including anything that waits for a planned feature. Remind me to revoke the credential you used.How to use it
- Make the credential the brief asks for yourself, and put it in an environment variable or a file the agent can read. Never paste it into the chat.
- Paste the brief into your agent (Claude Code, Codex, Cursor, Copilot or any other) in the repository or folder it should work in.
- Review each diff the agent shows you before you approve it. Keep the classical path until the new one is verified.
- When the work is done, revoke the credential.
What the brief contains
- Goal: Assess and prototype post-quantum signatures for our blockchain project (wallets, validators, release signing) with ML-DSA and SLH-DSA through Aegis, and write down exactly what the protocol itself must change, without touching any key that holds funds or stake.
- Steps: 5, each with the exact endpoints or commands to use.
- Checks: 3 ways to verify success.
- Safety rules: never paste secrets into chat, a credential made for the task, diffs reviewed before they apply, classical fallbacks kept until verified.
- Not available yet: 3 items marked Planned, so the agent does not try to use them.