//! Signing payload construction and signer integration.
//!
//! This module provides utilities for constructing signing payloads and digests
//! required by the Tenbin protocol. The SDK handles all protocol-specific details
//! (field ordering, hashing rules, domain separation) while you provide the signing.
//!
//! ## Signing Contexts
//!
//! Tenbin uses different signing schemes for different operations:
//!
//! | Context | Standard | Module |
//! |---------|----------|--------|
//! | WebSocket authentication | EIP-191 (`personal_sign`) | `challenge` |
//! | REST authentication | EIP-191 (`personal_sign`) | `rest_auth` |
//! | Order signatures | EIP-712 (typed data) | `order` |
//!
//! ## Usage Pattern
//!
//! 1. **Implement `PayloadSigner`** for your key management solution
//! 2. **Use the SDK** to compute the digest for the operation
//! 3. **Sign the digest** using your `PayloadSigner` implementation
//!
//! ## Security
//!
//! The SDK never handles private keys. All signing is performed by your
//! `PayloadSigner` implementation, which can delegate to hardware wallets,
//! MPC systems, cloud KMS, or local keys as appropriate for your security model.

/// EIP-191 challenge signing helpers for WebSocket authentication.
pub mod challenge;
/// EIP-712 typed data signing helpers for order submission.
pub mod order;
/// REST API authentication credential generation.
pub mod rest_auth;
/// Traits and implementations for user-provided signers.
pub mod signer;
