@arcanetech/stellar-privacy-pool-zk-sdk 0.9.1-rc.0

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.
Files changed (43) hide show
  1. package/dist/ciphertext-blob.d.ts +17 -0
  2. package/dist/circuit-artifacts.d.ts +9 -0
  3. package/dist/circuit-urls-2x2-COiK1uEc.mjs +6 -0
  4. package/dist/circuit-urls-2x2-COiK1uEc.mjs.map +1 -0
  5. package/dist/circuit-urls-2x2-DVpZIkgS.js +12 -0
  6. package/dist/circuit-urls-2x2-DVpZIkgS.js.map +1 -0
  7. package/dist/circuit-urls-2x2.d.ts +3 -0
  8. package/dist/circuit-urls-6x6-CqdzNC4I.js +12 -0
  9. package/dist/circuit-urls-6x6-CqdzNC4I.js.map +1 -0
  10. package/dist/circuit-urls-6x6-Dtp8u02o.mjs +6 -0
  11. package/dist/circuit-urls-6x6-Dtp8u02o.mjs.map +1 -0
  12. package/dist/circuit-urls-6x6.d.ts +3 -0
  13. package/dist/cli.d.ts +1 -0
  14. package/dist/cli.js +3114 -0
  15. package/dist/cli.js.map +1 -0
  16. package/dist/derived-escrow-key.d.ts +10 -0
  17. package/dist/domain-separators.d.ts +16 -0
  18. package/dist/ephemeral-key.d.ts +28 -0
  19. package/dist/index.d.ts +30 -0
  20. package/dist/index.mjs +3875 -0
  21. package/dist/index.mjs.map +1 -0
  22. package/dist/kyt-flow.d.ts +60 -0
  23. package/dist/kyt-onboarding.d.ts +36 -0
  24. package/dist/kyt-passage.d.ts +83 -0
  25. package/dist/output-note-encryption.d.ts +72 -0
  26. package/dist/prover.d.ts +5 -0
  27. package/dist/sdk.d.ts +130 -0
  28. package/dist/shared-secret.d.ts +24 -0
  29. package/dist/stealth-address.d.ts +23 -0
  30. package/dist/stealth-sign-message.d.ts +20 -0
  31. package/dist/stealth-signature.d.ts +29 -0
  32. package/dist/transaction-audit.d.ts +26 -0
  33. package/dist/types.d.ts +64 -0
  34. package/dist/wasm.d.ts +1 -0
  35. package/dist/withdrawal-transaction-input.d.ts +162 -0
  36. package/dist/witness.d.ts +3 -0
  37. package/dist/zk-artifact-url.d.ts +4 -0
  38. package/dist/zk-layout.d.ts +84 -0
  39. package/package.json +57 -0
  40. package/pkg/client_sdk_wasm.d.ts +120 -0
  41. package/pkg/client_sdk_wasm.js +765 -0
  42. package/pkg/client_sdk_wasm_bg.wasm +0 -0
  43. package/pkg/client_sdk_wasm_bg.wasm.d.ts +21 -0
