WcHttpGet typedef
WalletConnect Verify API (R26): verify the ES256 attestation JWT the relay
attaches to a delivery (WcRelayMessage.attestation) against the Verify
service's P-256 public key, decode its claims, and compare the attested
origin to the peer's declared origin - yielding VALID / INVALID / SCAM.
The ES256 verification rides coin's in-house P256; the public-key fetch is
injected (a WcHttpGet) so this layer stays web-safe and node-agnostic, the
same pattern as WcAuth's WcEthCall. The default endpoints match reown's
(verify.walletconnect.org).
An HTTP GET returning the response body as text, injected so the verify
client makes no assumption about the HTTP stack (wire it to dart:io,
package:http, a browser fetch, ...).
Implementation
/// An HTTP GET returning the response body as text, injected so the verify
/// client makes no assumption about the HTTP stack (wire it to `dart:io`,
/// `package:http`, a browser fetch, ...).
typedef WcHttpGet = Future<String> Function(String url);