Skip to main content

Crate clear_signing

Crate clear_signing 

Source
Expand description

ERC-7730 v2 clear signing library — decodes and formats contract calldata and EIP-712 typed data for human-readable display using JSON descriptors.

Entry points: format_calldata(), format_typed_data().

Re-exports§

pub use engine::DisplayEntry;
pub use engine::DisplayItem;
pub use engine::DisplayModel;
pub use error::FormatFailure;
pub use merge::merge_descriptors;
pub use outcome::DescriptorResolutionOutcome;
pub use outcome::DiagnosticSeverity;
pub use outcome::FallbackReason;
pub use outcome::FormatDiagnostic;
pub use outcome::FormatOutcome;
pub use outcome::ResolvedDescriptorResolution;
pub use provider::DataProvider;
pub use provider::EmptyDataProvider;
pub use resolver::resolve_descriptors_for_typed_data;
pub use resolver::resolve_descriptors_for_tx;
pub use resolver::DescriptorSource;
pub use resolver::ResolvedDescriptor;
pub use resolver::TypedDescriptorLookup;
pub use token::CompositeDataProvider;
pub use token::TokenMeta;
pub use token::WellKnownTokenSource;
pub use types::descriptor::Descriptor;

Modules§

decoder
Solidity function signature parsing and ABI calldata decoding. No JSON ABI needed — signatures are parsed directly from descriptor format keys.
eip712
EIP-712 typed data formatting — parses structured typed data and produces a DisplayModel using the same descriptor format as calldata.
engine
Formatting pipeline: resolves display fields, formats decoded values, and produces a DisplayModel with labeled entries for wallet UIs.
error
Error types for decoding, resolution, and rendering failures.
merge
JSON-level merge for ERC-7730 includes mechanism.
outcome
provider
Unified async data provider trait for external data resolution.
resolver
Pluggable descriptor resolution facade.
token
Token metadata types and built-in providers. Uses CAIP-19 keys (eip155:{chain}/erc20:{addr}) for cross-chain lookups.
types
Data model types for ERC-7730 descriptors: context, display, metadata.
uniffi_compat

Structs§

TransactionContext
Transaction context for calldata formatting.

Functions§

format_calldata
Format contract calldata for clear signing display.
format_typed_data
Format EIP-712 typed data for clear signing display.