uvd-x402-sdk 2.70.0 → 2.71.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.
@@ -2901,7 +2901,14 @@ var Erc8004Client = class {
2901
2901
  * facilitator pays.
2902
2902
  *
2903
2903
  * What to do with the answer:
2904
- * 1. Sign `digest` with the rater's key (EIP-191 personal-sign).
2904
+ * 1. Produce the rater's signature. **Which value you sign depends on how you
2905
+ * sign it**, and getting it wrong yields a well-formed signature that
2906
+ * authorises nobody:
2907
+ * - raw key: sign `digest` as a **prehash**. It already carries the
2908
+ * EIP-191 envelope.
2909
+ * - wallet: `personal_sign` over `signingPayload`. `personal_sign` adds the
2910
+ * envelope itself, so signing `digest` with it wraps the value TWICE and
2911
+ * recovers a stranger — the only symptom is `relay_bad_signature`.
2905
2912
  * 2. If `delegated` is `false`, also produce an EIP-7702 authorization over
2906
2913
  * `(chainId, delegate, accountNonce)`.
2907
2914
  * 3. Hand both to {@link submitRelayedFeedback} with the SAME feedback