Skip to content

Commit

Permalink
WEB3-233: Update control root from risc0 at c6d12c7b13a9288ab22b81f4e…
Browse files Browse the repository at this point in the history
…71790d3cdbb0b17 (#329)
  • Loading branch information
nategraf authored Nov 14, 2024
1 parent 0b967fe commit 6121a98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/src/groth16/ControlID.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pragma solidity ^0.8.9;

library ControlID {
bytes32 public constant CONTROL_ROOT = hex"8b6dcf11d463ac455361b41fb3ed053febb817491bdea00fdb340e45013b852e";
bytes32 public constant CONTROL_ROOT = hex"8cdad9242664be3112aba377c5425a4df735eb1c6966472b561d2855932c0469";
// NOTE: This has the opposite byte order to the value in the risc0 repository.
bytes32 public constant BN254_CONTROL_ID = hex"05a022e1db38457fb510bc347b30eb8f8cf3eda95587653d0eac19e1f10d164e";
bytes32 public constant BN254_CONTROL_ID = hex"04446e66d300eb7fb45c9726bb53c793dda407a62e9601618bb43c5c14657ac0";
}
4 changes: 2 additions & 2 deletions contracts/test/RiscZeroGroth16Verifier.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract RiscZeroGroth16VerifierTest is Test {
verifier = new RiscZeroGroth16Verifier(ControlID.CONTROL_ROOT, ControlID.BN254_CONTROL_ID);
}

function testConsistentSystemStateZeroDigest() external view {
function testConsistentSystemStateZeroDigest() external pure {
require(
ReceiptClaimLib.SYSTEM_STATE_ZERO_DIGEST
== sha256(
Expand Down Expand Up @@ -138,6 +138,6 @@ contract RiscZeroGroth16VerifierTest is Test {
}

function testSelectorIsStable() external view {
require(verifier.SELECTOR() == hex"50bd1769");
require(verifier.SELECTOR() == hex"c101b42b");
}
}
4 changes: 2 additions & 2 deletions contracts/test/TestReceipt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pragma solidity ^0.8.13;

library TestReceipt {
bytes public constant SEAL =
hex"50bd1769096d29a4e342d93785757cde64ef07c09f317481f0ee9274f14281dc501c1b2e036ee070b7bd75b4f0253f7349afaa4074d73f77b09de60dd82d3fbeba8cc4a10dab619b389ed53ddfc3113e055729ff430a82f57d7edc24821e782653b9f1ba00558126e75bcb392a9a58d45af8489f4441d77e91d10c11dcea70c33c93f3ba03dab52a25735bb04f2526ec7289c1ee8912f921c4f5d380a5f906782f60044a0d44d7005528e1821e458e7bf108777452b2327ba1998710aa62e1e106858a302c0fe02760c5fda0000e039d263b2cc918eb2539da008bbbe7007f767d45d22d18f589ab466da35e0d0bfc300af4b0bc941a9897a863b48a2deb5f057c2f512c";
hex"c101b42b25016dc12080c5100a9841f324669460144c96d23619bb9e828e3a192c80ecfd1140eb491e6ba0b4b81afb4ff447e32cb9be3cecf003dc14959d680ae60dc11e040b0a98edd1abab11587de8a32f0095c37c7e43c03d7e5a709e0807c9c53a39127863b8b8ab606ee7527f4d1ff30a497b9c5c716b27946b68aad4408b6ab4d52bba359168a56baabe40a0da71463ccbeccab13c67e2029feb661b9e582cd1902fed2fbba2aa46f12326baf8e2b3bc85a413b25fed59692c4db8f6c3368bdbba2e0a48d161ea889d685b4ac1bd82c8ae190d35e656fd42d1086b362ad521acd22a62b65806ae08d4ca6ad0d6665bf8f4c9bd84717dc200adcd24e0cada3a621c";
bytes public constant JOURNAL = hex"6a75737420612073696d706c652072656365697074";
bytes32 public constant IMAGE_ID = hex"d01c15afa768a05b213a9e5fcdcc5724a2947e00098c7ec34ccbe2946bbc0013";
bytes32 public constant IMAGE_ID = hex"01ebed7f56116d9fdbae4a81c29c07daf43b17a1d5e4dd6eb0e971d689ccf88a";
}

0 comments on commit 6121a98

Please sign in to comment.