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 CHANGED
@@ -369,8 +369,6 @@ declare function sellerDigestFor(paymentId: string, contentHash: string, payee:
369
369
  /**
370
370
  * Largest `POST /dx402/anchor` request the facilitator accepts, mirroring its
371
371
  * `MAX_REQUEST_BODY_BYTES` (default 64 KiB, an anti-OOM bound on every route).
372
- * After base64 inflation and ~600 bytes of metadata this leaves ~47 KB of
373
- * plaintext.
374
372
  */
375
373
  declare const ANCHOR_MAX_REQUEST_BYTES: number;
376
374
  declare function anchorEvidence(body: Uint8Array, opts: AnchorOptions): Promise<Record<string, unknown>>;
package/dist/index.d.ts CHANGED
@@ -369,8 +369,6 @@ declare function sellerDigestFor(paymentId: string, contentHash: string, payee:
369
369
  /**
370
370
  * Largest `POST /dx402/anchor` request the facilitator accepts, mirroring its
371
371
  * `MAX_REQUEST_BODY_BYTES` (default 64 KiB, an anti-OOM bound on every route).
372
- * After base64 inflation and ~600 bytes of metadata this leaves ~47 KB of
373
- * plaintext.
374
372
  */
375
373
  declare const ANCHOR_MAX_REQUEST_BYTES: number;
376
374
  declare function anchorEvidence(body: Uint8Array, opts: AnchorOptions): Promise<Record<string, unknown>>;
package/dist/index.js CHANGED
@@ -1638,6 +1638,12 @@ async function anchorEvidence(body, opts) {
1638
1638
  // `sealed` -> it hosts and derives the pointer; `pointer` alone -> it uses
1639
1639
  // yours; neither -> error (x402-rs `dx402/service.rs`).
1640
1640
  ...pointer !== void 0 ? { pointer } : { sealed: toBase64(blob) },
1641
+ // Declared, not measured. Since x402-rs 2.3.0 the facilitator records
1642
+ // the store that ACTUALLY took the bytes and returns that, so a response
1643
+ // may name a different backend than the request did -- `ipfs` where you
1644
+ // said `s3`, because a deployment whose primary is Pinata wrote there.
1645
+ // That is the facilitator correcting the record, not a mismatch to
1646
+ // assert on.
1641
1647
  backend: opts.backend ?? (pointer !== void 0 ? backendForPointer(pointer) : "s3"),
1642
1648
  contentHash: hash,
1643
1649
  keyAlg: opts.payerKey.length === 32 ? "ECIES-X25519" : "ECIES-secp256k1",