Overview

Architecture

How the wallet, key management, vault, verifier and permission engine fit together.

Quoriel has two off-chain components and four onchain ones.

Off-chain

  • User wallet. Any injected EVM wallet. It sends owner transactions and pays gas in HYPE.
  • Key management. Runs in the browser. Generates a 32-byte seed, derives one-time keys from it and signs authorization digests. Secrets are never sent to a server, logged or stored by the app.

Onchain

  • QVaultFactory deploys vaults and indexes them by owner. Its list of supported verifiers is fixed at deployment; there is no admin key.
  • QVault holds assets and stores a 32-byte commitment to the current post-quantum key, a nonce, consumed commitments, the permission table and any pending recovery.
  • IPQVerifier implementations check signatures. They are stateless and identified by algorithmId().
  • Permission engine: the agentExecute path inside QVault, which enforces each agent's token, allowlist, limits and expiry.

Authorization flow

1. App reads nonce n and the current key commitment from the vault
2. App computes payloadHash for the action (e.g. keccak256(abi.encode(token, to, amount)))
3. Vault digest = keccak256(abi.encode(
     DOMAIN_TAG, chainid, vault, action, payloadHash, n, deadline, nextKeyCommitment))
4. Browser signs the digest with one-time key k, commits to key k+1
5. Owner wallet submits the transaction with the 16,384-byte signature
6. Vault calls verifier.verify(commitment, digest, signature)
7. On success: nonce++, commitment k marked consumed, current key = k+1