@arcanetech/privacy-sdk-stellar 0.3.0 → 0.5.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/README.md +6 -6
- package/dist/index.d.ts +306 -159
- package/dist/index.js +2367 -1769
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +49 -118
- package/dist/node.js +1381 -1582
- package/dist/node.js.map +1 -1
- package/dist/state/index.d.ts +7 -122
- package/dist/state/index.js +96 -490
- package/dist/state/index.js.map +1 -1
- package/dist/testing/index.d.ts +14 -32
- package/dist/transact/index.d.ts +362 -61
- package/dist/transact/index.js +2474 -937
- package/dist/transact/index.js.map +1 -1
- package/generated/contract/README.md +4 -4
- package/generated/contract/dist/index.d.ts +231 -256
- package/generated/contract/dist/index.js +71 -57
- package/generated/contract/package.json +1 -1
- package/generated/contract/src/index.ts +211 -242
- package/generated/registry/README.md +4 -4
- package/generated/registry/dist/index.d.ts +56 -123
- package/generated/registry/dist/index.js +39 -37
- package/generated/registry/package.json +1 -1
- package/generated/registry/src/index.ts +56 -132
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,7 +11,11 @@ This package provides:
|
|
|
11
11
|
- `@arcanetech/privacy-sdk-stellar/testing` for fake transact engines in unit tests
|
|
12
12
|
- Stellar wallet, storage, and policy adapter contracts
|
|
13
13
|
- disclosure validation for currently supported Stellar routes
|
|
14
|
-
- orchestration over `@
|
|
14
|
+
- orchestration over `@arcanetech/stellar-privacy-pool-zk-sdk`
|
|
15
|
+
- `requiredSubmissionMethod()` (`@arcanetech/privacy-sdk-stellar/transact`) — chooses Direct Submission vs Protocol Relay from a prepared operation; escrow sends require relay and refuse a positive public deposit; escrow sweeps use Direct Submission (wallet-signed)
|
|
16
|
+
- `buildBlindedRecipientTagChallengeMessage()` (`@arcanetech/privacy-sdk-stellar/transact`) — builds the wallet-signed challenge used to issue blinded recipient tags so a recipient can discover escrow notes after they register
|
|
17
|
+
- `fetchEscrowOutputNoteEvents({ transactEnvironment, txId, poolAddress })` — loads escrow output-note ciphertexts for a claim using the environment's network configuration
|
|
18
|
+
- `unsignedEscrowAuthorizationForSweep({ prepared, transactEnvironment, relayerPublicKey })` — simulates the relayer invocation and returns the unsigned claimant authorization entry to sign offline
|
|
15
19
|
|
|
16
20
|
## Browser Example
|
|
17
21
|
|
|
@@ -27,8 +31,6 @@ const clientOrRejected = await createStellarPrivacyClient({
|
|
|
27
31
|
storage,
|
|
28
32
|
assets: {
|
|
29
33
|
sdkWasm,
|
|
30
|
-
circuitWasm,
|
|
31
|
-
provingKey,
|
|
32
34
|
},
|
|
33
35
|
});
|
|
34
36
|
|
|
@@ -53,15 +55,13 @@ const clientOrRejected = await createStellarPrivacyClientFromNodeConfig({
|
|
|
53
55
|
storage,
|
|
54
56
|
assets: {
|
|
55
57
|
sdkWasmPath: './assets/client_sdk_wasm_bg.wasm',
|
|
56
|
-
circuitWasmPath: './assets/main.wasm',
|
|
57
|
-
provingKeyPath: './assets/main_final.zkey',
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
## Required Assets
|
|
63
63
|
|
|
64
|
-
The Stellar preset
|
|
64
|
+
The Stellar preset loads proving artifacts from the GitHub release for `@arcanetech/stellar-privacy-pool-zk-sdk`. Pass `sdkWasm` (browser) or `sdkWasmPath` (Node). Override `transactEnvironment.zkArtifactBaseUrl` for local files. The browser bundle stores those proving files in Cache Storage (keyed by zk-sdk version) so a later visit or a second `init` in the same origin reuses the download. Node still reads files from disk or HTTP without Cache Storage. Custom circuit URLs are only for development. Do not regenerate `ptau` or Groth16 zkey files inside this repository.
|
|
65
65
|
|
|
66
66
|
## Related Docs
|
|
67
67
|
|