@auditable/privacy-pool-zk-sdk 0.6.1-rc.5 → 0.7.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.
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/kyt-flow.d.ts +7 -0
- package/dist/kyt-passage.d.ts +2 -1
- package/package.json +1 -1
- package/pkg/client_sdk_wasm_bg.wasm +0 -0
package/dist/kyt-flow.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface RegisterPassageParams {
|
|
|
5
5
|
kytRegistryId: string;
|
|
6
6
|
poolContract: string;
|
|
7
7
|
owner: string;
|
|
8
|
+
nonce?: bigint | number;
|
|
8
9
|
publicSignalsBytes: Buffer | string;
|
|
9
10
|
publicLegContext: PublicLegContextInput;
|
|
10
11
|
onboarding?: OnboardingPayloadInput | null;
|
|
@@ -17,9 +18,15 @@ export interface RegisterPassageParams {
|
|
|
17
18
|
export interface SubmitKytTransactParams {
|
|
18
19
|
poolContract: string;
|
|
19
20
|
owner: string;
|
|
21
|
+
nonce: bigint | number;
|
|
20
22
|
proofBytes: Buffer;
|
|
21
23
|
publicSignalsBytes: Buffer;
|
|
22
24
|
onboarding?: OnboardingPayloadInput | null;
|
|
25
|
+
/** Omit when the pool's own registered passage covers this call (no explicit signed authorization). */
|
|
26
|
+
kytAuthorization?: {
|
|
27
|
+
expirationLedger: number;
|
|
28
|
+
signature: Buffer;
|
|
29
|
+
} | null;
|
|
23
30
|
source: Keypair;
|
|
24
31
|
networkPassphrase: string;
|
|
25
32
|
rpcUrl: string;
|
package/dist/kyt-passage.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare function addressToCanonicalXdr(address: string): Buffer;
|
|
|
36
36
|
export declare function hashPublicSignalBytes(publicSignalsBytes: Buffer | string): string;
|
|
37
37
|
export declare function hashPublicLegContext(layout: PublicLegLayout, input: PublicLegContextInput): string;
|
|
38
38
|
export declare function hashOnboarding(onboarding: OnboardingPayloadInput | null | undefined): string;
|
|
39
|
-
export declare function derivePassageId(owner: string, publicSignalHash: string, publicLegContextHash: string, onboardingHash: string): string;
|
|
39
|
+
export declare function derivePassageId(owner: string, nonce: bigint | number, publicSignalHash: string, publicLegContextHash: string, onboardingHash: string): string;
|
|
40
40
|
export declare function buildKytPassageAuthorization(input: {
|
|
41
41
|
poolContract: string;
|
|
42
42
|
kytRegistry: string;
|
|
@@ -45,6 +45,7 @@ export declare function buildKytPassageAuthorization(input: {
|
|
|
45
45
|
}): KytPassageAuthorization;
|
|
46
46
|
export declare function derivePassageFromTransactContext(input: {
|
|
47
47
|
owner: string;
|
|
48
|
+
nonce?: bigint | number;
|
|
48
49
|
publicSignalsBytes: Buffer | string;
|
|
49
50
|
publicLegContext: PublicLegContextInput;
|
|
50
51
|
layout?: PublicLegLayout;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auditable/privacy-pool-zk-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Client SDK for Soroban Privacy Pools - coin generation, withdrawal proofs, and proof serialization",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
Binary file
|