@sip-protocol/sdk 0.6.2 → 0.6.4
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/browser.js +4 -2
- package/dist/browser.mjs +1 -1
- package/dist/chunk-AB3SCLVT.mjs +17026 -0
- package/dist/chunk-H5W3IPDU.mjs +17028 -0
- package/dist/index.js +4 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/intent.ts +10 -2
- package/src/sip.ts +2 -0
package/dist/browser.js
CHANGED
|
@@ -5396,7 +5396,7 @@ async function createShieldedIntent(params, options) {
|
|
|
5396
5396
|
let recipientStealth;
|
|
5397
5397
|
if (privacyConfig.useStealth && recipientMetaAddress) {
|
|
5398
5398
|
const metaAddress = decodeStealthMetaAddress(recipientMetaAddress);
|
|
5399
|
-
const { stealthAddress } = generateStealthAddress(metaAddress);
|
|
5399
|
+
const { stealthAddress } = isEd25519Chain(metaAddress.chain) ? generateEd25519StealthAddress(metaAddress) : generateStealthAddress(metaAddress);
|
|
5400
5400
|
recipientStealth = stealthAddress;
|
|
5401
5401
|
} else {
|
|
5402
5402
|
recipientStealth = {
|
|
@@ -6682,7 +6682,9 @@ var SIP = class {
|
|
|
6682
6682
|
async createIntent(params) {
|
|
6683
6683
|
const intent = await createShieldedIntent(params, {
|
|
6684
6684
|
senderAddress: this.wallet?.address,
|
|
6685
|
-
proofProvider: this.proofProvider
|
|
6685
|
+
proofProvider: this.proofProvider,
|
|
6686
|
+
// Allow placeholder signatures in demo mode for development/testing
|
|
6687
|
+
allowPlaceholders: this.config.mode === "demo"
|
|
6686
6688
|
});
|
|
6687
6689
|
return trackIntent(intent);
|
|
6688
6690
|
}
|