Skip to content

Commit

Permalink
remove ZKP
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Nov 26, 2024
1 parent f05104d commit 779513f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions contracts/verifiers/UniversalVerifierMultiQuery.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract UniversalVerifierMultiQuery is Ownable2StepUpgradeable {
bytes params;
}
/**
* @dev Struct to store ZKP proof and associated data
* @dev Struct to store proof and associated data
*/
struct Proof {
bool isVerified;
Expand Down Expand Up @@ -166,9 +166,9 @@ contract UniversalVerifierMultiQuery is Ownable2StepUpgradeable {
}

/**
* @dev Sets a ZKP request
* @param requestId The ID of the ZKP request
* @param request The ZKP request data
* @dev Sets a request
* @param requestId The ID of the request
* @param request The request data
*/
function setRequest(
uint256 requestId,
Expand Down Expand Up @@ -210,13 +210,22 @@ contract UniversalVerifierMultiQuery is Ownable2StepUpgradeable {
//TODO;
}

/**
* @dev Gets a specific multi query by ID
* @param multiQueryId The ID of the multi query
* @return multiQuery The multi query data
*/
function getMultiQuery(uint256 multiQueryId) public view returns (MultiQuery memory) {
//TODO;
}

/**
* @dev Submits an array of responses and updates proofs status
* @param responses The list of responses including request ID, proof and metadata
* @param crossChainProofs The list of cross chain proofs from universal resolver (oracle). This
* includes identities and global states.
*/
function submitZKPResponse(Response[] memory responses, bytes memory crossChainProofs) public {
function submitResponse(Response[] memory responses, bytes memory crossChainProofs) public {
UniversalVerifierMultiQueryStorage storage $ = _getUniversalVerifierMultiQueryStorage();

$._state.processCrossChainProofs(crossChainProofs);
Expand Down

0 comments on commit 779513f

Please sign in to comment.