How it works
01
SHA3-256 (FIPS 202) of the exact artifact bytes, computed on your machine.
02
ML-DSA-87 (FIPS 204, pure, empty context) over the packed message below. Keys come from 32-byte seeds.
03
The registry rebuilds the message and calls pqcVerify at 0x0000…0a01. No valid signature, no record.
Every message is abi.encodePacked, starting with a domain tag so a signature for one action can never be replayed as another.
Adds a release. Signed by the current signing key.
| # | Field | Packed type | Bytes |
|---|---|---|---|
| 01 | "FORREL/v1/PUBLISH" | bytes (utf-8) | 17 |
| 02 | chainId | uint256 | 32 |
| 03 | registry | address | 20 |
| 04 | projectId | bytes32 | 32 |
| 05 | seq | uint64 | 8 |
| 06 | versionHash | bytes32 | 32 |
| 07 | artifactHash | bytes32 | 32 |
| 08 | metaHash | bytes32 | 32 |
| Total | 205 | ||
Replaces the signing key. Signed by the current key, or by the recovery key.
| # | Field | Packed type | Bytes |
|---|---|---|---|
| 01 | "FORREL/v1/ROTATE" | bytes (utf-8) | 16 |
| 02 | chainId | uint256 | 32 |
| 03 | registry | address | 20 |
| 04 | projectId | bytes32 | 32 |
| 05 | keyEpoch | uint32 | 4 |
| 06 | newPubkeyHash | bytes32 | 32 |
| 07 | viaRecovery | bool | 1 |
| Total | 137 | ||
Marks a release as revoked, with a reason. Signed by the current signing key.
| # | Field | Packed type | Bytes |
|---|---|---|---|
| 01 | "FORREL/v1/REVOKE" | bytes (utf-8) | 16 |
| 02 | chainId | uint256 | 32 |
| 03 | registry | address | 20 |
| 04 | projectId | bytes32 | 32 |
| 05 | releaseId | uint256 | 32 |
| 06 | reason | uint8 | 1 |
| Total | 133 | ||
A quantum attacker forges a release signature
ML-DSA-87 signatures, verified on-chain. Classical signatures never carry release authority.
A stolen classical EVM key
It only pays gas. It can't publish, rotate or revoke without a valid ML-DSA-87 signature.
The signing key is compromised
Revoke the affected releases, then rotate with the offline recovery key.
A replayed signature
seq, keyEpoch, chainId and the registry address are inside every signed message.
A download page shows the wrong hash
You hash the file yourself; the verdict comes from the chain.
Forrel's website is compromised
The CLI verifies independently, Re-check uses a raw eth_call, and the contract is open source.
pqcVerify is inactive or returns nothing
The contract reverts with PrecompileUnavailable. Empty data is never treated as valid.
Testnet log pruning
Everything verification needs lives in contract storage (SSTORE2), not in event logs.
Out of scope: device-side secure boot, artifact hosting, and mainnet economics.
ForrelRegistry on Diana (chain 9800)
0xd438B0A22F2404C8f10c1dbBBA6cA56B391E997d