Revocation & Optional Live IEAS Mirror
Mirrored with revocable: true whenever timelock configures a non-zero easRegistry and easSchemaUid via setEasConfig():
Cryptographic Verification Specification · EIP-712 & EAS
Exact HopperAuditProof v1 domain separator, normative 8-field AuditProofV1 struct, refutation revocation hooks (refutedProofs / revokeProof), optional live IEAS mirroring, and drop-in verification patterns for smart contracts and off-chain verifiers.
EIP-712 Domain Separator
Every Auditeur proof signature is bound to chain ID and verifying contract address to prevent cross-chain and cross-deployment replay.
| Domain Field | Type | Normative Value |
|---|---|---|
name | string | "HopperAuditProof" |
version | string | "1" |
chainId | uint256 | Target EVM chain ID (e.g. Local Anvil 31337, Base Sepolia 84532, Sepolia 11155111) |
verifyingContract | address | Deployed AttestationBridge address |
AUDIT_PROOF_TYPEHASH = 0x143234ac9dc6561d13da9b7219261fe397f04ea3330d6556efd8c851ed5ed37b computed over the exact whitespace-free canonical type encoding below:
Normative Payload Schema
All 8 fields are fixed-size value types for deterministic ABI encoding, byte-for-byte parity between hopper-engines-attestation and AttestationBridge.sol, and 1:1 EAS schema alignment.
| Field | Solidity Type | Encoding / Derivation | On-Chain Verification Rule |
|---|---|---|---|
targetHash | bytes32 | keccak256(bytes(canonicalTargetIdentifier)) | Must be non-zero; binds the attestation to one exact normalized repository or deployment target. |
commitHash | bytes32 | Exact Git commit digest (keccak256(bytes(commitSha)) or canonical 32-byte digest) | Must be non-zero; subsequent commits invalidate coverage for (targetHash, commitHash). |
receiptRoot | bytes32 | Merkle / SHA-256 root over canonical tool execution & refutation receipts | Commits on-chain to the full reproducible scan and adversarial refutation receipt chain. |
reportDigest | bytes32 | SHA-256 digest of the immutable canonical audit report JSON / SARIF bundle | Allows anyone to verify off-chain audit report bytes against on-chain AttestationRecord state. |
score | uint16 | Normalized deterministic rubric score in range 0..100 | AttestationBridge enforces score <= MAX_SCORE (100); downstream gates enforce their own minScore floor. |
verifiedFindings | uint16 | Count of independently verified, unrefuted security findings | Excludes refuted or unverified LLM-only claims; strict integrators typically require verifiedFindings == 0. |
issuedAt | uint64 | Unix timestamp (seconds, UTC) when Auditeur sealed the report | Orders latestProofIdByTarget and latestProofIdByTargetCommit updates deterministically. |
expiresAt | uint64 | Unix timestamp (seconds, UTC) when freshness expires (or 0 for non-expiring) | When non-zero, must satisfy expiresAt > issuedAt and expiresAt > block.timestamp on submission and verification. |
Revocation & Ecosystem Interoperability
AttestationBridge stands on its own as the canonical proof verifier, wires refutedProofs + revokeProof directly to RefutationStake, and optionally mirrors every attestation and revocation to an external IEAS registry.
Mirrored with revocable: true whenever timelock configures a non-zero easRegistry and easSchemaUid via setEasConfig():
Inspect how AttestationBridge.isVerified(targetHash, commitHash) plus a strict consumer deployment gate deterministically evaluate an AuditProofV1:
Reference Integration Patterns
Verify on-chain inside protocol deployment/upgrade guards, or independently off-chain from raw EIP-712 signature bytes using standard tooling.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IAttestationBridge {
struct AuditProofV1 {
bytes32 targetHash;
bytes32 commitHash;
bytes32 receiptRoot;
bytes32 reportDigest;
uint16 score;
uint16 verifiedFindings;
uint64 issuedAt;
uint64 expiresAt;
}
struct AttestationRecord {
bytes32 proofId;
bytes32 targetHash;
bytes32 commitHash;
bytes32 receiptRoot;
bytes32 reportDigest;
uint16 score;
uint16 verifiedFindings;
uint64 issuedAt;
uint64 expiresAt;
address attestor;
uint64 recordedAt;
}
function submitAttestationWithSig(AuditProofV1 calldata proof, bytes calldata signature)
external
returns (bytes32 proofId);
function isProofActive(bytes32 proofId) external view returns (bool active);
function isVerified(bytes32 targetHash, bytes32 commitHash)
external
view
returns (bool verified);
function refutedProofs(bytes32 proofId) external view returns (bool);
function easUidByProof(bytes32 proofId) external view returns (bytes32);
function getAttestationForTargetCommit(bytes32 targetHash, bytes32 commitHash)
external
view
returns (AttestationRecord memory record);
}
contract AuditedDeploymentGate {
IAttestationBridge public immutable bridge;
error AuditProofInvalid(bytes32 targetHash, bytes32 commitHash);
error AuditPolicyNotMet(uint16 score, uint16 verifiedFindings);
constructor(IAttestationBridge _bridge) {
bridge = _bridge;
}
/// @notice Require an active, unrefuted, non-expired Auditeur proof with score >= minScore and 0 verified findings.
function requireCleanAudit(bytes32 targetHash, bytes32 commitHash, uint16 minScore) external view {
if (!bridge.isVerified(targetHash, commitHash)) {
revert AuditProofInvalid(targetHash, commitHash);
}
IAttestationBridge.AttestationRecord memory rec =
bridge.getAttestationForTargetCommit(targetHash, commitHash);
if (rec.score < minScore || rec.verifiedFindings != 0) {
revert AuditPolicyNotMet(rec.score, rec.verifiedFindings);
}
}
}import { verifyTypedData } from "viem";
const domain = {
name: "HopperAuditProof",
version: "1",
chainId: 84532, // Base Sepolia testnet candidate (mainnet TBD post-legal-gate)
verifyingContract: "0x0000000000000000000000000000000000000000", // Deployed AttestationBridge
} as const;
const types = {
AuditProofV1: [
{ name: "targetHash", type: "bytes32" },
{ name: "commitHash", type: "bytes32" },
{ name: "receiptRoot", type: "bytes32" },
{ name: "reportDigest", type: "bytes32" },
{ name: "score", type: "uint16" },
{ name: "verifiedFindings", type: "uint16" },
{ name: "issuedAt", type: "uint64" },
{ name: "expiresAt", type: "uint64" },
],
} as const;
// 1. Verify ECDSA signature against the published Auditeur attestor address.
const signatureValid = await verifyTypedData({
address: auditeurAttestorAddress,
domain,
types,
primaryType: "AuditProofV1",
message: proofPayload,
signature,
});
// 2. Confirm freshness, minimum score floor, and zero verified findings before trusting.
const now = BigInt(Math.floor(Date.now() / 1000));
const acceptable =
signatureValid &&
proofPayload.score >= 85 &&
proofPayload.verifiedFindings === 0 &&
(proofPayload.expiresAt === 0n || now < proofPayload.expiresAt);