@@ -0,0 +1,17 @@
1
+ import { type ZkLayoutParams } from './zk-layout.js';
2
+ export declare const FR_SIZE = 32;
3
+ export declare const CIPHERTEXT_BLOB_HEADER_BYTES = 4;
4
+ export declare function encodeCiphertextBlob(fields: readonly string[]): Buffer;
5
+ export declare function decodeCiphertextBlob(blob: Buffer): string[];
6
+ export declare function encodeTransactionCiphertextBlob(parameters: {
7
+ layout: ZkLayoutParams;
8
+ auditCiphertexts: readonly (readonly string[])[];
9
+ outputNoteCiphertexts: readonly (readonly string[])[];
10
+ }): Buffer;
11
+ export declare function splitCiphertextBlob(parameters: {
12
+ layout: ZkLayoutParams;
13
+ blob: Buffer;
14
+ }): {
15
+ auditCiphertexts: string[][];
16
+ outputNoteCiphertexts: string[][];
17
+ };
@@ -0,0 +1,9 @@
1
+ import { BundledZkCircuit, type ZkCircuitConfig } from './zk-layout';
2
+ export interface ResolvedCircuitArtifacts {
3
+ graph: Uint8Array;
4
+ r1cs: Uint8Array;
5
+ provingKey: Uint8Array;
6
+ }
7
+ export declare function resolveZkArtifactBaseUrl(explicit?: string): string;
8
+ export declare function loadBundledCircuitArtifacts(circuit: BundledZkCircuit, artifactBaseUrl?: string): Promise<ResolvedCircuitArtifacts>;
9
+ export declare function resolveCircuitArtifacts(config: ZkCircuitConfig, artifactBaseUrl?: string): Promise<ResolvedCircuitArtifacts>;
@@ -0,0 +1,6 @@
1
+ const graph = new URL('../assets/main.graph.bin', import.meta.url);
2
+ const r1cs = new URL('../assets/main.r1cs', import.meta.url);
3
+ const provingKey = new URL('../assets/main_proving_key.bin', import.meta.url);
4
+
5
+ export { graph, provingKey, r1cs };
6
+ //# sourceMappingURL=circuit-urls-2x2-COiK1uEc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circuit-urls-2x2-COiK1uEc.mjs","sources":["../src/circuit-urls-2x2.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;AACjE,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,qBAAqB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;AAC3D,MAAM,UAAU,GAAG,IAAI,GAAG,CAC/B,gCAAgC,EAChC,MAAM,CAAC,IAAI,CAAC,GAAG;;;;"}
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
5
+ const graph = new URL('../assets/main.graph.bin', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('circuit-urls-2x2-DVpZIkgS.js', document.baseURI).href)));
6
+ const r1cs = new URL('../assets/main.r1cs', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('circuit-urls-2x2-DVpZIkgS.js', document.baseURI).href)));
7
+ const provingKey = new URL('../assets/main_proving_key.bin', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('circuit-urls-2x2-DVpZIkgS.js', document.baseURI).href)));
8
+
9
+ exports.graph = graph;
10
+ exports.provingKey = provingKey;
11
+ exports.r1cs = r1cs;
12
+ //# sourceMappingURL=circuit-urls-2x2-DVpZIkgS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circuit-urls-2x2-DVpZIkgS.js","sources":["../src/circuit-urls-2x2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAO,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,0BAA0B,EAAE,8QAAe;AACjE,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,qBAAqB,EAAE,8QAAe;AAC3D,MAAM,UAAU,GAAG,IAAI,GAAG,CAC/B,gCAAgC,EAChC,8QAAe;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const graph: URL;
2
+ export declare const r1cs: URL;
3
+ export declare const provingKey: URL;
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
5
+ const graph = new URL('../assets/main_6x6.graph.bin', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('circuit-urls-6x6-CqdzNC4I.js', document.baseURI).href)));
6
+ const r1cs = new URL('../assets/main_6x6.r1cs', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('circuit-urls-6x6-CqdzNC4I.js', document.baseURI).href)));
7
+ const provingKey = new URL('../assets/main_6x6_proving_key.bin', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('circuit-urls-6x6-CqdzNC4I.js', document.baseURI).href)));
8
+
9
+ exports.graph = graph;
10
+ exports.provingKey = provingKey;
11
+ exports.r1cs = r1cs;
12
+ //# sourceMappingURL=circuit-urls-6x6-CqdzNC4I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circuit-urls-6x6-CqdzNC4I.js","sources":["../src/circuit-urls-6x6.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAO,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,8BAA8B,EAAE,8QAAe;AACrE,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,yBAAyB,EAAE,8QAAe;AAC/D,MAAM,UAAU,GAAG,IAAI,GAAG,CAC/B,oCAAoC,EACpC,8QAAe;;;;;;"}
@@ -0,0 +1,6 @@
1
+ const graph = new URL('../assets/main_6x6.graph.bin', import.meta.url);
2
+ const r1cs = new URL('../assets/main_6x6.r1cs', import.meta.url);
3
+ const provingKey = new URL('../assets/main_6x6_proving_key.bin', import.meta.url);
4
+
5
+ export { graph, provingKey, r1cs };
6
+ //# sourceMappingURL=circuit-urls-6x6-Dtp8u02o.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circuit-urls-6x6-Dtp8u02o.mjs","sources":["../src/circuit-urls-6x6.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,8BAA8B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;AACrE,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,yBAAyB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;AAC/D,MAAM,UAAU,GAAG,IAAI,GAAG,CAC/B,oCAAoC,EACpC,MAAM,CAAC,IAAI,CAAC,GAAG;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const graph: URL;
2
+ export declare const r1cs: URL;
3
+ export declare const provingKey: URL;
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};