Expand description
wave Dispatch — thin Rust client. Route each request to the cheapest capable model (local-first; escalate to your frontier only when needed). BYO keys + infra; the service returns a routing decision.
Structs§
Functions§
- sign_
cdp_ jwt - 0.6.2 — CDP-JWT (ES256/P-256) signer. Uses the
p256crate (added to dependencies). Pure Rust; no openssl FFI. Header: {alg:‘ES256’, kid:<api_key>, typ:‘JWT’, nonce:}. Payload: {sub:<api_key>, iss:‘cdp’, nbf: , exp:<now+120>, uri:‘POST dispatch.wave.online ’, claim: }. p256’s ECDSA signer returns r||s as a Signature; we serialize to raw 32+32 (IEEE P-1363) — the JWS ES256 spec representation — then base64url-encode the three parts.
Type Aliases§
- Payment
Hook - 0.5.1 — payment hook: called once with the 402 challenge body, returns headers to retry the
request with (e.g.
{"x-payment": "..."}for x402,{"tempo-payment": "..."}for tempo). Pair withDispatch::wallet_hook(provider, credentials)for the built-in CDP / Privy / Bridge factories, or build a closure yourself for any custom wallet stack.