๐ง Algorithms
Tychi Wallet leverages a suite of backend-driven algorithms to streamline Web3 operations while maintaining maximum decentralization, efficiency, and user privacy. These algorithms power critical infrastructure such as gas fee abstraction, cross-chain bridging, and secure recovery.
๐ Multi-Chain Bridging Protocol
Tychi Wallet supports token mobility across 50+ blockchains using a deterministic bridging system combining:
Relay Node Validation: Confirms lock events on source chains before executing mint/release.
Merkle Proof Verification: Proves transaction inclusion within source chain blocks.
Signature Authentication: Uses cryptographic signing to authorize bridge actions.
Liquidity Routing: Maintains on-demand liquidity through integrated liquidity sources.
Smart Contract Enforcement: Manages token minting, burning, and lock mechanics.
Formulaic Trigger:
T_B = T_A - F
F = T_A * r
Where:
T_A
: Tokens lockedT_B
: Tokens releasedF
: Fee deducted asT_A * r
, wherer
is fee rate
๐ Components of Multi-Chain Bridging
Optimized Relay Nodes
Enhance transaction speed and reliability
Blockchain Bridges
Facilitate secure asset movement between chains
Merkle Proofs
Verify transaction integrity during cross-chain execution
Cryptographic Signatures
Ensure authenticity and tamper-proof communication
Automated Liquidity Pools
Maintain sufficient liquidity across chains
Smart Contracts
Handle locking, minting, and token verification processes automatically
โฝ Gas Fee Optimization โ AI Powered
Tychi Wallet features an AI-based system that continuously monitors network congestion trends to suggest the optimal time to transactโwhen gas fees are lower and network usage is minimal.
โ Privacy Focused: This logic uses historical and public data, never tracking the userโs transaction history.
๐ ๏ธ Gas Fee Abstraction Flow Diagram

๐ฑ Fee Abstraction Engine
Tychi allows users to pay gas fees using TYI or BNBโremoving the burden of managing native tokens.
Conversion Workflow
Input: User pays with TYI or BNB
Chain Detection: System identifies the origin blockchain
Gas Estimation: Calculates required native token fee
Price Aggregation: Fetches rates from Chainlink, CoinGecko, CoinMarketCap
Slippage Check: Applies tolerance formulas to validate risk
Conversion: Executes off-chain via internal or third-party liquidity sources
Finalization: Submits transaction using converted native token
๐ This creates a frictionless, chain-agnostic gas payment system.
๐งฎ Slippage Calculation
effectivePrice = priceFeedAvg * (1 ยฑ ฮต)
Where:
priceFeedAvg
is the median of prices from Chainlink, CoinMarketCap, and CoinGeckoฮต
= predefined slippage threshold (1-2%), adjusted by volatility metrics
The abstraction system only proceeds when:
priceChainlink - priceOther| < ฮต * priceFeedAvg
This ensures consistent pricing without user overpayment.
๐ Social Recovery Algorithm
Tychiโs recovery module utilizes Shamirโs Secret Sharing. A user's private key is split across n
guardians. A threshold t
(e.g. 3 of 5) must approve to reconstruct the key.
Recovery Flow:
User initiates recovery
Guardians confirm identity and submit encrypted shares
Backend reconstructs key securely
Key is returned to user in encrypted format
Model Basis:
Key = SSS(k, t, n)
Where:
SSS
= Shamirโs Secret Sharingk
= private keyt
= threshold requiredn
= total guardians
All shares are encrypted and transported over secure channels.
Last updated