Skip to content

Commit

Permalink
Add back isEncryptionAuthorized.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Jun 27, 2024
1 parent 3886874 commit 5e22190
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/contracts/coordination/Coordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,16 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable
return found;
}

function isEncryptionAuthorized(
uint32 ritualId,
bytes memory evidence,
bytes memory ciphertextHeader
) external view returns (bool) {
Ritual storage ritual = rituals[ritualId];
require(getRitualState(ritual) == RitualState.ACTIVE, "Ritual not active");
return ritual.accessController.isAuthorized(ritualId, evidence, ciphertextHeader);
}

function processReimbursement(uint256 initialGasLeft) internal {
if (address(reimbursementPool) != address(0)) {
uint256 gasUsed = initialGasLeft - gasleft();
Expand Down

0 comments on commit 5e22190

Please sign in to comment.