Skip to content

Commit

Permalink
rename to OpenPassport in UI and readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xturboblitz committed Aug 10, 2024
1 parent 01e9fe9 commit 86c38b8
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Proof of Passport CI/CD
name: OpenPassport CI/CD
on:
push:
branches:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ The International Civil Aviation Organization (ICAO) is a specialized agency of

## Project Ideas

- Integrate Proof of Passport to Gitcoin passport or a similar system to allow better sybil resistance in quadratic funding
- Integrate OpenPassport to Gitcoin passport or a similar system to allow better sybil resistance in quadratic funding
- Combine with other sources of identity to provide quantified levels of uniqueness, [totem](https://github.com/0xturboblitz/totem)-style. Examples can be [anon aadhaar](https://github.com/privacy-scaling-explorations/anon-aadhaar), [Japan's my number cards](https://github.com/MynaWallet/monorepo) or [Taiwan DID](https://github.com/tw-did/tw-did/)
- Add Proof of Passport as a [Zupass](https://github.com/proofcarryingdata/zupass) PCD
- Add OpenPassport as a [Zupass](https://github.com/proofcarryingdata/zupass) PCD
- Build a social network/anonymous message board for people from one specific country
- Create a sybil-resistance tool to protect social networks against spambots
- Do an airdrop farming protection tool
Expand Down
2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Proof of Passport App
# OpenPassport App

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion app/android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">Proof of Passport</string>
<string name="app_name">OpenPassport</string>
</resources>
2 changes: 1 addition & 1 deletion app/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = 'Proof of Passport'
rootProject.name = 'OpenPassport'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')
Expand Down
2 changes: 1 addition & 1 deletion app/app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "ProofOfPassport",
"displayName": "Proof of Passport"
"displayName": "OpenPassport"
}
13 changes: 2 additions & 11 deletions app/ios/ProofOfPassport/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand All @@ -43,10 +34,10 @@
<string>Need NFC to read Passport</string>
<key>NSAppTransportSecurity</key>
<string></string>
<key>NSFaceIDUsageDescription</key>
<string>Needed to secure the secret</string>
<key>NSCameraUsageDescription</key>
<string>Needed to scan the passport MRZ.</string>
<key>NSFaceIDUsageDescription</key>
<string>Needed to secure the secret</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>NSLocationWhenInUseUsageDescription</key>
Expand Down
8 changes: 4 additions & 4 deletions app/src/screens/AppScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ const AppScreen: React.FC<AppScreenProps> = ({ setSheetAppListOpen, setSheetRegi
</XStack> */}
</YStack>
<YStack>
<Text mt="$4" fontSize="$8" >How to use Proof of Passport?</Text>
<Text mt="$4" fontSize="$8" >How to use OpenPassport?</Text>
<YStack>
<XStack mt="$3" px="$5" gap="$2" >
<QrCode size={50} color={textBlack} />
<YStack>
<Text fontSize="$5" mb="$1">Scan QR code</Text>
<XStack gap="$2"><Text fontSize="$3">1</Text><Text fontSize="$3" maxWidth={220}>Find the QR code on the page of the app that asks for proof of passport.</Text></XStack>
<XStack gap="$2"><Text fontSize="$3">1</Text><Text fontSize="$3" maxWidth={220}>Find the QR code on the page of the app that asks for OpenPassport.</Text></XStack>
<XStack mt="$1" gap="$2"><Text fontSize="$3">2</Text><Text fontSize="$3" maxWidth={220}>Scan the QR code.</Text></XStack>
</YStack>
</XStack>
Expand All @@ -160,15 +160,15 @@ const AppScreen: React.FC<AppScreenProps> = ({ setSheetAppListOpen, setSheetRegi
<Binary size={50} color={textBlack} />
<YStack>
<Text fontSize="$5" mb="$1">Strong cryptography</Text>
<XStack gap="$2"><Text fontSize="$3">·</Text><Text fontSize="$3" maxWidth={220}>Proof of Passport uses ZK technologies which allows you to prove a statement without revealing why it's true.</Text></XStack>
<XStack gap="$2"><Text fontSize="$3">·</Text><Text fontSize="$3" maxWidth={220}>OpenPassport uses ZK technologies which allows you to prove a statement without revealing why it's true.</Text></XStack>
<XStack gap="$2"><Text fontSize="$3">·</Text><Text fontSize="$3" maxWidth={220}>You are always anonymous</Text></XStack>
</YStack>
</XStack>
<XStack mt="$3" px="$5" gap="$2" >
<Smartphone size={50} color={textBlack} />
<YStack>
<Text fontSize="$5" mb="$1">Serverless</Text>
<XStack gap="$2"><Text fontSize="$3">·</Text><Text fontSize="$3" maxWidth={220}>Proof of Passport will never receive your data and will never know who you are.</Text></XStack>
<XStack gap="$2"><Text fontSize="$3">·</Text><Text fontSize="$3" maxWidth={220}>OpenPassport will never receive your data and will never know who you are.</Text></XStack>
<XStack gap="$2"><Text fontSize="$3">·</Text><Text fontSize="$3" maxWidth={220}>Everything is achieved on your device, even the camera and NFC scanning.</Text></XStack>

</YStack>
Expand Down
6 changes: 3 additions & 3 deletions app/src/screens/MainScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const MainScreen: React.FC = () => {
{selectedTab !== ("app") && selectedTab !== ("splash") && <XStack onPress={() => setSelectedTab("app")} px="$4" py="$2" mt="$3" alignSelf='flex-end'><X size={28} color={textBlack} /></XStack>}
{selectedTab === "app" &&
<XStack px="$4" py="$2" mt="$0" ai="center">
<Text fontSize="$9" >Proof of Passport</Text>
<Text fontSize="$9" >OpenPassport</Text>
<XStack f={1} />

<XStack onPress={() => setHelpIsOpen(true)}><HelpCircle size={28} color={textBlack} /></XStack>
Expand Down Expand Up @@ -552,7 +552,7 @@ const MainScreen: React.FC = () => {
<YStack flex={1} jc="space-between">
{/* <YStack >
<H3 color={textBlack}>Security and Privacy</H3>
<Text color={textBlack} ml="$2" mt="$1">Proof of Passport uses zero-knowledge cryptography to allow you to prove facts about yourself like humanity, nationality or age without disclosing sensitive information.</Text>
<Text color={textBlack} ml="$2" mt="$1">OpenPassport uses zero-knowledge cryptography to allow you to prove facts about yourself like humanity, nationality or age without disclosing sensitive information.</Text>
</YStack>
<YStack >
<H3 color={textBlack}>About ZK Proofs</H3>
Expand Down Expand Up @@ -768,7 +768,7 @@ const MainScreen: React.FC = () => {
</XStack>
<Separator borderColor={separatorColor} />
<YStack gap="$2">
<Text fontSize="$7" color={textBlack}>Registering to Proof of Passport does not leak anything about your personal information.</Text>
<Text fontSize="$7" color={textBlack}>Registering to OpenPassport does not leak anything about your personal information.</Text>
<Text fontSize="$6" onPress={() => Linking.openURL('https://zk-passport.github.io/posts/how-to-scan-your-passport-using-nfc/')} color={blueColorLight} style={{ textDecorationLine: 'underline', fontStyle: 'italic' }}>Learn more.</Text>
</YStack>

Expand Down
2 changes: 1 addition & 1 deletion app/src/screens/RegisterScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const RegisterScreen: React.FC = () => {
return (
<YStack p="$3" f={1} mb={Platform.OS === 'ios' ? "$5" : "$0"}>
<YStack flex={1} mx="$2" gap="$2">
<Text mt="$7" fontSize="$9" color={textBlack}>Join Proof of Passport to start sharing your identity<Text style={{
<Text mt="$7" fontSize="$9" color={textBlack}>Join OpenPassport to start sharing your identity<Text style={{
textDecorationLine: "underline", textDecorationColor: bgGreen
}}> securely. </Text></Text>
<Text mt="$0" color={textBlack} fontSize="$8">Easily verify your nationality, humanity, or age and share<Text style={{
Expand Down
2 changes: 1 addition & 1 deletion app/src/screens/SplashScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SplashScreen = () => {
}, [userLoaded]);
return (
<YStack ai="center" f={1} gap="$8" mt="$18" mb="$8">
<Text fontSize="$9">Proof of Passport</Text>
<Text fontSize="$9">OpenPassport</Text>
<XStack f={1} />
<Spinner color={textBlack} />
</YStack>
Expand Down
4 changes: 2 additions & 2 deletions app/src/screens/StartScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const StartScreen: React.FC = () => {
<YStack f={1} p="$3">
<YStack f={1} mt="$12">
<YStack gap="$0.5" mb="$14">
<Text fontSize="$9" >Welcome to Proof of Passport 👋</Text>
<Text fontSize="$8" mt="$6" color={textBlack}>Proof of Passport allows you to scan your passport, and to prove your identity in a
<Text fontSize="$9" >Welcome to OpenPassport 👋</Text>
<Text fontSize="$8" mt="$6" color={textBlack}>OpenPassport allows you to scan your passport, and to prove your identity in a
<Text fontSize="$8" color={textBlack} style={{ textDecorationLine: 'underline', textDecorationColor: bgGreen }}> secure </Text>way.
</Text>
<Text fontSize="$8" mt="$4" color={textBlack} style={{ opacity: 0.7 }}>You can for example prove that you are over 18 yo while staying fully
Expand Down
2 changes: 1 addition & 1 deletion app/src/screens/WrongProofScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const WrongProofScreen: React.FC = () => {
))}
</YStack>
<Text ml="$2" mt="$8" fontSize="$7" color={textBlack} style={{ opacity: 0.7 }}>
<Text style={{ textDecorationLine: 'underline', textDecorationColor: bgGreen }}>Check again</Text> your eligibility, if you are sure to be eligible to this verification please contact Proof of Passport support.
<Text style={{ textDecorationLine: 'underline', textDecorationColor: bgGreen }}>Check again</Text> your eligibility, if you are sure to be eligible to this verification please contact OpenPassport support.
</Text>
<XStack f={1} />
</YStack>
Expand Down
6 changes: 3 additions & 3 deletions circuits/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Proof of Passport Circuits
# OpenPassport Circuits

## Requirements

Expand Down Expand Up @@ -34,11 +34,11 @@ The `disclose` circuit is used for the following:
4. The output is multiplied by an input bitmap to allow the user to disclose only what they want to disclose.
5. Final output is packed.

Any application that wants to use Proof of Passport can actually build its own `disclose` circuit.
Any application that wants to use OpenPassport can actually build its own `disclose` circuit.

### 🚧 Under development 🚧

Proof of Passport currently supports the following sig/hash algorithms:
OpenPassport currently supports the following sig/hash algorithms:

- [x] sha256WithRSAEncryption
- [x] sha1WithRSAEncryption
Expand Down
4 changes: 2 additions & 2 deletions common/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Proof of Passport Commons
# OpenPassport Commons

Constants and utils used in multiple Proof of Passport subdirectories.
Constants and utils used in multiple OpenPassport subdirectories.
4 changes: 2 additions & 2 deletions contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Proof of Passport Contracts
# OpenPassport Contracts

Contracts for Proof of Passport.
Contracts for OpenPassport.

Try running some of the following tasks:

Expand Down
4 changes: 2 additions & 2 deletions contracts/contracts/SBT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ contract SBT is ERC721Enumerable, Ownable {
super._beforeTokenTransfer(from, to, tokenId, batchSize);
require(
from == address(0),
"Cannot transfer - Proof of Passport is soulbound"
"Cannot transfer - SBT is soulbound"
);
}

Expand Down Expand Up @@ -381,7 +381,7 @@ contract SBT is ERC721Enumerable, Ownable {

baseURI = abi.encodePacked(
baseURI,
'],"description": "Proof of Passport guarantees possession of a valid passport.","external_url": "https://proofofpassport.com","image": "https://i.imgur.com/9kvetij.png","name": "Proof of Passport #',
'],"description": "OpenPassport guarantees possession of a valid passport.","external_url": "https://proofofpassport.com","image": "https://i.imgur.com/9kvetij.png","name": "OpenPassport #',
_tokenId.toString(),
'"}'
);
Expand Down
8 changes: 4 additions & 4 deletions contracts/test/RegisterAndDisclose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CircuitArtifacts = {
}
}

describe("Proof of Passport - Contracts - Register & Disclose flow", function () {
describe("OpenPassport - Contracts - Register & Disclose flow", function () {
this.timeout(0);

let proof, publicSignals;
Expand Down Expand Up @@ -227,7 +227,7 @@ describe("Proof of Passport - Contracts - Register & Disclose flow", function ()
console.log('\x1b[34m%s\x1b[0m', `SBT deployed to ${sbt.target}`);
}

describe("Proof of Passport - Utils flow", function () {
describe("OpenPassport - Utils flow", function () {
it("Should convert ISO dates to unix timestamps correctly", async function () {
const unix_timestamp = await formatter.dateToUnixTimestamp("230512") // 2023 05 12
console.log('unix_timestamp', unix_timestamp.toString());
Expand All @@ -242,7 +242,7 @@ describe("Proof of Passport - Contracts - Register & Disclose flow", function ()
})

/*** Register flow ***/
describe("Proof of Passport - Register flow", function () {
describe("OpenPassport - Register flow", function () {
const sigAlgNames = ['sha256WithRSAEncryption_65537', 'sha1WithRSAEncryption_65537'] //, 'sha1WithRSAEncryption_65537', 'sha256WithRSASSAPSS_65537']

before(async function () {
Expand Down Expand Up @@ -387,7 +387,7 @@ describe("Proof of Passport - Contracts - Register & Disclose flow", function ()

/*** Disclose flow ***/

// describe("Proof of Passport - Disclose flow", function () {
// describe("OpenPassport - Disclose flow", function () {
// this.beforeAll(async function () {
// user_address = await thirdAccount.getAddress();
// // We only test with the sha256WithRSAEncryption_65537 commitment for now
Expand Down
4 changes: 2 additions & 2 deletions prover/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Proof of Passport Prover
# OpenPassport Prover

This repository contains the code for the proof of passport DSC/CSCA prover.
This repository contains the code for the OpenPassport DSC/CSCA prover.
The prover runs on the [modal](https://modal.com/docs/guide) server and generates a witness with [snarkjs](https://github.com/iden3/snarkjs) and a proof with the [old version of rapidsnark](https://github.com/iden3/rapidsnark-old).

## Installation
Expand Down
2 changes: 1 addition & 1 deletion registry/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Public key registry

Public key registry and merkle tree builder for Proof of Passport.
Public key registry and merkle tree builder for OpenPassport.
We currently use the DSC list from the ICAO. The latest version can be downloaded [here](https://download.pkd.icao.int/). If you update them, be sure to change the filenames in the scripts!
As it does not contain all the DSCs used by all countries, we are working on verifying the full certificate chain up to CSCA, see [here](https://github.com/zk-passport/proof-of-passport/issues/37).

Expand Down

0 comments on commit 86c38b8

Please sign in to comment.