-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added zk dispatchers * fixed tests without zk * update changelog * useless fix
- Loading branch information
Showing
18 changed files
with
533 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.16; | ||
|
||
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
|
||
import {IPassportDispatcher} from "../../interfaces/dispatchers/IPassportDispatcher.sol"; | ||
|
||
contract PNOAADispatcher is IPassportDispatcher, Initializable { | ||
function __PNOAADispatcher_init() external initializer {} | ||
|
||
/** | ||
* @notice Authenticate the passport without AA. Just return `true` | ||
*/ | ||
function authenticate(bytes memory, bytes memory, bytes memory) external pure returns (bool) { | ||
return true; | ||
} | ||
|
||
/** | ||
* @notice Passports without AA omit the challenge | ||
*/ | ||
function getPassportChallenge(uint256 identityKey_) external pure returns (bytes memory) {} | ||
|
||
/** | ||
* @notice Get the passport without AA hash | ||
*/ | ||
function getPassportKey(bytes memory passportHash_) external pure returns (uint256) { | ||
return uint256(bytes32(passportHash_)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.