@zendfi/sdk 0.8.2 → 0.8.3
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/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2408,7 +2408,7 @@ var DeviceBoundSessionKey = class _DeviceBoundSessionKey {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
};
|
|
2410
2410
|
async function encryptKeypairWithLit(keypair, options) {
|
|
2411
|
-
const network = options?.network || "datil
|
|
2411
|
+
const network = options?.network || "datil";
|
|
2412
2412
|
const debug = options?.debug || false;
|
|
2413
2413
|
if (debug) {
|
|
2414
2414
|
console.log("[Lit] Encrypting keypair with Lit Protocol...");
|
|
@@ -2543,7 +2543,9 @@ var SessionKeysAPI = class {
|
|
|
2543
2543
|
try {
|
|
2544
2544
|
this.debug(`Encrypting session key with Lit Protocol (attempt ${attempt}/${maxRetries})...`);
|
|
2545
2545
|
litEncryption = await encryptKeypairWithLit(sessionKey.getKeypair(), {
|
|
2546
|
-
|
|
2546
|
+
// CRITICAL: Must match backend LIT_NETWORK (Datil = mainnet)
|
|
2547
|
+
// datil-dev encryption cannot be decrypted by datil backend!
|
|
2548
|
+
network: options.litNetwork || "datil",
|
|
2547
2549
|
debug: this.debugMode
|
|
2548
2550
|
});
|
|
2549
2551
|
this.debug("Lit Protocol encryption successful - autonomous signing enabled");
|
package/dist/index.mjs
CHANGED
|
@@ -1941,7 +1941,7 @@ var DeviceBoundSessionKey = class _DeviceBoundSessionKey {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
};
|
|
1943
1943
|
async function encryptKeypairWithLit(keypair, options) {
|
|
1944
|
-
const network = options?.network || "datil
|
|
1944
|
+
const network = options?.network || "datil";
|
|
1945
1945
|
const debug = options?.debug || false;
|
|
1946
1946
|
if (debug) {
|
|
1947
1947
|
console.log("[Lit] Encrypting keypair with Lit Protocol...");
|
|
@@ -2076,7 +2076,9 @@ var SessionKeysAPI = class {
|
|
|
2076
2076
|
try {
|
|
2077
2077
|
this.debug(`Encrypting session key with Lit Protocol (attempt ${attempt}/${maxRetries})...`);
|
|
2078
2078
|
litEncryption = await encryptKeypairWithLit(sessionKey.getKeypair(), {
|
|
2079
|
-
|
|
2079
|
+
// CRITICAL: Must match backend LIT_NETWORK (Datil = mainnet)
|
|
2080
|
+
// datil-dev encryption cannot be decrypted by datil backend!
|
|
2081
|
+
network: options.litNetwork || "datil",
|
|
2080
2082
|
debug: this.debugMode
|
|
2081
2083
|
});
|
|
2082
2084
|
this.debug("Lit Protocol encryption successful - autonomous signing enabled");
|