Skip to content

Commit

Permalink
Respond to RFCs in PR #89
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch authored and theref committed Jul 4, 2023
1 parent 1c76de4 commit 9fccf05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 3 additions & 4 deletions contracts/contracts/coordination/AllowList.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControlDefaultAdminRules.sol";
import "./IAccessController.sol";
import "./IRitualAuthorizer.sol";
import "./Coordinator.sol";


contract AllowList is AccessControlDefaultAdminRules, IAccessController {
contract AllowList is AccessControlDefaultAdminRules, IRitualAuthorizer {
Coordinator public coordinator;

// mapp
mapping(uint256 => mapping(address => bool)) public rituals;
mapping(uint256 => mapping(address => bool)) public authorizations;

constructor(
Coordinator _coordinator,
Expand Down
4 changes: 3 additions & 1 deletion contracts/contracts/coordination/Coordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "./IFeeModel.sol";
import "./IReimbursementPool.sol";
import "../lib/BLS12381.sol";
import "../../threshold/IAccessControlApplication.sol";
import "../../../../nucypher/tests/acceptance/contracts/.cache/openzeppelin/v4.8.1/access/IAccessControl.sol";
import "./IRitualAuthorizer.sol";

/**
* @title Coordinator
Expand Down Expand Up @@ -56,7 +58,7 @@ contract Coordinator is AccessControlDefaultAdminRules {
address authority;
uint16 dkgSize;
bool aggregationMismatch;
address accessController;
IRitualAuthorizer accessController;
BLS12381.G1Point publicKey;
bytes aggregatedTranscript;
Participant[] participant;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.8.0;

interface IAccessController {
function isEnricoAuthorized(
interface IRitualAuthorizer {
function isAuthorized(
uint256 ritualID,
bytes memory evidence,
bytes memory ciphertextHash
Expand Down

0 comments on commit 9fccf05

Please sign in to comment.