Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce UUPS upgradeable #289

Merged
merged 28 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
06c9447
introduce UUPS upgradeable
motemotech Jan 6, 2025
f20b919
temp finished verifier router v1
motemotech Jan 7, 2025
baee733
add general proxy contract
motemotech Jan 7, 2025
5e81e29
temp finished registry
motemotech Jan 7, 2025
5dd4ae9
Merge pull request #296 from zk-passport/dev
remicolin Jan 9, 2025
cf7dd4b
Merge branch 'dev' into update/upgradable-contract
motemotech Jan 11, 2025
4ea578b
Finished portal contract
motemotech Jan 11, 2025
bff112a
finished contract update
motemotech Jan 12, 2025
46c1656
add diagram
motemotech Jan 13, 2025
5dbfd8b
change to white diagram
motemotech Jan 13, 2025
038b074
change to white diagram
motemotech Jan 13, 2025
c1f87df
update openpassport registry
motemotech Jan 15, 2025
7929837
Merge pull request #311 from zk-passport/dev
remicolin Jan 16, 2025
07dd884
Merge branch 'dev' into update/upgradable-contract
motemotech Jan 17, 2025
6ab3810
rename contracts
motemotech Jan 17, 2025
066bff6
separate csca key handler
motemotech Jan 17, 2025
e19b3ad
separate csca key handler
motemotech Jan 17, 2025
1ae70dd
Merge branch 'openpassportv2' into update/upgradable-contract
motemotech Jan 17, 2025
3f34f51
Add upgradeability
motemotech Jan 17, 2025
9199a17
remove name openpassport from contract
motemotech Jan 19, 2025
afd0370
remove bland from contract dir
motemotech Jan 19, 2025
9554d5d
Merge branch 'dev' into update/upgradable-contract
motemotech Jan 19, 2025
077f45f
done for registry
motemotech Jan 19, 2025
aef7468
update for new circuit imple
motemotech Jan 19, 2025
0796f36
add onlyProxy
motemotech Jan 19, 2025
49b6227
delete unused file and comment
motemotech Jan 19, 2025
746d13a
add dev update and remove functions
motemotech Jan 20, 2025
1373faa
use bytes32 for attestation id
motemotech Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion circuits/circuits/disclose/vc_and_disclose.circom
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include "../utils/passport/disclose/disclose.circom";
include "../utils/passport/disclose/proveCountryIsNotInList.circom";
include "../utils/passport/ofac/ofac_name.circom";

template VC_AND_DISCLOSE( nLevels,FORBIDDEN_COUNTRIES_LIST_LENGTH) {
template VC_AND_DISCLOSE(nLevels,FORBIDDEN_COUNTRIES_LIST_LENGTH) {

signal input secret;
signal input attestation_id;
Expand Down
11 changes: 11 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Contracts for OpenPassport.

## OpenPassport Contract Architecture

![OpenPassport Contract Architecture](./assets/contract_architecture_v1.png)

## Cautions

When you do the upgrade, be careful with this storage patterns
- You can not change the order in which the contract state variables are declared, nor their type.
Pls see this page for more details: https://docs.openzeppelin.com/upgrades-plugins/writing-upgradeable#modifying-your-contracts

## Operations
Try running some of the following tasks:

```shell
Expand Down
Binary file added contracts/assets/contract_architecture_v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions contracts/contracts/IdentityVerificationHub.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

import "./proxy/PrivacyIDProxy.sol";

contract IdentityVerificationHub is PrivacyIDProxy {
constructor(address _logic, bytes memory _data) PrivacyIDProxy(_logic, _data) {}
}
Loading
Loading