Skip to content

Commit

Permalink
Merge pull request #173 from zk-passport/massive-renaming
Browse files Browse the repository at this point in the history
renaming to OpenPassport
  • Loading branch information
0xturboblitz authored Aug 11, 2024
2 parents 86c38b8 + 1519ee7 commit b547751
Show file tree
Hide file tree
Showing 94 changed files with 215 additions and 245 deletions.
2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To see the Android logs you'll have to use the Android Studio Logcat.
> :warning: To run the app on iOS, you will need a paying Apple Developer account. Free accounts can't run apps that use NFC reading.<br/>
> Contact us if you need it to contribute.
Open the ios project on Xcode and add your provisionning profile in Targets > ProofOfPassport > Signing and Capabilities
Open the ios project on Xcode and add your provisionning profile in Targets > OpenPassport > Signing and Capabilities

Then, install pods:
```
Expand Down
4 changes: 2 additions & 2 deletions app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ android {

compileSdkVersion rootProject.ext.compileSdkVersion

namespace "com.proofofpassport"
namespace "com.proofofpassportapp"
defaultConfig {
applicationId "com.proofofpassport"
applicationId "com.proofofpassportapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.proofofpassport;
package com.proofofpassportapp;

import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
Expand Down
2 changes: 1 addition & 1 deletion app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.proofofpassport"
package="org.proofofpassportapp"
>


Expand Down
4 changes: 2 additions & 2 deletions app/android/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

cmake_minimum_required(VERSION 3.22.1)

project("proofofpassport")
project("proofofpassportapp")

include_directories(include)

Expand All @@ -18,7 +18,7 @@ add_library(disclose SHARED IMPORTED)
set_target_properties(disclose PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libwitnesscalc_disclose.so)

add_library(${CMAKE_PROJECT_NAME} SHARED
proofofpassport.cpp)
proofofpassportapp.cpp)

target_link_libraries(${CMAKE_PROJECT_NAME}
rapidsnark register_sha256WithRSAEncryption_65537 disclose)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace std;

extern "C"
JNIEXPORT jint JNICALL
Java_com_proofofpassport_prover_ZKPTools_groth16_1prover(JNIEnv *env, jobject thiz,
Java_com_proofofpassportapp_prover_ZKPTools_groth16_1prover(JNIEnv *env, jobject thiz,
jbyteArray zkey_buffer, jlong zkey_size,
jbyteArray wtns_buffer, jlong wtns_size,
jbyteArray proof_buffer, jlongArray proof_size,
Expand Down Expand Up @@ -49,7 +49,7 @@ Java_com_proofofpassport_prover_ZKPTools_groth16_1prover(JNIEnv *env, jobject th

extern "C"
JNIEXPORT jint JNICALL
Java_com_proofofpassport_prover_ZKPTools_witnesscalc_1register_1sha256WithRSAEncryption_165537(JNIEnv *env, jobject thiz,
Java_com_proofofpassportapp_prover_ZKPTools_witnesscalc_1register_1sha256WithRSAEncryption_165537(JNIEnv *env, jobject thiz,
jbyteArray circuit_buffer,
jlong circuit_size, jbyteArray json_buffer,
jlong json_size, jbyteArray wtns_buffer,
Expand Down Expand Up @@ -86,7 +86,7 @@ Java_com_proofofpassport_prover_ZKPTools_witnesscalc_1register_1sha256WithRSAEnc

extern "C"
JNIEXPORT jint JNICALL
Java_com_proofofpassport_prover_ZKPTools_witnesscalc_1disclose(JNIEnv *env, jobject thiz,
Java_com_proofofpassportapp_prover_ZKPTools_witnesscalc_1disclose(JNIEnv *env, jobject thiz,
jbyteArray circuit_buffer,
jlong circuit_size, jbyteArray json_buffer,
jlong json_size, jbyteArray wtns_buffer,
Expand Down Expand Up @@ -122,7 +122,7 @@ Java_com_proofofpassport_prover_ZKPTools_witnesscalc_1disclose(JNIEnv *env, jobj
}

extern "C"
JNIEXPORT jint JNICALL Java_com_proofofpassport_prover_ZKPTools_groth16_1prover_1zkey_1file(
JNIEXPORT jint JNICALL Java_com_proofofpassportapp_prover_ZKPTools_groth16_1prover_1zkey_1file(
JNIEnv *env, jobject obj,
jstring zkeyPath,
jbyteArray wtnsBuffer, jlong wtnsSize,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport;
package com.proofofpassportapp;


import android.app.Activity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport;
package com.proofofpassportapp;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport;
package com.proofofpassportapp;

import android.app.PendingIntent;
import android.content.Intent;
Expand Down Expand Up @@ -28,7 +28,7 @@ public class MainActivity extends ReactActivity {
*/
@Override
protected String getMainComponentName() {
return "ProofOfPassport";
return "OpenPassport";
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport;
package com.proofofpassportapp;

import android.app.Application;
import com.facebook.react.PackageList;
Expand All @@ -8,12 +8,12 @@
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactNativeHost;
import com.facebook.soloader.SoLoader;
import com.proofofpassport.CameraActivityPackage;
import com.proofofpassportapp.CameraActivityPackage;
import io.tradle.nfc.RNPassportReaderPackage;
import java.util.List;
import com.proofofpassport.prover.ProverPackage;
import com.proofofpassportapp.prover.ProverPackage;
import com.rnfs.RNFSPackage;
import com.proofofpassport.QRCodeScannerPackage;
import com.proofofpassportapp.QRCodeScannerPackage;

public class MainApplication extends Application implements ReactApplication {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport.prover
package com.proofofpassportapp.prover

import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
Expand All @@ -18,7 +18,7 @@ import kotlinx.coroutines.withContext
import com.google.gson.Gson
import com.google.gson.GsonBuilder

import com.proofofpassport.R
import com.proofofpassportapp.R

class ProverModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
private val TAG = "ProverModule"
Expand Down Expand Up @@ -152,7 +152,7 @@ class ZKPTools(val context: Context) {

init {
System.loadLibrary("rapidsnark");
System.loadLibrary("proofofpassport")
System.loadLibrary("proofofpassportapp")
}

fun openRawResourceAsByteArray(resourceName: Int): ByteArray {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport.prover
package com.proofofpassportapp.prover

import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport;
package com.proofofpassportapp;

import android.app.Activity;
import android.content.Intent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.proofofpassport;
package com.proofofpassportapp;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.proofofpassport;
package com.proofofpassportapp;

import android.content.Context;
import com.facebook.react.ReactInstanceManager;
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",
"name": "OpenPassport",
"displayName": "OpenPassport"
}
30 changes: 0 additions & 30 deletions app/countries.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "ProofOfPassportRegister",
"sourceName": "contracts/ProofOfPassportRegister.sol",
"contractName": "OpenPassportRegister",
"sourceName": "contracts/OpenPassportRegister.sol",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion app/deployments/deployed_addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"Deploy_Registry#Verifier_dsc_sha256_rsa_4096": "0xFD3AFBb0E0565cc28E99d9e11629c4c20e1e517D",
"Deploy_Registry#Verifier_register_sha1WithRSAEncryption_65537": "0x434547E86530A583137c9990ffb87682F0d5ca48",
"Deploy_Registry#Verifier_register_sha256WithRSAEncryption_65537": "0xDc5e3E81b4b3bC22f79C3a90dbb57EBB9aEdAAfF",
"Deploy_Registry#ProofOfPassportRegister": "0x3F346FFdC5d583e4126AF01A02Ac5b9CdB3f1909",
"Deploy_Registry#OpenPassportRegister": "0x3F346FFdC5d583e4126AF01A02Ac5b9CdB3f1909",
"Deploy_Registry#SBT": "0x33f41D706587a7AC6c2061B1893e6eb29615822B"
}
2 changes: 1 addition & 1 deletion app/ios/MRZScannerModule.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MRZScannerModule.m
// ProofOfPassport
// OpenPassport
//
// Created by Rémi Colin on 27/02/2024.
//
Expand Down
2 changes: 1 addition & 1 deletion app/ios/MRZScannerModule.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MRZScannerModule.swift
// ProofOfPassport
// OpenPassport
//
// Created by Rémi Colin on 27/02/2024.
//
Expand Down
File renamed without changes.
Loading

0 comments on commit b547751

Please sign in to comment.