How the system is built, layer by layer.

A TypeScript protocol kernel, a Rust post-quantum module, Noir circuits, Solidity contracts and a NestJS backend, each with its own tests and each reachable from one SDK.

Protocol architecture

Domain packages with enforced layering: shared, core, crypto, then identity, credentials, privacy, ZK, authorization, networks. The SDK bundles them.
Public: chains and verifiersProtocolPrivate: deviceidentity secretcredential openingMerkle pathTreerootNoir circuiteligibilityProof, 8,768 bytesroot, nullifier, scopeverifyProof on-chain

Cryptographic architecture

Classical
Ed25519, secp256k1, SHA-256, Keccak-256 and Poseidon-BN254 through the audited @noble libraries. Verification only: the backend has no signing function to misuse.
Post-quantum
ML-KEM (libcrux, formally verified), ML-DSA (libcrux) and SLH-DSA (fips205), in Rust, cross-checked against an independent JavaScript implementation and NIST vectors.
Zero-knowledge
Six Noir circuits compiled to 2^16-gate UltraHonk circuits; proofs of 8,768 bytes; artifacts and Solidity verifiers are reproducible in CI.
Encodings
Canonical JSON with signing-purpose prefixes (QUANTLAYER-SIG-V1), versioned codecs, and domain tags for every hash.
Private witnessnullifierSecrettrapdoorattributesaltissuedAt, expiresAtpath: 20 siblingsleaf indexProver onlyNoir circuitleaf is in the tree rootissuedAt ≤ now < expiresAtattribute ≥ thresholdnullifier for this scopeeligibility v1BoundaryProofUltraHonk-BN2548,768 bytesPublic inputscontextrootissuercredentialTypenowthresholdscopenullifier

Smart contract architecture

Solidity 0.8.28 on the Cancun EVM. Roles are separated: issuer administration, circuit administration, attestor management and pausing are distinct.
QuantLayerAuthorizationManagerclassical, post-quantum, hybrid, credential, ZKQuantLayerProofVerifierUltraHonkVerifierAdapter6 circuit verifiersQuantLayerPqcAttestationVerifierEIP-712 PqcAttestationk-of-n attestorsQuantLayerCredentialRegistryissuers, roots, statusQuantLayerNullifierRegistryspent nullifiers, contextsQuantLayerIdentityRegistrydid:quantlayer, controllersQuantLayerKeyRegistrykey versions, algorithms
Proof verification
QuantLayerProofVerifier.verifyProof costs 2.63 to 2.66 million gas, including binding checks and consuming the nullifier.
Versioning
Each circuit records its proof system and verification-key hash; a new circuit version is a new registration.
Fingerprints
Deployed bytecode is identified by keccak256 with immutables masked; the SDK refuses an address whose code does not match.

Backend architecture

Roles
One codebase, three roles: the HTTP API, background proof workers (BullMQ on Redis) and the chain indexer.
Storage
PostgreSQL in three schemas: meta (public projections), vault (sealed keys), sensitive (encrypted aggregates, AES-256-GCM with per-row associated data).
Credentials
Project API keys with scopes; the secret is shown once and kept only as an HMAC verifier under a KEK-derived key. Wallet sessions manage projects and keys.
Interface
OpenAPI 3.1, structured errors with request ids, rate limits, OpenTelemetry tracing.

Cross-chain integration

A credential issued on one chain can be checked on another. Every result names its evidence kind and the assurance it rests on.
Source chainRobinhood ChainCredentialRegistryfinalized headerTarget chainArbitrum Oneverifiersource-state-proofissuer-attestationstate-proof:header-quorumEIP-1186 proofsquorum of endpointsissuer-attestedEIP-712, namesthe target chaintarget-nativetarget-registrysource = targetEvery result names its evidence kind and assurance
NetworkChain IDEnvironmentExplorerPublic RPCQuantLayer contracts
Arbitrum OnePrimary network42161Mainnetarbiscan.iohttps://arb1.arbitrum.io/rpcNot deployed
Arbitrum SepoliaPrimary network421614Testnetsepolia.arbiscan.iohttps://sepolia-rollup.arbitrum.io/rpcDeployed
Robinhood ChainSecondary network4663Mainnetrobinhoodchain.blockscout.comhttps://rpc.mainnet.chain.robinhood.comNot deployed
Robinhood Chain TestnetSecondary network46630Testnetexplorer.testnet.chain.robinhood.comhttps://rpc.testnet.chain.robinhood.comNot deployed

Security assumptions