1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Tron "exact" payment scheme implementation.
//!
//! This module implements the "exact" payment scheme for Tron, reusing the
//! EIP-3009 `transferWithAuthorization` and Permit2 mechanisms defined by
//! the x402 EVM exact scheme. Tron's TIP-712 typed-data signing is
//! byte-compatible with EIP-712, so the same domain separator and
//! struct-hash algorithm apply; only two things differ from `r402-evm`:
//!
//! - **EOA-only signatures**: Tron has no contract wallets, so neither
//! EIP-1271 nor EIP-6492 apply — every signature recovers directly to an
//! externally-owned account.
//! - **`Base58Check` wire addresses**: `payTo` / `asset` / authorization
//! addresses are Base58Check-encoded ([`crate::chain::Address`]) on the
//! wire, converted to the raw EVM hex form only at the TIP-712 signing
//! boundary.
//!
//! # Feature Flags
//!
//! - `server` — Server-side price tag generation
//! - `client` — Client-side payment signing
//! - `facilitator` — Facilitator-side payment verification and settlement
//! - `telemetry` — `OpenTelemetry` tracing support
use SchemeId;
pub use *;
pub use *;
/// Tron exact scheme identifier.
///
/// Uses CAIP-2 chain IDs (e.g. `tron:0x2b6653dc`) for chain identification
/// and embeds requirements directly in the payload.
;