@auditable/privacy-pool-zk-sdk 0.8.0 → 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.
@@ -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>;