Skip to content

Commit

Permalink
Revert "WEB3-309: Update ControlID (#408)"
Browse files Browse the repository at this point in the history
This reverts commit cda7330.
  • Loading branch information
capossele committed Jan 28, 2025
1 parent e1c3bf5 commit beb4396
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 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"ffe166017b1ab460995b45510524c60e3756344feff2414f44cda25c33a78058";
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"04446e66d300eb7fb45c9726bb53c793dda407a62e9601618bb43c5c14657ac0";
}
4 changes: 2 additions & 2 deletions contracts/test/RiscZeroGroth16Verifier.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025 RISC Zero, Inc.
// Copyright 2024 RISC Zero, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -138,6 +138,6 @@ contract RiscZeroGroth16VerifierTest is Test {
}

function testSelectorIsStable() external view {
require(verifier.SELECTOR() == hex"78f5c1dc");
require(verifier.SELECTOR() == hex"c101b42b");
}
}
6 changes: 3 additions & 3 deletions contracts/test/TestReceipt.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025 RISC Zero, Inc.
// Copyright 2024 RISC Zero, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@ pragma solidity ^0.8.13;

library TestReceipt {
bytes public constant SEAL =
hex"78f5c1dc2356f3069acc9023644ad5450482a9810662f57b3094032c9919a5518808056b12ac173aa082fbd85be8c7ffe44f9dea562eaad2e1d885bd61d7a944645da03028c5e87039c07ea0664dbf63b0ff0f08348e545d1757a6ceac7b858580a4fe2f1f890168f4bdda7747a44f76877b6485ae33e523bf236165210225cf5b4a14fd06a48453b9991d2137a0e65c1207ff86380c43fc2678135c03bfea50301b5e37277399e89b566a5e8c7b46b69b0ebdfcdd7fc3c119c8e79f1dcb825980ce5a6917a0c2d5246326f4c369a0268b5801352e814b699a0ece2d4819321b54c7725122580d9220a367b457b16e46fa810daa46b3b7991d764c597a3b2e2e5a0c366d";
hex"c101b42b25016dc12080c5100a9841f324669460144c96d23619bb9e828e3a192c80ecfd1140eb491e6ba0b4b81afb4ff447e32cb9be3cecf003dc14959d680ae60dc11e040b0a98edd1abab11587de8a32f0095c37c7e43c03d7e5a709e0807c9c53a39127863b8b8ab606ee7527f4d1ff30a497b9c5c716b27946b68aad4408b6ab4d52bba359168a56baabe40a0da71463ccbeccab13c67e2029feb661b9e582cd1902fed2fbba2aa46f12326baf8e2b3bc85a413b25fed59692c4db8f6c3368bdbba2e0a48d161ea889d685b4ac1bd82c8ae190d35e656fd42d1086b362ad521acd22a62b65806ae08d4ca6ad0d6665bf8f4c9bd84717dc200adcd24e0cada3a621c";
bytes public constant JOURNAL = hex"6a75737420612073696d706c652072656365697074";
bytes32 public constant IMAGE_ID = hex"dd685da048b079d446f85da4479ce777ddc14d84aa90492aa9780a9bdc104b3a";
bytes32 public constant IMAGE_ID = hex"01ebed7f56116d9fdbae4a81c29c07daf43b17a1d5e4dd6eb0e971d689ccf88a";
}

0 comments on commit beb4396

Please sign in to comment.