@tamga-network/zk 0.8.3 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -43,17 +43,28 @@ does not change trust: bundle them with the app, or fetch them with `httpCircuit
43
43
  The device signature is made the usual way (hardware key, phone lock — WL11); the prover only takes the signed response as input.
44
44
  Nothing leaves the device except the proof.
45
45
 
46
+ ## New in 0.8.5
47
+
48
+ - The Android libraries in the package are aligned for 16 KB memory pages (Android 15+ devices; required by Google Play for apps
49
+ targeting Android 15+). Earlier releases shipped 4 KB-aligned libraries. No API change. Packing now refuses a library that is
50
+ not 16 KB aligned (see below).
51
+
46
52
  ## Building the native parts
47
53
 
48
54
  | Target | Command | Needs |
49
55
  |---|---|---|
50
56
  | Desktop prover (`bin/`) | `npm run zk:build -w @tamga-network/zk` | Rust (`rust/rust-toolchain.toml`); on Windows the patched upstream clone from `tools/zk-circuit` |
51
- | Android (`android/src/main/jniLibs/`) | `npm run zk:android -w @tamga-network/zk` | Android NDK, `cargo-ndk` |
57
+ | Android (`android/src/main/jniLibs/`) | `npm run zk:android -w @tamga-network/zk` | Android NDK (r27c used), Rust Android targets |
52
58
  | iOS (`ios/TamgaZkProver.xcframework`) | `npm run zk:ios -w @tamga-network/zk` | macOS, Xcode |
53
59
 
54
60
  Build outputs are not committed; the published package includes them. Packing (`scripts/pack-packages.mjs`) fails if any of the
55
61
  three Android libraries is missing, and writes their SHA-256 checksums to `lib/native-checksums.json`.
56
62
 
63
+ **16 KB page size (Android 15+, Google Play):** the Android libraries are linked with `-z max-page-size=16384` and
64
+ `-z common-page-size=16384` (needed with NDK r27 and earlier; r28+ does it by default). After building, `scripts/elf-align.mjs`
65
+ checks every library (each `LOAD` segment aligned to at least 16 KB, `GNU_RELRO` safe on 16 KB pages); the build script and
66
+ packing both fail if a library does not pass. Check by hand: `node packages/zk/scripts/elf-align.mjs <file.so>`.
67
+
57
68
  **iOS (for now):** the iOS library needs macOS to build and has not been built yet. Until `ios/TamgaZkProver.xcframework` exists,
58
69
  the module is Android-only: `expo-module.config.json` lists only `"android"` and the published package does not contain `ios/`, so
59
70
  iOS apps build normally and `available()` returns `false` there (usual presentation, ZK5). Once the xcframework is built, packing
@@ -62,7 +73,7 @@ as the verifier (`packages/verifier/zk`).
62
73
 
63
74
  ## Status
64
75
 
65
- Published on npm as the `0.8.3` test release; the stable `1.0.0` comes when everything is ready. In test releases the API
76
+ Published on npm as the `0.8.5` test release; the stable `1.0.0` comes when everything is ready. In test releases the API
66
77
  may change. Unlike the other eight packages, `zk` is published by hand without npm provenance: its Android native libraries
67
78
  cannot yet be built in CI.
68
79
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "note": "SHA-256 of the packed native prover libraries (ADR-0032)",
3
3
  "files": {
4
- "android/src/main/jniLibs/arm64-v8a/libtamga_zk_prover.so": "fe9e421a4ea70cc61f02ea5b714917648d82812ce151c02335bad1ef01dfaac2",
5
- "android/src/main/jniLibs/armeabi-v7a/libtamga_zk_prover.so": "ea55f289a6ef49ad21a2ef21fbc75c0d5efbcd6911af1d31d351bc1b6be7485e",
6
- "android/src/main/jniLibs/x86_64/libtamga_zk_prover.so": "7aba0a6566339d68f1243d9e0dd5bf9f8404838e50e5de142606ad4ec8f3b49e"
4
+ "android/src/main/jniLibs/arm64-v8a/libtamga_zk_prover.so": "d97fa9e313c4d9bd74a90176ba289fbc6383b43ee495af2825f25d1dfee025a4",
5
+ "android/src/main/jniLibs/armeabi-v7a/libtamga_zk_prover.so": "e8e3a48056107a457f9fd320b430c32423337523c2f2620f4ee5a3b3fb91aa8a",
6
+ "android/src/main/jniLibs/x86_64/libtamga_zk_prover.so": "4c5625ad266f18d34acfb48978cb92a0e5b92d0566fe2ed84dc13041cfe7fa62"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamga-network/zk",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Cüzdan tarafında sıfır bilgi ispatı (ADR-0032, Longfellow ZK): ISO mdoc belgesi hakkında \"şu öğe şu değerdedir\" ispatını cihazda üretir (ilk kullanım: 18 yaş üstü). Çekirdek saf TS (React Native uyumlu); /react-native yerel ispatçı (Expo modülü, Rust), /node masaüstü ispatçı. Doğrulama: @tamga-network/verifier/zk.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@noble/hashes": "^2.0.0",
37
- "@tamga-network/mdoc": "^0.8.3"
37
+ "@tamga-network/mdoc": "^0.8.5"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "expo-modules-core": "*"