Build on the oracle
Three recipes to build on the Authority Risk Oracle, all replayable and all on test networks. They read a score on-chain, check the signed files of the Watch without trusting me, and put a guard in front of an action. A score is a reading, not a verdict.
read at 19:40Z on 25 November 2026. This page needs no script and no tool to read.
I wrote this page from a reading of the oracle on Ethereum Sepolia testnet (chain ID 11155111), the source of its contract and the signed manifest of the Watch, all read on 2026-11-25 at 19:40Z.
Before you start
Everything here is replayable with cast (Foundry) or with curl and Node. The oracle is a contract with a few public functions; a reader only needs the read-only ones. I read the oracle on Ethereum Sepolia testnet (chain ID 11155111) at block 12211617. I asked 3 public nodes; 2 answered at that block and gave the same answers (ethereum-sepolia-rpc.publicnode.com, sepolia.gateway.tenderly.co); 1rpc.io gave no answer at that block. I read the source of the contract at commit fbea6be of the repository.
| Function (read-only) | What it returns |
|---|---|
| getScore(address) | The eight values stored for a contract: five sub-scores, the composite, the time of the last push and the hash of the method. For an address that was never scored, eight zeros. |
| isStale(address) | true if the address was never scored, or if its last push is older than maxStaleness. Ask it before you trust getScore. |
| maxStaleness() | The age in seconds after which a score counts as stale. Its admin can change it. |
| trackedTargetsCount() and trackedTargets(i) | How many addresses were ever scored, and the address at position i, so that you can list the coverage without an indexer. |
| UPDATER_ROLE(), DEFAULT_ADMIN_ROLE(), hasRole(role, account), getRoleAdmin(role), supportsInterface(id) | Who holds which role. Standard access-control reads. |
The functions that write, which you never call
They exist so that you know what the oracle can and cannot do for you: a reader cannot change a score.
| Function | Who can call it | What it does |
|---|---|---|
| updateScore, updateScores | UPDATER_ROLE | Writes the scores. A reader never calls them. |
| setMaxStaleness | DEFAULT_ADMIN_ROLE | Changes what counts as stale. |
| grantRole, revokeRole, renounceRole | the admin of the role, or the account itself | Moves the roles. |
Where the oracles are
The EVM oracles of the Watch, on test networks. Each scores contracts of the networks named in its file.
| Network | Chain ID | Oracle |
|---|---|---|
| Robinhood Chain testnet | 46630 | 0x9BF45734D09bC7CA39238e767B2af9AAc62a7f52 |
| Ethereum Sepolia (testnet) | 11155111 | 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 |
| Arbitrum Sepolia (testnet) | 421614 | 0x50840a7667baEa9D05ad4ae3dCeb384724b58720 |
| Base Sepolia (testnet) | 84532 | 0x50840a7667baEa9D05ad4ae3dCeb384724b58720 |
| Tempo Moderato (testnet) | 42431 | 0x50840a7667baEa9D05ad4ae3dCeb384724b58720 |
| Plasma testnet | 9746 | 0x50840a7667baEa9D05ad4ae3dCeb384724b58720 |
| Monad testnet | 10143 | 0x50840a7667baEa9D05ad4ae3dCeb384724b58720 |
| HyperEVM testnet | 998 | 0x50840a7667baEa9D05ad4ae3dCeb384724b58720 |
Recipe 1: read a score on-chain
The oracle 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 on Ethereum Sepolia testnet (chain ID 11155111) publishes a score for contracts that live on another network. Here the target 0x1f98431c8ad98523631ae4a59f267346ea31f984 is a contract on Ethereum mainnet (chain ID 1): the score is written on the test network and describes the mainnet contract. Nothing in this recipe writes to a chain and nothing needs a key.
The eight values come back in the order of the comment under the first command: five sub-scores, the composite, the time of the last push, and the hash of the method that computed them. The composite of this contract read 85 at block 12211617. A composite is a number written by a script from public data, with the method named by the hash. It says how strong an authority setup looks; it does not say what will happen.
isStale answered false. The contract says: true if the address was never scored or if the last push is older than maxStaleness. At this block maxStaleness read 777600 seconds (9.0 days), and its admin can change it. lastUpdated is written by the account that pushes the score, not set by the chain, so it is the pusher's claim about the time; the Watch checks it and the page of the Watch is where to look for a push that came late.
A stale example, read at the same block: the contract 0x2cc440b721d2cafd6d64908d6d8c4acc57f8afc3 on Ethereum mainnet (chain ID 1) has isStale true, because its last push is older than maxStaleness. Its values are still stored and still readable; a consumer that skips the isStale call would use them as if they were fresh.
An address that was never scored reads eight zeros, and isStale reads true. The zeros are not a score: they are the answer of a mapping with no entry. This is why the order is always isStale first, then getScore. The address 0x000000000000000000000000000000000000dEaD on Ethereum mainnet (chain ID 1) was never scored. The last block of this recipe shows what block 12211617 answered for it.
The commands of this recipe use --block 12211617, which needs a node that keeps old state: a public node may drop that state after some weeks. The same commands without --block read the latest state.
Command, on Ethereum Sepolia testnet (chain ID 11155111), for a contract on Ethereum mainnet (chain ID 1)
cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "getScore(address)(uint8,uint8,uint8,uint8,uint8,uint8,uint64,bytes32)" 0x1f98431c8ad98523631ae4a59f267346ea31f984 --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), target on Ethereum mainnet (chain ID 1) # the eight values: adminKey, multisig, timelock, oracleAuthority, crossExposure, composite, lastUpdated, methodologyHash
What it printed (block 12211617 of Ethereum Sepolia testnet (chain ID 11155111), read at 25 November 2026 at 19:39Z)
80 100 75 100 20 85 1795209480 [1.795e9] 0xae1451a64f7891c1002ccc93316ccb5050594a277078a4c857debf895f9bb9bb # the last value is the methodologyHash, a hash on Ethereum Sepolia testnet (chain ID 11155111), not an address
Then ask whether it is stale, same oracle, same block
cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "isStale(address)(bool)" 0x1f98431c8ad98523631ae4a59f267346ea31f984 --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), target on Ethereum mainnet (chain ID 1) false
An address that was never scored, same oracle, same block
cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "getScore(address)(uint8,uint8,uint8,uint8,uint8,uint8,uint64,bytes32)" 0x000000000000000000000000000000000000dEaD --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), address on Ethereum mainnet (chain ID 1) 0 0 0 0 0 0 0 0x0000000000000000000000000000000000000000000000000000000000000000 # eight zeros; the last is a zero hash on Ethereum Sepolia testnet (chain ID 11155111), not an address cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "isStale(address)(bool)" 0x000000000000000000000000000000000000dEaD --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), address on Ethereum mainnet (chain ID 1) true
Recipe 2: read the signed files without trusting me
The Watch reads the oracles and the targets every six hours and publishes files on the branch watch-data. It also publishes a manifest: the sha256 of every file and the head of the hash chain of its journal, signed with an Ed25519 key. You do not have to trust my page, my word or the host of the files: you can check the signature and the hashes yourself.
The first block downloads the signed manifest and prints the sha256 of the scores file of this oracle as you received it. The script below it checks one thing: that the manifest was signed by the pinned key, 11baca3ef6a69de4901c185f6cbbd3f93318fbb74f9961a8d39aead841adf409. The script builds the key from that constant, not from the key written in the file, and prints KEY DIFFERS if the file names another key. The last block prints the sha256 that the manifest records for that same file. When the two sha256 are equal, the file is the one the Watch signed. If they differ, run both again: the Watch may have published a new run between the two downloads. I ran it on 2026-11-25 at 19:40Z: the signature verified and the two hashes were equal.
What this proves: the files are the ones the Watch signed. What it does not prove: that the Watch read the chain correctly, or that its workflow is honest. The workflow holds the signing key; a bad change to it could sign anything, and the repository history would show it. To check a score against the chain, use recipe 1.
The signed manifest and the file that carries the score, from the public branch of the Watch
curl -s -o signature.json https://raw.githubusercontent.com/RealSpap/authority-risk-oracle-showcase/watch-data/signature.json curl -s https://raw.githubusercontent.com/RealSpap/authority-risk-oracle-showcase/watch-data/scores/ethereum-l1-sepolia.json | shasum -a 256
Verify the signature with Node (no install; the key is pinned in the script; save as verify.js and run node verify.js)
const fs = require('fs'), c = require('crypto');
const s = JSON.parse(fs.readFileSync('signature.json', 'utf8'));
const canon = function f(o) { return Array.isArray(o) ? '[' + o.map(f).join(',') + ']' : (o && typeof o === 'object') ? '{' + Object.keys(o).sort().map(function (k) { return JSON.stringify(k) + ':' + f(o[k]); }).join(',') + '}' : JSON.stringify(o); };
const msg = canon(s.manifest).replace(/[\u0080-\uffff]/g, function (ch) { return '\\u' + ch.charCodeAt(0).toString(16).padStart(4, '0'); });
const key = c.createPublicKey({ key: Buffer.concat([Buffer.from('302a300506032b6570032100', 'hex'), Buffer.from('11baca3ef6a69de4901c185f6cbbd3f93318fbb74f9961a8d39aead841adf409', 'hex')]), format: 'der', type: 'spki' });
console.log(s.public_key === '11baca3ef6a69de4901c185f6cbbd3f93318fbb74f9961a8d39aead841adf409' ? 'pinned key' : 'KEY DIFFERS', c.verify(null, Buffer.from(msg), key, Buffer.from(s.signature, 'hex')) ? 'signature OK' : 'signature FAILS');Compare: the sha256 that the signed manifest records for that file
python3 -c "import json;print(json.load(open('signature.json'))['manifest']['files']['scores/ethereum-l1-sepolia.json'])"Recipe 3: put a guard in front of an action
The guard is a rule about when to act, not a contract. It acts only if the target's score was read, is fresh, and is above a line that you choose; otherwise it refuses or asks for a confirmation. The line is yours: I do not give one, and no number here is a recommendation.
Each line answers a failure that is easy to miss. A failed read returns nothing, and nothing is not zero. A target that was never scored reads zeros with isStale true, so the stale test comes before the score. Read at the block of your decision, on two nodes that must agree, so that a single node cannot decide for you.
The composite is an aggregate of three of the five sub-scores (admin key, multisig and timelock); the oracle authority and cross exposure scores are not in it, so a guard on the composite alone ignores them: read them too if they matter to you. The admin can raise maxStaleness, so a reader who needs a bound on age can also set its own on lastUpdated. The pusher writes lastUpdated, so a date in the future would keep isStale false: the guard asks in that case.
A score is a reading, not a verdict. A reading above your line allows an action; it does not make the action wise, and a reading below it does not prove a problem.
A guard in a dozen lines (pseudo-code, not a contract to deploy)
def may_act(target, minimum): # minimum is a line YOU choose
stale = oracle_is_stale(target) # asked first, at one block, two nodes that must agree
if stale is None: # a failed read is not an answer of fresh
return ask("no staleness reading")
if stale: # never scored, or older than maxStaleness
return ask("stale or never scored")
reading = read_score(target) # same block, same two nodes
if reading is None: # a failed read is not a zero
return ask("no reading")
if is_after(reading.last_updated, block_time()): # a date in the future is not fresh either
return ask("last update in the future")
if below(reading.composite, minimum): # below your line
return refuse("below the line you chose")
return allow() # a reading allowed it, nothing moreWhat this is not
It is not an audit and not a security rating. It does not say that a contract is sound or that it is not.
It is not investment advice. Nothing here tells you to buy, sell, lend or hold anything.
It is testnet. The oracles publish on test networks, and the contracts they score are on other networks; an address on a testnet has no value. Nothing on this page writes to any chain.
A value without a reading is never zero. A failed call, a missing file or a target that was never scored is a stated absence, and the guard above refuses it or asks.
What I left out
This page covers the oracle on Ethereum Sepolia testnet (chain ID 11155111). The other EVM oracles have the same contract at their own addresses (listed above) and I read only this one; the program on Solana devnet is a different program with its own accounts, described in the repository.
I confirmed that the deployed code answers each read function above and carries the selector of every function in the two tables. Comparing the deployed bytecode with a build of the source is outside what this page does; the repository documents how its own script compares the chain with the Watch.
I took one fresh target, one address that was never scored and, when the file listed one, one stale target, so at most three of the targets of this oracle. The Watch lists all of them.
I did not run a guard against a deployed consumer: the guard is a shape, not a program, and the repository holds an example consumer that reads the composite only.
Links
- The contract, at the commit I read
- The example consumer
- The Watch branch with the signed files
- Repository
Addresses read
0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906on Ethereum Sepolia testnet (chain ID 11155111): the oracle read in recipe 10x1f98431c8ad98523631ae4a59f267346ea31f984on Ethereum mainnet (chain ID 1): a contract scored by that oracle0x000000000000000000000000000000000000dEaDon Ethereum mainnet (chain ID 1): an address that was never scored0x2cc440b721d2cafd6d64908d6d8c4acc57f8afc3on Ethereum mainnet (chain ID 1): a contract whose last push is older than maxStaleness
Replay it
Each line below is one command. Run them in order; the block and the node are in the line when the answer depends on them.
cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "getScore(address)(uint8,uint8,uint8,uint8,uint8,uint8,uint64,bytes32)" 0x1f98431c8ad98523631ae4a59f267346ea31f984 --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), address on Ethereum mainnet (chain ID 1) cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "isStale(address)(bool)" 0x1f98431c8ad98523631ae4a59f267346ea31f984 --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), address on Ethereum mainnet (chain ID 1) cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "maxStaleness()(uint64)" --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111) cast call 0xB6F8474ccC71AF477c31c2DF663B3942ddfbf906 "getScore(address)(uint8,uint8,uint8,uint8,uint8,uint8,uint64,bytes32)" 0x000000000000000000000000000000000000dEaD --rpc-url https://ethereum-sepolia-rpc.publicnode.com --block 12211617 # oracle on Ethereum Sepolia testnet (chain ID 11155111), address on Ethereum mainnet (chain ID 1) curl -s https://raw.githubusercontent.com/RealSpap/authority-risk-oracle-showcase/watch-data/signature.json # the signed manifest curl -s https://raw.githubusercontent.com/RealSpap/authority-risk-oracle-showcase/watch-data/scores/ethereum-l1-sepolia.json | shasum -a 256 # the file, hashed by you curl -s https://raw.githubusercontent.com/RealSpap/authority-risk-oracle-showcase/fbea6bef9107687a645c3f8f7eb6b988358f90cd/src/AuthorityRiskOracle.sol # the source of the contract
Limit
These are readings of public data at the block and the time shown, on test networks. A score is not an audit, not a security rating and not investment advice, and a later push changes the values. The guard is a shape that I did not run against a deployed consumer.
Sources
All notes. Comments are welcome at contact@realspap.com, with the command and the block so that I can replay yours. Not an audit, not investment advice.