@arcanetech/privacy-sdk-stellar 0.5.0 → 0.5.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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/node.js.map +1 -1
- package/dist/transact/index.d.ts +1 -1
- package/dist/transact/index.js +2 -2
- package/dist/transact/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ const clientOrRejected = await createStellarPrivacyClientFromNodeConfig({
|
|
|
61
61
|
|
|
62
62
|
## Required Assets
|
|
63
63
|
|
|
64
|
-
The Stellar preset loads proving artifacts from the
|
|
64
|
+
The Stellar preset loads proving artifacts from the CDN baked into `@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
|
|
package/dist/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ interface StellarTransactEnvironment {
|
|
|
243
243
|
zkCircuits?: Record<string, StellarZkCircuitDefinition>;
|
|
244
244
|
/**
|
|
245
245
|
* Directory or HTTP prefix for graph / r1cs / proving-key files.
|
|
246
|
-
* Defaults to the
|
|
246
|
+
* Defaults to the CDN prefix baked into `@arcanetech/stellar-privacy-pool-zk-sdk`.
|
|
247
247
|
* Staging and local stands override this to serve files from disk.
|
|
248
248
|
*/
|
|
249
249
|
zkArtifactBaseUrl?: string;
|
package/dist/index.js
CHANGED
|
@@ -1156,8 +1156,8 @@ function resolveZkConfigNonce(transactEnvironment) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
1158
|
// src/transact/zk/browser-artifact-cache.ts
|
|
1159
|
-
import {
|
|
1160
|
-
var ZK_ARTIFACT_CACHE_NAME = `privacy-sdk-stellar-zk-artifacts:${
|
|
1159
|
+
import { ZK_ARTIFACT_VERSION } from "@arcanetech/stellar-privacy-pool-zk-sdk";
|
|
1160
|
+
var ZK_ARTIFACT_CACHE_NAME = `privacy-sdk-stellar-zk-artifacts:${ZK_ARTIFACT_VERSION}`;
|
|
1161
1161
|
function isBrowserCacheApiAvailable() {
|
|
1162
1162
|
return browserCacheStorage() !== void 0;
|
|
1163
1163
|
}
|