@baerae/zkap-zkp-react-native 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baerae/zkap-zkp-react-native",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "React Native SDK for zkap-zkp — on-device ZK proving with Groth16 (BN254) and Poseidon hash. Requires Expo New Architecture.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -42,8 +42,14 @@ export interface ProveRequest {
42
42
  }
43
43
 
44
44
  export interface ProveResult {
45
- proofs: string[];
46
- public_inputs: string[][];
45
+ /** Solidity-compatible proof per proof: [ax, ay, bx_c1, bx_c0, by_c1, by_c0, cx, cy] */
46
+ proofs: string[][];
47
+ /** Public inputs shared across all JWTs (indices 0,1,2,3,6,7) as decimal strings */
48
+ shared_inputs: string[];
49
+ /** partial_rhs per JWT (index 5) as decimal string */
50
+ partial_rhs_list: string[];
51
+ /** jwt_exp per JWT (index 4) as decimal string */
52
+ jwt_exp_list: string[];
47
53
  }
48
54
 
49
55
  // ──────────────────────────────────────────────────────────────────