Infos on compilation in README.md

This commit is contained in:
0xturboblitz
2023-09-21 17:05:01 +02:00
parent bd8f8efae7
commit d6de6b8a66
6 changed files with 38 additions and 2 deletions

3
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/passport-sbt.iml" filepath="$PROJECT_DIR$/.idea/passport-sbt.iml" />
</modules>
</component>
</project>

9
.idea/passport-sbt.iml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@@ -197,12 +197,12 @@ function App(): JSX.Element {
if (err) {
console.error(err);
setProofResult(
err.toString() + ' time elapsed: ' + (end - start) + 'ms',
"res:" + err.toString() + ' time elapsed: ' + (end - start) + 'ms',
);
} else {
console.log(res);
setProofResult(
res.toString() + ' time elapsed: ' + (end - start) + 'ms',
"res:" + res.toString() + ' time elapsed: ' + (end - start) + 'ms',
);
}
});

View File

@@ -4,6 +4,16 @@ To build libhalo2_passport.so, run in /script:
```
It will cross-compile using the config in app/android/react-native-passport-reader/android/build.gradle
You'll potentially need to set the rust-toolchain rust version as global default. Example:
```
rustup default 1.67.0
```
And install the targets like:
```
rustup target add aarch64-linux-android
```
Then:
yarn start => a or i