uvd-x402-sdk 2.76.0 → 2.77.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/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dx402.ts +7 -2
package/dist/index.mjs
CHANGED
|
@@ -1636,6 +1636,12 @@ async function anchorEvidence(body, opts) {
|
|
|
1636
1636
|
// `sealed` -> it hosts and derives the pointer; `pointer` alone -> it uses
|
|
1637
1637
|
// yours; neither -> error (x402-rs `dx402/service.rs`).
|
|
1638
1638
|
...pointer !== void 0 ? { pointer } : { sealed: toBase64(blob) },
|
|
1639
|
+
// Declared, not measured. Since x402-rs 2.3.0 the facilitator records
|
|
1640
|
+
// the store that ACTUALLY took the bytes and returns that, so a response
|
|
1641
|
+
// may name a different backend than the request did -- `ipfs` where you
|
|
1642
|
+
// said `s3`, because a deployment whose primary is Pinata wrote there.
|
|
1643
|
+
// That is the facilitator correcting the record, not a mismatch to
|
|
1644
|
+
// assert on.
|
|
1639
1645
|
backend: opts.backend ?? (pointer !== void 0 ? backendForPointer(pointer) : "s3"),
|
|
1640
1646
|
contentHash: hash,
|
|
1641
1647
|
keyAlg: opts.payerKey.length === 32 ? "ECIES-X25519" : "ECIES-secp256k1",
|