<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by OracleThaCat on Medium]]></title>
        <description><![CDATA[Stories by OracleThaCat on Medium]]></description>
        <link>https://medium.com/@oraclethaacat?source=rss-8a690a00c5bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lCToOIEGUqSLr9-UcGk_aw.jpeg</url>
            <title>Stories by OracleThaCat on Medium</title>
            <link>https://medium.com/@oraclethaacat?source=rss-8a690a00c5bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:02:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oraclethaacat/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[POOP: Post-quantum Signatures That Are 13.5x]]></title>
            <link>https://medium.com/@oraclethaacat/poop-post-quantum-signatures-that-are-13-5x-855d68734789?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/855d68734789</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[post-quantum-cryptography]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 08:11:26 GMT</pubDate>
            <atom:updated>2026-06-12T08:34:00.590Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>POOP: Post-quantum Signatures That Are 13.5x Smaller Than SPHINCS+ (By Letting the Blockchain Do the Work)</em></strong></h3><p><strong>POOP is a post-quantum signature scheme that produces ~580-byte signatures instead of SPHINCS+’s ~7,856 bytes, verifies ~53x faster, and relies on the same hash-only security assumption. The trick: stop treating the blockchain as a dumb pipe and make it a participant in the cryptographic protocol.</strong></p><p>— -</p><p><strong>The Problem</strong></p><p>Post-quantum cryptography has a size problem. The signatures that protect us from quantum computers are enormous compared to what we use today.</p><p>ECDSA, what most blockchains use now, gives you 64-byte signatures. It will be broken by quantum computers. The NIST-standardized replacements are much larger: ML-DSA (Dilithium) signatures are 2,420 bytes. SLH-DSA (SPHINCS+), which relies only on hash function security, weighs in at 7,856 bytes. That’s a 122x blowup over ECDSA.</p><p>For blockchains, this matters. Every signature lives on-chain, gets propagated to every node, and gets stored forever. A 122x size increase isn’t a rounding error — it’s a throughput killer.</p><p>The lattice-based schemes like ML-DSA are smaller, but they rest on mathematical assumptions that are younger and less battle-tested than “SHA-256 is hard to invert.” For a blockchain that’s supposed to secure billions of dollars for decades, hash-only assumptions are the conservative choice.</p><p>So the question becomes: can we get hash-only post-quantum security without paying the SPHINCS+ size tax?</p><p>Yes. But you have to cheat — in exactly the way blockchains let you.</p><p><strong>The Insight Nobody Used</strong></p><p>There’s a family of hash-based signature schemes that have been around since the 1970s: Merkle trees over one-time signatures. They’re small, fast, and their security is dead simple. XMSS and LMS are standardized versions of this idea.</p><p>They have one fatal flaw: <strong>they’re stateful.</strong> Each leaf in the Merkle tree can only sign one message. Use a leaf twice, and an attacker can forge signatures. The signer must maintain perfect state — which leaf was used last — across crashes, backups, VM migrations, and operator error.</p><p>This is why SPHINCS+ exists. It’s a heroic engineering effort to make hash-based signatures <em>stateless</em>, at the cost of a 7,856-byte signature that encodes an entire hypertree of Merkle trees plus a FORS few-time signature layer. All of that machinery exists to avoid trusting the signer to track state.</p><p>But here’s the thing: <strong>blockchains already track state per account.</strong> Every account has a nonce — a sequential counter that prevents transaction replay. The chain enforces that your nonce goes 0, 1, 2, 3… and rejects anything out of order.</p><p>That’s exactly the state a Merkle-tree signature scheme needs.</p><p><strong>How</strong> <strong>POOP</strong> <strong>Works</strong></p><p>POOP (Post-quantum Optimized On-chain Protocol) co-designs the signature scheme with the blockchain’s existing state model. The core idea is three-fold.</p><p><strong>First: leaf index equals transaction nonce.</strong></p><p>Each account gets a Merkle tree with about one million leaves. Leaf <em>i</em> holds a one-time signing key. When you send your <em>i</em>-th transaction, you sign with leaf <em>i</em>. The blockchain already enforces sequential nonce usage, so it’s impossible to reuse a leaf — the chain won’t accept it.</p><p>The catastrophic failure mode of stateful signatures — accidental leaf reuse — doesn’t just get mitigated. It gets eliminated by construction.</p><p><strong>Second: on-chain verifier cache.</strong></p><p>Here’s where it gets interesting. When the chain verifies your signature at leaf <em>i</em>, it needs the Merkle authentication path — the sibling hashes that let you walk from the leaf up to the root.</p><p>Normally the signer sends all 20 siblings every time.</p><p>But the chain already verified leaf <em>i-1</em> last time. And consecutive leaves share most of their authentication path. On average, only 2 siblings change between consecutive leaves, and one of those is <em>derivable</em> by the verifier from the leaf it just verified.</p><p>So the signer sends an average of one new sibling hash per signature. One hash. 16 bytes.</p><p>The chain stores the current authentication path (about 328 bytes per account) and evolves it with each signature verification. The signer sends only what changed.</p><p><strong>Third: flat Merkle tree, no hypertree.</strong></p><p>SPHINCS+ uses a tree of trees with few-time signatures at the bottom — all to avoid statefulness. Since we’ve eliminated the statefulness problem, we don’t need any of that. One flat Merkle tree. One W-OTS+ one-time signature per leaf. Done.</p><p><strong>The Numbers</strong></p><p>At NIST Level I equivalent security, SPHINCS+-128s produces 7,856-byte signatures. POOP averages about 580 bytes. That’s 13.5x smaller. Worst case (which happens once every million signatures) is about 880 bytes — still 8.9x smaller.</p><p>Verification is about 53x faster because there’s no hypertree to traverse and no FORS layer to check. Just one W-OTS+ verification and one Merkle path walk.</p><p>The security assumption is identical: hash function preimage resistance and collision resistance. The quantum security level is comparable — roughly 2⁵⁵ quantum hash queries to break with n=16.</p><p>Bumping to n=20 gives 2⁷¹ quantum security at about 724 bytes average, still 10.8x smaller than SPHINCS+.</p><p>The cost is 328 bytes of on-chain state per account. For context, an Ethereum account already stores about 100 bytes of state. This is not a meaningful overhead.</p><p>The 580 bytes breaks down simply: 35 W-OTS+ chain values at 16 bytes each (560 bytes), a 4-byte leaf index, and an average of one 16-byte delta sibling.</p><p><strong>Why the Tight Reduction Matters</strong></p><p>This is subtle but important for cryptographers.</p><p>In SPHINCS+, the security proof loses a factor of about 512 because the simulator has to guess which subtree the adversary will target. This is inherent to stateless schemes — the adversary can adaptively choose where to attack.</p><p>In POOP, the adversary has zero adaptive choice. The blockchain state fixes the target leaf. The simulator knows exactly where to embed its challenge. The security reduction is tight.</p><p>This means POOP’s proven security is closer to its actual security than SPHINCS+’s is. At the same hash output size, you get more proven security from POOP.</p><p><strong>The Tradeoff</strong></p><p>POOP is not a general-purpose signature scheme. It requires three things.</p><p>A blockchain or equivalent ordered state machine that enforces sequential per-account signing and can store 328 bytes of authentication state per account.</p><p>Key rotation every ~1 million signatures. At one transaction per 12-second block, that’s 388 years — not a concern. At one transaction per second, it’s about 12 days. High-frequency accounts need periodic key rotation, which is a routine blockchain operation.</p><p>The signer maintains the full Merkle tree or the seed to regenerate it. This is about 16 MB for the default parameters.</p><p>If you’re not on a blockchain, use SPHINCS+. If you are, you’re leaving a 13.5x size reduction on the table.</p><p><strong>Verification</strong></p><p>We don’t ask you to trust the math on faith. The scheme comes with three test suites totaling 285 tests.</p><p>84 functional tests cover correctness, edge cases, performance, and cross-validation. 80 security proof tests implement 7 formal theorems with executable verification, including reduction extraction and exhaustive checksum completeness. 41 exhaustive verification tests check every claim for all possible inputs at tractable parameter sizes — not sampled.</p><p>Every leaf transition in a 256-leaf tree: correct. Every single-byte mutation of every signature: rejected. Every replay at every state: rejected. Every cross-leaf signature forgery: rejected. The delta formula verified against brute-force for all indices up to 65,536: exact match. The checksum property checked across 16.8 million message pairs: holds. All address tweaks across all hash call sites: unique.</p><p>The only unverifiable assumption is that SHA-256 is a secure hash function. Given that assumption, every claim the scheme makes is exhaustively proven.</p><p><strong>How It Works in One Paragraph</strong></p><p>Generate a seed. Derive one million W-OTS+ key pairs. Hash each public key to get a Merkle leaf. Build the tree. Your public key is the root. To register on-chain, submit leaf zero’s hash and its authentication path — the chain verifies it reaches your root and caches the path. To sign, use the W-OTS+ key at the current leaf index and include the delta (the few sibling hashes that change for the next leaf). The chain recovers the leaf hash from your signature, walks up the cached path to verify it hits the root, then updates its cache using the delta plus one sibling it derives itself.</p><p>Done.</p><p><strong>What’s</strong> <strong>Next</strong></p><p>The scheme is implemented in Python as a reference. The natural next steps are a constant-time Rust implementation for production use, integration as a blockchain precompile or protocol-level signature type, a formal security proof in the quantum random oracle model for academic publication, and tree compaction so the signer can regenerate branches on demand from the seed instead of storing the full tree.</p><p>The code is open. The math is tested. The name is unfortunate. But the 13.5x signature compression is real.</p><p><a href="https://github.com/MuffinsThaCat/poop">https://github.com/MuffinsThaCat/poop</a></p><p>— -</p><p><em>POOP: Post-quantum Optimized On-chain Protocol. Built on the observation that blockchains already solve the hardest problem in stateful cryptography — they just didn’t know it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=855d68734789" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking New Computational Possibilities: How Aristo’s Architecture Enables Previously Impossible…]]></title>
            <link>https://medium.com/@oraclethaacat/unlocking-new-computational-possibilities-how-aristos-architecture-enables-previously-impossible-f32a7e37e516?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f32a7e37e516</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[decentralized-finance]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 15:30:15 GMT</pubDate>
            <atom:updated>2025-09-19T15:36:46.234Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unlocking New Computational Possibilities: How Aristo’s Architecture Enables Previously Impossible Applications</h3><h3>Abstract</h3><p>Aristo represents a new category of distributed computing that enables applications previously impossible on any blockchain platform. Rather than replacing existing blockchain networks, our TEE mesh unlocks entirely new computational capabilities: real-time financial mathematics, privacy-preserving computation at scale, and hardware-verified cross-regional coordination. This creates new application categories that complement rather than compete with traditional blockchain use cases, expanding the total addressable market for distributed applications.</p><h3>Complementary to Existing Blockchain Networks</h3><p>These new capabilities complement existing blockchain infrastructure:</p><p>Integration with Existing Networks:</p><ul><li>Bridge TEE-computed results to Ethereum for settlement</li><li>Use Bitcoin as final settlement layer with TEE preprocessing</li><li>Leverage existing DeFi protocols for liquidity with TEE risk management</li><li>Maintain existing wallet and developer tooling compatibility</li></ul><p>Value-Added Services:</p><ul><li>Add real-time risk management to existing DeFi protocols</li><li>Provide privacy layers for existing smart contracts</li><li>Enable cross-chain coordination with hardware verification</li><li>Offer computational acceleration for complex operations</li></ul><p>Expanding Capabilities:</p><ul><li>Traditional blockchains handle value storage and simple transfers</li><li>TEE mesh handles complex computation and real-time coordination</li><li>Existing applications gain new capabilities without migration</li><li>New application categories become possible alongside existing ones</li></ul><p>Aristo represents technological evolution that builds upon existing infrastructure:</p><p>Building on Proven Technologies:</p><ul><li>TEE hardware is mature and widely deployed</li><li>Regional coordination mirrors existing financial market structure</li><li>Cryptographic attestation enhances rather than replaces consensus</li><li>Standard interfaces maintain compatibility with existing systems</li></ul><p>Natural Market Evolution:</p><ul><li>Financial markets already operate regionally with global coordination</li><li>Existing applications can gradually adopt TEE computation services</li><li>Developers can enhance current applications with new capabilities</li><li>Users benefit from improved performance without learning new interfaces</li></ul><h3>Advanced Mathematical Operations at Scale</h3><p>Aristo enables mathematical operations impossible on traditional blockchain virtual machines:</p><p>Financial Mathematics:</p><ul><li>Black-Scholes option pricing: Real-time calculations with live volatility data</li><li>Portfolio optimization: Modern portfolio theory with constraint solving</li><li>Value at Risk calculations: Monte Carlo simulations with regulatory accuracy</li><li>Credit scoring models: Machine learning inference on encrypted data</li></ul><p>Performance Benchmarks (Aristo vs Traditional Blockchain):</p><ul><li>Matrix operations: 10ms vs impossible (gas limit exceeded)</li><li>Monte Carlo simulations: 100ms vs impossible (computational complexity)</li><li>Linear programming: 50ms vs impossible (iterative algorithms not supported)</li><li>Machine learning inference: 25ms vs impossible (model complexity)</li></ul><p>Scientific Computing:</p><ul><li>Collaborative research: Multi-institution data analysis with privacy</li><li>Distributed simulations: Climate modeling, financial modeling, optimization</li><li>Peer review verification: Cryptographic proof of computational reproducibility</li><li>Real-time analytics: Stream processing with verifiable results</li></ul><p>Performance Characteristics:</p><ul><li>Regional operations: 50–100ms (faster than existing centralized systems)</li><li>Cross-regional coordination: 100–200ms (competitive with traditional finance)</li><li>Global consensus when needed: &lt;1 second (faster than traditional blockchain)</li></ul><h3>Cryptographic Operations Previously Impractical</h3><p>Aristo’s TEE hardware acceleration makes advanced cryptographic operations practical:</p><p>Quantum-Resistant Cryptography:</p><ul><li>Post-quantum signatures: Production-ready implementation with &lt;5ms verification</li><li>Lattice-based encryption: Practical quantum-resistant privacy</li><li>Forward-secure protocols: Protection against future quantum computers</li><li>Hybrid classical/post-quantum systems: Migration path for existing applications</li></ul><h3>Aristo provides a clear path for gradual adoption without disrupting existing systems and creates new application categories:</h3><p>AI-Verified Applications:</p><ul><li>Machine learning models with cryptographic proof of training</li><li>AI decision-making with verifiable reasoning</li><li>Collaborative AI training with privacy preservation</li><li>Real-time AI inference with hardware attestation</li></ul><p>Advanced Financial Instruments:</p><ul><li>Dynamic derivatives with real-time pricing</li><li>Cross-asset arbitrage with automatic execution</li><li>Multi-party structured products with privacy</li><li>Real-time regulatory compliance for complex instruments</li></ul><p>Global Coordination Systems:</p><ul><li>Supply chain optimization across competing entities</li><li>Multi-jurisdictional legal agreements with automatic enforcement</li><li>Global resource allocation with privacy preservation</li><li>International collaboration with confidential data</li></ul><h3>Conclusion: Opening New Frontiers</h3><p>Aristo doesn’t replace existing blockchain networks — it opens entirely new computational frontiers that complement and enhance existing capabilities. By enabling real-time computation, privacy-preserving operations, and hardware-verified coordination, Aristo creates new application categories that expand the total addressable market for distributed applications.</p><p>The evolution represents technological advancement that builds upon existing infrastructure while enabling previously impossible capabilities. Developers can enhance existing applications with new features while building entirely new categories of applications that leverage hardware-verified computation.</p><p>This creates a future where traditional blockchain networks handle value storage and simple coordination, while TEE mesh networks enable complex computation and real-time operations. The combination provides the full spectrum of distributed application capabilities, from simple value transfer to advanced computational finance and privacy-preserving analytics.</p><p>The result is not disruption of existing systems, but expansion of what’s possible in distributed computing — creating new markets, new applications, and new opportunities that benefit the entire blockchain ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f32a7e37e516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Long Term EVM upgrades on Avalanche — Suggestion]]></title>
            <link>https://medium.com/@oraclethaacat/long-term-evm-upgrades-on-avalanche-suggestion-b962805f1941?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b962805f1941</guid>
            <category><![CDATA[avalanche-network]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 14:07:15 GMT</pubDate>
            <atom:updated>2025-06-13T14:07:15.035Z</atom:updated>
            <content:encoded><![CDATA[<h3>Long Term EVM upgrades on Avalanche — Suggestion</h3><p>Recent cryptographic advances and AI coded workflows have made way for new possibilities in the realm of blockchain. One of the foremost achievements for EVM scaling has for many years thought to be the idea of “stateless”.</p><h3>What does Ethereum “Stateless” Mean?</h3><p>A stateless approach fundamentally changes how nodes interact with blockchain state:</p><p>Instead of requiring nodes to store the entire state:</p><ul><li>Transactions come bundled with small proofs (often called “witnesses”) of just the state they need to access</li><li>Validators can verify these proofs without having the full state</li><li>Once validated, only the state changes need to be recorded</li></ul><h3>Key Benefits of Statelessness for Ethereum</h3><ol><li>Reduced Storage Requirements: Validators don’t need to store the entire state</li><li>Lower Barriers to Participation: Easier to run validating nodes</li><li>Faster Synchronization: New nodes can join the network more quickly</li><li>Potential for Parallelization: Process non-overlapping transactions simultaneously</li></ol><p>This is a network-level stateless architecture.</p><p>There is a secondary option to “stateless”.</p><h3><strong>Application-level Statelessness</strong></h3><p>Runs above the protocol</p><p>Different Goals: Security verification and transaction determinism vs. scaling</p><p>Different Techniques: Explicit state declarations vs. witnesses</p><p>Uses explicit declarations of what state will be accessed:</p><ul><li>What it is: Structured metadata indicating which storage slots/addresses a transaction will touch</li><li>When it’s created: During transaction planning by a user/agent</li><li>Size implications: Very compact, just references to state locations</li><li>Verification process: System ensures all required state is fetched before execution</li></ul><p>What this enables:</p><ul><li>Very fast transactions without waiting for consensus (Verification) — enabling HFT use cases, pre-verification of complex regulatory requirements</li><li>Multi-step transaction atomicity which is discussed in Ethereum circles but mostly under different terms: “Intent-based systems”, “Bundled transactions”, “Meta-transactions” — possible but would need to solve MEV issues. It needs to succeed entirely or fail entirely.</li></ul><p>HFT can be enabled today without any protocol changes. But to enable entirely new use cases(beyond the basic ones we already know), multi-step transaction atomicity would need to be done.</p><h3>What’s Possible in Traditional EVM</h3><p>Monolithic Smart Contracts: Bundle all logic into one large contract</p><ul><li>Example: 1inch’s exchange aggregator contract handles multi-DEX routing in a single transaction</li><li>Drawback: Extremely complex code, difficult to audit, gas limitations</li></ul><p>Delegated Execution: Have one contract call multiple others</p><ul><li>Example: Yearn’s strategies execute multiple steps via delegatecalls</li><li>Drawback: Limited visibility into security implications across contracts</li></ul><p>External Sequencing: Use external services like Flashbots bundles</p><ul><li>Example: MEV bots sequence multiple transactions atomically</li><li>Drawback: Relies on off-chain coordination, limited to specific networks</li></ul><h3>Key Limitations Without StatelessVM</h3><ol><li>No Pre-Execution Security Verification: Traditional EVMs execute first, then deal with consequences</li><li>Gas Limits: Complex operations often hit block gas limits (especially on Ethereum)</li><li>Limited Atomicity: Transactions across multiple blocks can’t be atomic</li><li>Opaque State Access: No explicit declarations of what state will be accessed</li><li>Higher Complexity: Developers must build complex safety mechanisms manually</li></ol><h3>Example of New Lending Protocol Capabilities with StatelessVM</h3><h3>1. Multi-Collateral Position Management</h3><ul><li>Current limitation: Aave requires separate transactions to adjust multiple collateral types</li><li>StatelessVM enables: Atomic rebalancing across multiple collateral types with guaranteed execution</li><li>Benefit: Dramatically reduced liquidation risk during volatile markets</li></ul><h3>2. Cross-Protocol Liquidation Protection</h3><ul><li>Current limitation: Liquidations can’t automatically tap into liquidity across protocols</li><li>StatelessVM enables: Multi-step liquidation protection that sources liquidity from multiple venues</li><li>Benefit: Users avoid costly liquidations through intelligent cross-protocol rescue operations</li></ul><h3>3. Dynamic Risk Management</h3><ul><li>Current limitation: Risk parameters are protocol-wide, not customized to transaction patterns</li><li>StatelessVM enables: Transaction-specific risk verification based on complex user history</li><li>Benefit: More capital-efficient lending with personalized risk models</li></ul><h3>4. Composable Interest Rate Strategies</h3><ul><li>Current limitation: Interest rates follow predetermined formulas</li><li>StatelessVM enables: Complex multi-factor interest rate determination across market conditions</li><li>Benefit: More efficient capital allocation responding to true market conditions</li></ul><h3>5. Intelligent Collateral Switching</h3><ul><li>Current limitation: Collateral swaps require manual user orchestration</li><li>StatelessVM enables: Automatic collateral optimization based on market conditions</li><li>Benefit: Higher yields and lower risk through automated position management</li></ul><p>These aren’t just incremental improvements — they represent fundamental new capabilities that would allow lending protocols to operate more efficiently and securely than current generation protocols like Aave.</p><h3>Other Complex Use Cases That Need StatelessVM</h3><h3>1. Multi-Step Financial Operations</h3><ul><li>DEX Aggregation: Finding optimal routes across multiple DEXs</li><li>Yield Optimization: Automated rebalancing across lending protocols</li><li>Liquidation Protection: Complex self-repayment strategies</li></ul><h3>2. Cross-Protocol Interactions</h3><ul><li>Bridging Operations: Secure cross-chain transfers with verification</li><li>Composable DeFi: Combining lending, trading, and insurance in single transactions</li><li>Protocol-to-Protocol Integrations: Safe interaction between independent protocols</li></ul><h3>3. Real-World Asset (RWA) Transactions</h3><ul><li>Tokenized Securities: Complex compliance and settlement rules</li><li>Real Estate Transactions: Multi-party settlement with escrow</li><li>Supply Chain Finance: Sequential verification of goods and payments</li></ul><h3>4. Institutional Trading</h3><ul><li>Block Trading: Large orders executed across multiple venues</li><li>Portfolio Rebalancing: Complex transaction sequences with slippage protection</li><li>Regulatory Compliance: Pre-verified transaction sequences that adhere to regulations</li></ul><p>The Missing Infrastructure: Traditional finance requires multi-step atomicity and pre-execution verification</p><p>True Institutional Readiness: Not just marketing, but actual technical capabilities institutions demand</p><p>Regulatory Compatibility: The verification architecture necessary for regulated markets</p><h3>Differentiation from Ethereum</h3><p>With Ethereum focusing on general scaling through rollups and network-level statelessness:</p><ul><li>Avalanche can carve out the market for high-value applications across all domains</li><li>Create capabilities Ethereum won’t have for many years (if ever), they would have to prevent MEV</li><li>Attract sophisticated developers who need these features</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b962805f1941" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond DCAP: Implementing Decentralized TEE Attestation for High-Performance Blockchain Networks]]></title>
            <link>https://medium.com/@oraclethaacat/beyond-dcap-implementing-decentralized-tee-attestation-for-high-performance-blockchain-networks-2985cf0166b2?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2985cf0166b2</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[confidential-computing]]></category>
            <category><![CDATA[avalanche-network]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 20:27:46 GMT</pubDate>
            <atom:updated>2025-03-12T20:27:46.639Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Trusted Execution Environments (TEEs) have emerged as a cornerstone technology for blockchain applications requiring confidential computing capabilities. However, traditional TEE attestation approaches rely heavily on services like Intel Attestation Service(IAS) and Intel’s Data Center Attestation Primitives (DCAP), creating a fundamental contradiction in otherwise decentralized systems. This article explores an approach to decentralized TEE attestation that leverages DCAP only for initial bootstrapping while utilizing a regional mesh network for ongoing verification.</p><h3>The Centralization Problem in TEE Attestation</h3><p>Most blockchain projects implementing TEE technology face an uncomfortable reality: their security model depends on centralized attestation services. Even with DCAP’s improvements over the traditional Intel Attestation Service (IAS), these systems still require continuous interaction with centralized infrastructure, creating single points of failure and undermining their decentralization claims.</p><h3>Centralized Components in DCAP</h3><p><strong>Intel-Controlled Root of Trust</strong>:</p><ul><li>The Provisioning Certification Key (PCK) certificates are still issued by Intel</li><li>Intel acts as the Certificate Authority (CA) for the entire trust chain</li><li>No third-party verification exists for Intel’s certificate issuance process</li></ul><p><strong>Centralized PCK Certificate Distribution</strong>:</p><ul><li>Intel’s Provisioning Certification Service (PCS) is the single source of PCK certificates</li><li>All DCAP implementations must obtain these certificates from Intel’s infrastructure</li><li>Caching only reduces frequency of contact, not dependence on Intel as the source</li></ul><p><strong>Certificate Revocation Checking</strong>:</p><ul><li>Revocation lists for compromised enclaves are maintained by Intel</li><li>Security-critical updates require interaction with Intel’s infrastructure</li><li>No decentralized alternative exists for PCK certificate validation</li></ul><p><strong>TCB Recovery</strong>:</p><ul><li>When processor vulnerabilities are discovered, TCB (Trusted Computing Base) updates come from Intel</li><li>Security patches and corresponding attestation updates flow through Intel’s centralized channels</li><li>All DCAP implementations must follow Intel’s update cycle</li></ul><h3>New Approach: Bootstrap Once, Verify Locally</h3><p>An attestation architecture can employ a “verify once, trust many times” model that combines the security of hardware-rooted trust with the efficiency and resilience of decentralized verification:</p><h3>Initial Bootstrap Phase</h3><p>During onboarding, each TEE does its verification through DCAP:</p><ul><li>Hardware authenticity is confirmed</li><li>Initial enclave measurements are validated</li><li>The hardware’s security capabilities are verified</li></ul><p>This creates a strong foundation rooted in the TEE hardware’s security guarantees.</p><h3>Post-Bootstrap Mesh Verification</h3><p>After initial verification:</p><ol><li>The TEE is registered in an accumulator system</li><li>Further attestations leverage the mesh network for verification</li><li>TEEs use direct peer-to-peer verification rather than going back to DCAP</li><li>The accumulator provides an efficient way to validate attestations without DCAP overhead</li></ol><h3>The Cryptographic Accumulator</h3><ul><li>A compact (32-byte) representation of all valid attestations</li><li>Efficient membership proofs without storing all attestations</li><li>Tamper-evident record of trusted TEEs</li><li>Optimized for sub-100ms verification times</li></ul><h3>Regional Mesh Architecture</h3><p>Divide the network into regional trust domains:</p><ul><li>Each region maintains local verification of attestations</li><li>Accumulator updates are shared efficiently within regions</li><li>Cross-region verification happens through federated coordinators — they are the ones that agree on measurement allow/disallow list</li><li>Regional autonomy is preserved while maintaining network-wide trust</li><li>Good for Regulated Environments while preserving decentralization</li></ul><h3>Benefits of this Approach</h3><p>By using DCAP only for initial bootstrapping, we gain multiple advantages:</p><ol><li><strong>Enhanced Security</strong>: We retain the hardware-rooted trust at onboarding while adding multiple layers of cryptographic verification.</li><li><strong>Superior Performance</strong>: Mesh-based verification enables sub-100ms communication between TEEs, significantly faster than centralized verification approaches.</li><li><strong>Increased Resilience</strong>: The system doesn’t depend on continuous DCAP availability, allowing operations to continue even during centralized service outages.</li><li><strong>True Decentralization</strong>: Eliminates the “centralization backdoor” present in other TEE-enabled blockchain projects.</li><li><strong>Scalability</strong>: As the network grows, verification becomes more distributed rather than more centralized, aligning with blockchain’s core principles.</li></ol><h3>Conclusion</h3><p>Decentralized TEE attestation systems represent an important cornerstone in making confidential computing a source of potential “trusted computing”. Until trust verification is decentralized and tamper-resistant, we cannot make such important claims about the hardware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2985cf0166b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Future of Wasm on Avalanche]]></title>
            <link>https://medium.com/@oraclethaacat/future-of-wasm-on-avalanche-9c223c2afa34?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c223c2afa34</guid>
            <category><![CDATA[avalanche-network]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 12:57:14 GMT</pubDate>
            <atom:updated>2025-02-07T12:57:14.121Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction:</strong></h3><p>Different blockchain platforms have taken distinct approaches to smart contract development patterns, each with their own tradeoffs.</p><p>Solidity contracts operate in a state-machine style with explicit state management and complex cross-contract interactions.</p><p>In Solidity, developers must manually handle state transitions, error checking, and cross-contract calls through low-level interfaces. This often results in complex code structures where state management is implicit and error handling is scattered throughout the contract using require() statements. Cross-contract interactions are particularly cumbersome, requiring manual encoding of function calls and explicit error checking.</p><p><em>contract Token {</em></p><p><em>mapping(address =&gt; uint256) balances;</em></p><p><em>function transfer(address to, uint256 amount) public {</em></p><p><em>require(balances[msg.sender] &gt;= amount, “Insufficient balance”);</em></p><p><em>balances[msg.sender] -= amount;</em></p><p><em>balances[to] += amount;</em></p><p><em>}</em></p><p><em>}</em></p><p>CosmWasm employs a synchronous execution model with explicit state management through its storage interface. This approach, while straightforward, requires developers to manually handle state access and transitions through explicit load and save operations. The programming model is reminiscent of traditional database operations, making it familiar but potentially verbose for complex operations.</p><p>NEAR takes a different approach with its promise-based asynchronous model. Cross-contract calls are handled through a system of promises and callbacks, similar to JavaScript’s pre-async/await era. While this enables asynchronous operations, the callback-based approach can lead to complex code structures when dealing with multiple contract interactions. Developers must carefully manage the flow of execution through separate callback functions, which can make the code harder to follow and maintain.</p><p>Solana’s Anchor framework opts for a synchronous instruction-based model with strong emphasis on account management. The programming model is direct and efficient, but requires explicit handling of account validation and state changes. While this provides fine-grained control over program execution, it can make complex operations more challenging to implement and reason about, as developers must manually manage state transitions and account relationships.</p><h3><strong>Meet Avalanche’s Web Assembly Smart Contracts built for the HyperSDK:</strong></h3><p>Introducing a modern async/await pattern that feels natural to developers familiar with contemporary programming practices. State operations and cross-smart contract calls are handled through straightforward async functions, making complex workflows easier to understand and maintain. The model provides clear error handling through Rust’s Result type and makes asynchronous operations feel synchronous while maintaining their non-blocking nature. This approach significantly reduces the cognitive overhead of writing smart contracts, especially when dealing with complex state management or cross-smart contract interactions.</p><p>The key innovation lies in the ability to combine the safety and performance benefits of Rust with an intuitive programming model that makes smart contract development more accessible. While other platforms require developers to work with platform-specific patterns or complex state management systems, this approach feels more like writing modern application code, potentially lowering the barrier to entry for blockchain development while maintaining the necessary guarantees for secure smart contract execution.</p><p>It leverages Rust’s async/await syntax to provide a more straightforward programming model. State access is explicit and asynchronous, error handling is comprehensive through Rust’s Result type, and cross-smart contract calls are type-safe and intuitive. The async flow makes complex operations more readable and maintainable:</p><p><em>#[public]</em></p><p><em>pub async fn transfer(ctx: &amp;mut Context, to: Address, amount: u64) -&gt; Result&lt;()&gt; {</em></p><p><em>let balance = ctx.get_balance(&amp;ctx.actor()).await?;</em></p><p><em>if balance &lt; amount {</em></p><p><em>return Err(“Insufficient balance”.into());</em></p><p><em>}</em></p><p><em>ctx.send(&amp;to, amount).await?;</em></p><p><em>Ok(())</em></p><p><em>}</em></p><p>This modern approach brings several key advantages: better error handling through Rust’s type system, cleaner async operations that make complex workflows more manageable, explicit state management that improves code clarity, and improved testing capabilities. Resource management is also more sophisticated, with automatic tracking of gas usage and memory allocation.</p><p>The result is a programming model that feels more natural to developers familiar with modern async programming patterns, while providing stronger safety guarantees and better maintainability than traditional smart contract platforms. While Solidity has the advantage of maturity and ecosystem support, this approach is a step forward in development ergonomics.</p><h3><strong>Platform Comparisons:</strong></h3><p>When it comes to applications, each platform has distinct advantages that make it suitable for different use cases. Solana excels in trading and DEX implementations due to its ultra-low latency execution and parallel transaction processing capabilities. Its account model and proven track record with major DEXs like Serum demonstrate its effectiveness in scenarios where microsecond-level settlement times are crucial.</p><p>Move, on the other hand, stands out for its strong asset safety guarantees and formal verification capabilities. Originally designed for the Diem/Libra blockchain, Move’s type system ensures that digital assets cannot be duplicated or lost, making it ideal for DeFi primitives where mathematical correctness and asset conservation are paramount. Its resource-oriented programming model provides robust safety guarantees that are particularly valuable in financial applications.</p><p>Wasm on Avalanche takes a different approach, focusing on complex financial products and multi-step workflows. Its async/await pattern and parallel processing capabilities make it particularly well-suited for sophisticated financial instruments like derivatives, where multiple data points need to be processed concurrently and complex calculations must be performed. The platform shines in scenarios requiring integration with external systems and where developer productivity is a priority.</p><p>For AI applications, the differences become even more pronounced. Solana’s account model, while excellent for financial transactions, poses limitations for AI workloads due to account size constraints and compute unit restrictions. This makes it better suited for simple inference tasks rather than complex ML operations. Move, designed primarily for financial use cases, faces similar limitations in its VM capabilities for AI workloads, though it excels at verifiable computation.</p><p>Avalanche’s wasm processing capabilities have the ability to handle large models in chunks making it potentially more suitable for complex AI workflows. It has the ability to process features in parallel and manage extensive ML pipelines, combined with flexible state management, providing advantages for AI applications that require sophisticated data processing and model management.</p><p>The choice between platforms ultimately depends on specific requirements. For financial applications requiring microsecond execution given to someone somewhere on the west coast, Solana remains the top choice. For those needing formal verification and asset safety, Move is a good bet. Avalanche’s wasm fills a niche for complex financial products and AI workflows where smarter, sophisticated processing patterns are needed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c223c2afa34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regional Transaction Processing: A Novel Approach to Blockchain Scalability and Geographic Fairness]]></title>
            <link>https://medium.com/@oraclethaacat/regional-transaction-processing-a-novel-approach-to-blockchain-scalability-and-geographic-fairness-8f2407a00e57?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2407a00e57</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[avalanche-network]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Tue, 17 Dec 2024 14:26:08 GMT</pubDate>
            <atom:updated>2024-12-19T06:25:54.909Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Abstract</strong></h3><p>Current blockchain architectures suffer from fundamental limitations by treating all transactions as global events requiring network-wide consensus. This approach ignores natural network topology, creates unnecessary latency, and complicates regulatory compliance across jurisdictions. Even newer solutions utilizing centralized sequencers, while improving performance, fail to address underlying geographic realities that impact transaction processing.</p><p>This post presents a novel architecture that leverages regional transaction processing using paired Trusted Execution Environments (TEEs) combined with Roughtime for secure ordering. By processing transactions within geographic regions when possible, and only coordinating cross-regionally when necessary, we achieve sub-second (0.1s) confirmation times for regional transactions while maintaining security guarantees.</p><p>Our approach naturally aligns with existing market structures and regulatory frameworks, while providing clear performance advantages over both traditional blockchain consensus and centralized sequencing models. We demonstrate how this architecture enables efficient smart contract deployment with explicit geographic considerations, providing developers and users with transparent expectations about performance and regulatory implications.</p><p>The results show that by acknowledging and designing for geographic reality rather than abstracting it away, we can create more efficient, fair, and compliant blockchain systems without sacrificing security or decentralization benefits.</p><h3>The Misinterpretation of McLuhan’s Global Village in Blockchain Architecture</h3><p>The blockchain industry’s drive toward globally replicated state and universal consensus reveals a fundamental misunderstanding of Marshall McLuhan’s concept of the “global village.” McLuhan’s 1962 work “The Gutenberg Galaxy,” which introduced this concept, has been frequently misinterpreted as a call for dissolving all boundaries in favour of a single unified global system. This misreading has significantly influenced blockchain architecture, leading to design choices that paradoxically work against the very efficiency and connection that McLuhan envisioned.</p><p>McLuhan’s global village was not about erasing boundaries but rather about understanding how electronic media would change our perception of distance and time. He emphasized that this new interconnectedness would actually heighten our awareness of differences and increase the importance of local identity, not diminish it. As he wrote in “Understanding Media” (1964), “The more the planet becomes a global village, the more vital become the values of cultural identity.”</p><p>This nuance has been lost in blockchain architecture, where the dominant paradigm has been to treat all transactions as global events requiring universal consensus. The assumption that a “trustless” system requires global replication of all state changes fundamentally misunderstands both McLuhan’s insights and the nature of human economic activity. Just as McLuhan’s global village didn’t mean the end of local communities but rather their transformation through interconnection, financial systems don’t need global consensus for every transaction to maintain security and trust.</p><p>The current blockchain approach is akin to demanding that every village council in McLuhan’s global village approve every local decision made anywhere in the world. This is not only inefficient but actively harmful to the organic functioning of local communities. McLuhan’s vision was about enabling immediate awareness of distant events when relevant, not about forcing every local action to become a global one.</p><p>Our regional architecture, with its emphasis on local processing and explicit cross-regional coordination, actually aligns more closely with McLuhan’s true vision. It acknowledges that while we live in an interconnected world, this interconnection should enhance rather than erase local autonomy and efficiency. The TEE pairs and regional validators create secure borders that enable rather than inhibit efficient global interaction — much like McLuhan’s vision of a world that is simultaneously more connected and more aware of its cultural and operational differences.</p><p>The misinterpretation of McLuhan’s work has contributed to a blockchain architecture that is fundamentally misaligned with both physical reality and human social organization. By correcting this misunderstanding, we can build systems that embrace both the local and the global, creating secure borders that enable rather than inhibit efficient cross-border interaction. This approach recognizes that true global efficiency comes not from erasing boundaries but from explicitly acknowledging and efficiently managing them.</p><h3>Impact on System Design</h3><p>This reframing has profound implications for blockchain architecture:</p><ol><li><strong>Local Autonomy</strong>: Just as McLuhan’s global village maintained local cultural identity, our architecture maintains regional autonomy while enabling global coordination.</li><li><strong>Explicit Boundaries</strong>: Rather than pretending borders don’t exist, we acknowledge and design for them, creating more efficient and practical systems.</li><li><strong>Selective Global Consensus</strong>: Not every transaction needs global awareness, just as not every local event in McLuhan’s global village needed global attention.</li><li><strong>Cultural Sensitivity</strong>: Different regions can maintain their own rules and practices while still participating in the global network, reflecting McLuhan’s vision of heightened cultural awareness in an interconnected world.</li></ol><p>This understanding leads to a more nuanced and effective approach to blockchain architecture, one that aligns with both McLuhan’s actual insights and the practical realities of global finance. By acknowledging that secure borders and local autonomy are essential features rather than bugs, we can build systems that truly serve the needs of a connected but diverse global economy.</p><h3><strong>Understanding Social Media</strong></h3><p>The social media landscape has fundamentally shaped how cryptocurrency values are formed and propagated, often in ways that directly contradict McLuhan’s insights about the global village. Social media platforms create artificial global consensus about value through viral memes, influencer promotion, and coordinated trading communities. This dynamic encourages the very homogenization that McLuhan warned against, as local understandings of value are subsumed by globally trending narratives.</p><p>The “number go up” technology narrative that dominates cryptocurrency discourse on social media represents exactly the kind of flattening of cultural complexity that McLuhan cautioned would occur in misappropriations of the global village concept. When value is determined primarily through global social media consensus, it becomes divorced from local economic realities and community needs. This creates a form of digital monoculture where the speculative value of tokens overshadows their utility within actual economic communities.</p><p>Twitter, Reddit, Discord, and other platforms have become the primary venues where cryptocurrency values are negotiated, but these spaces lack the rich context of local economic relationships that traditionally inform value creation. The result is a system where price movements are driven more by global sentiment cascades than by genuine economic activity or community needs.</p><p>The social media landscape’s emphasis on rapid, global information flow has also contributed to the industry’s focus on global consensus and universal state. When every price movement and protocol change is instantly discussed and debated globally, it creates pressure for systems to prioritize global consistency over local autonomy. This dynamic helps explain why blockchain architectures have tended toward global homogenization despite the clear benefits of regional processing.</p><h3>Local Economies and the Anthropology of Money</h3><p>David Graeber’s anthropological research, particularly in “Debt: The First 5,000 Years,” provides crucial insights into how local economies actually function — insights that much of the blockchain industry has overlooked in its rush toward global homogenization. Graeber’s work reveals that money and debt have historically operated primarily within local social contexts, with different communities developing varied and sophisticated systems for tracking obligations and value.</p><p>Graeber’s research demonstrates that local economic systems aren’t primitive precursors to a global economy, but rather sophisticated adaptations to specific social and cultural contexts. His documentation of various debt and credit systems across cultures reveals that economic systems work best when they align with local social relationships and community needs. This stands in stark contrast to the blockchain industry’s assumption that all economic activity should be globally standardized and validated.</p><p>The current push for a global blockchain economy, with its emphasis on universal protocols and global state consensus, threatens to dissolve these vital local economic relationships. By forcing all transactions into a single global framework, blockchain systems risk destroying the very flexibility and social embededness that has historically made money useful as a social technology.</p><p>This insight has profound implications for cryptocurrency design:</p><ol><li><strong>Local Economic Autonomy</strong>: Rather than forcing all economic activity into a global framework, blockchain systems should support and enhance local economic practices.</li><li><strong>Social Context</strong>: Money and value transfer systems need to be embedded in social relationships and local understanding, not abstracted away from them.</li><li><strong>Diverse Monetary Practices</strong>: Different communities may need different types of economic tools and practices, which a one-size-fits-all global system cannot provide.</li></ol><p>Our regional architecture aligns with Graeber’s insights by:</p><ul><li>Enabling local communities to maintain their own economic practices while still participating in broader networks</li><li>Supporting different rules and mechanisms for different regions</li><li>Preserving the social context of economic activity through regional processing</li><li>Allowing for diverse implementations of value transfer and obligation tracking</li></ul><p>The original promise of cryptocurrency was to democratize finance and enhance local economic autonomy. However, by ignoring the anthropological reality of how money and economic relationships actually function, many blockchain systems risk doing the opposite — creating a homogenized global system that erases local economic practices and relationships.</p><p>The push toward financial homogenization through blockchain technology risks creating a monoculture that is both less resilient and less adaptive than traditional diverse systems. By forcing all economic activity into a single global framework, we risk reducing system resilience through loss of diversity, destroying local economic knowledge and practices, creating new forms of economic colonialism, and undermining community autonomy and self-determination. Our regional architecture suggests an alternative path where technology enhances rather than replaces local economic practices. This approach recognizes that true financial innovation must work with, rather than against, the rich diversity of human economic relationships.</p><p>The preservation of cultural diversity in financial systems isn’t just about respecting tradition — it’s about maintaining the resilience and adaptability that comes from having multiple approaches to economic organization. Just as biodiversity makes natural ecosystems more resilient, diversity in financial practices and systems makes our global economy more robust.</p><p>Our regional approach, informed by both McLuhan’s proper understanding of global connection and Graeber’s insights into local economic function, provides a path toward blockchain systems that enhance rather than eliminate local economic autonomy.</p><h3><strong>Revisiting the Creation of Digital Markets</strong></h3><p>​​The evolution of digital markets has consistently demonstrated that geography matters. From the placement of stock exchange matching engines to the location of cloud data centers, physical distance continues to play a crucial role in system performance and market fairness. Despite this reality, blockchain architecture has largely ignored geographic considerations, instead pursuing a model where all transactions are treated as global events requiring worldwide consensus.</p><p>This global-first approach creates artificial barriers to blockchain adoption in traditional markets. While traditional finance has spent decades optimizing for geographic realities — placing matching engines near major trading hubs and creating co-location facilities for fair access — blockchain systems have moved in the opposite direction. The result is blockchain-based trading systems that cannot match the performance of traditional markets and struggle to integrate with existing regulatory frameworks.</p><p>The industry’s recent pivot toward centralized sequencers attempts to address performance issues but fails to acknowledge the underlying geographic reality. These solutions essentially recreate traditional centralized matching engines without the careful geographic considerations that make modern markets fair and efficient. A sequencer’s location creates natural advantages for nearby participants, yet this crucial factor is rarely discussed in system design or documentation.</p><p>The speed of light itself becomes a fundamental constraint when designing global systems. Light takes approximately 134ms to travel around the Earth’s equator — a physical limitation that cannot be overcome. This reality means that any truly global system must deal with minimum latencies in the hundreds of milliseconds, while regional systems can potentially operate in sub-millisecond timeframes. By ignoring these physical constraints, blockchain systems artificially constrain themselves to performance levels that make them unsuitable for many real-world applications.</p><p>This physical limitation has profound implications for system design. Traditional exchanges have long understood this — the New York Stock Exchange maintains its matching engines in Mahwah, New Jersey, while major European exchanges cluster their systems in Frankfurt. These locations aren’t chosen arbitrarily; they represent careful optimizations around the physics of information transmission. When traders compete at sub-millisecond timescales, the difference between being 50 miles or 500 miles from a matching engine becomes crucial.</p><p>The blockchain industry’s attempt to make every transaction global fundamentally misunderstands this reality. A trade between two parties in Singapore doesn’t need validation from nodes in Stockholm or São Paulo — the speed of light delay makes such validation not just inefficient but potentially harmful to market fairness. Regional transaction processing isn’t just an optimization; it’s an acknowledgment of fundamental physical laws that cannot be circumvented.</p><p>Current blockchain architectures fundamentally misunderstand these constraints. Systems like Ethereum and Bitcoin require global consensus for every transaction, effectively adding multiple round-trip times across the globe for confirmation. Even more “performant” systems like Solana, with its proof of history, or Sui with its parallel execution, still operate under the assumption that global validation is necessary for local transactions. High-performance chains claiming sub-second finality often achieve this through centralization while still failing to acknowledge geographic realities — they’re essentially creating a single global matching engine with all the associated physics-based fairness issues.</p><p>Even Layer 2 solutions and rollups, while improving throughput, don’t address the fundamental geographic reality. They still ultimately require global consensus and validation, merely batching transactions rather than acknowledging that many transactions don’t require global coordination at all. The industry’s focus on theoretical transaction throughput often misses the more fundamental issue of geographic latency and its implications for real-world applications.</p><p>The core issue is not centralization versus decentralization, but rather how to acknowledge and design for geographic reality while maintaining the security and transparency benefits of blockchain technology. Traditional finance has already solved many of these problems through careful consideration of geographic fairness, regulatory boundaries, and market structure. Rather than reinventing these wheels, blockchain architecture should learn from and build upon these proven solutions.</p><h3><strong>Architecting a Difference Making Objective</strong></h3><p>Recent blockchain architectures have turned to centralized sequencers as a solution to performance limitations. Systems like Hyperliquid demonstrate how a centralized sequencer can order transactions efficiently while maintaining security through separate consensus mechanisms for state validation. However, this approach, while improving raw performance, reveals several important insights about blockchain architecture that warrant deeper examination.</p><p>The key innovation of centralized sequencing is the separation of transaction ordering from state validation. By allowing a single entity to determine transaction order, these systems can achieve higher throughput and lower latency than traditional consensus-based ordering. This separation demonstrates that many of the performance limitations in blockchain systems stem not from state validation, but from the attempt to achieve distributed agreement on transaction ordering.</p><p>However, centralized sequencers introduce their own geographic realities that are often overlooked. The physical location of a sequencer creates natural advantages for nearby participants — a fact that becomes crucial at high-performance timescales. While this might seem like a limitation, it actually reveals an important truth: geographic advantages cannot be eliminated, they can only be acknowledged and managed fairly.</p><p>Projects using centralized sequencers often attempt to obscure these geographic realities, presenting their solutions as location-agnostic. This creates an artificial appearance of fairness while actually privileging participants based on their proximity to the sequencer. The industry’s reluctance to acknowledge these geographic advantages has led to systems that are less transparent and ultimately less fair than traditional financial infrastructure, which explicitly acknowledges and accounts for these realities.</p><p>The insights gained from studying both traditional blockchain consensus and centralized sequencing lead us to a fundamentally different architectural approach. Instead of fighting against geographic reality or pretending it doesn’t exist, we propose a system that makes geography a first-class consideration in its design.</p><p>The architecture uses paired Trusted Execution Environments (TEEs) within defined regions to process transactions locally. This provides hardware-level security guarantees while maintaining the performance characteristics of local processing. Roughtime provides secure transaction ordering without the overhead of traditional consensus mechanisms. The combination enables a system that can deliver sub-0.1 second confirmation times while maintaining strong security guarantees.</p><p>What makes this approach unique is how it maps to real-world market structures and regulatory frameworks. Smart contracts become geography-aware by default, deployed to specific regions with explicit rules for cross-regional interaction. This creates natural regulatory boundaries while still enabling global interoperability when needed. The system acknowledges that different types of transactions have different geographic requirements and optimizes accordingly.</p><p>The impact of this design extends beyond just performance metrics. It creates a framework where blockchain technology can naturally integrate with existing market structures rather than trying to replace them entirely. The result is a system that maintains the transparency and programmability benefits of blockchain while matching the performance and regulatory compatibility of traditional financial infrastructure.</p><p>The geographic-aware nature of our architecture creates natural alignment with regulatory frameworks that traditional blockchain systems struggle to achieve. Rather than forcing regulators to adapt to a borderless system, our architecture acknowledges that different jurisdictions have different rules and requirements.</p><p>Regional deployment of smart contracts creates clear lines of regulatory authority. When a contract is deployed to the Singapore region, it explicitly operates under Singapore’s regulatory framework. This clarity benefits both developers and regulators — developers know exactly which rules they need to comply with, while regulators have clear jurisdiction over contracts operating in their region.</p><p>This architectural approach also solves many of the compliance challenges that plague current blockchain systems. Know Your Customer (KYC) and Anti-Money Laundering (AML) requirements can be enforced at the regional level without impacting operations in other jurisdictions. Trading rules, circuit breakers, and other market protections can be implemented on a per-region basis, matching how traditional markets operate.</p><p>Cross-regional transactions become explicit rather than implicit, allowing for clear rules about when and how value moves between jurisdictions. This matches traditional finance’s approach to cross-border transactions, where different rules may apply to domestic versus international transfers. The system can enforce regulatory requirements for cross-border transactions while maintaining efficient local processing within regions.</p><p>For Regulators: The regional architecture provides clear visibility and control that was previously impossible in blockchain systems. Regulators can monitor activity within their jurisdiction without having to filter through global transaction data. They gain the ability to enforce local rules without requiring global consensus or cooperation from other jurisdictions.</p><p>The TEE-based approach provides auditable guarantees about code execution and transaction ordering. Regulators can verify that trading rules, market protections, and compliance requirements are being enforced correctly through hardware-level attestation. This creates accountability without sacrificing performance or requiring trust in a central operator.</p><p>For Developers: The clarity of regulatory boundaries simplifies compliance significantly. Instead of trying to satisfy conflicting requirements from multiple jurisdictions simultaneously, developers can target specific regions with their deployments. They can build with confidence knowing exactly which regulatory framework applies to their smart contracts.</p><p>This geographic awareness enables developers to:</p><ul><li>Deploy different versions of contracts for different regulatory environments</li><li>Implement region-specific features and protections</li><li>Provide clear performance guarantees based on geographic location</li><li>Build cross-regional functionality explicitly rather than implicitly</li></ul><p>The architecture also creates natural testing and deployment patterns. Developers can test in one region before expanding to others, matching how traditional financial products are typically rolled out. This reduces risk and complexity while maintaining the ability to scale globally when desired.</p><h3><strong>Trusted Execution Environments</strong></h3><p>Each region contains multiple pairs of TEEs that scale based on transaction volume requirements. The system dynamically adjusts the number of TEE pairs to meet throughput demands. A base configuration starts with multiple TEE pairs per region, with additional pairs added as load increases. These TEEs are intentionally distributed across different hardware providers within the region to ensure redundancy and failure isolation. Each transaction is processed by a pair of TEEs for verification, with load balancing ensuring efficient distribution across all available TEE pairs.</p><p>When a transaction is submitted to a regional endpoint, the system selects an available TEE pair for processing. The first TEE processes the transaction while the second TEE verifies the execution results. Transaction confirmation occurs only when both TEEs agree on the result and valid time verification has been received from the required quorum of time servers.</p><p>This architecture enables horizontal scaling of transaction processing while maintaining security guarantees through hardware attestation. The ability to add TEE pairs as needed allows regions to scale to meet any throughput requirement while keeping latency minimal.</p><p>As we scale to multiple TEE pairs within a region, each pair maintains its own secure state while participating in a broader network of pairs. Cross-pair communication occurs through verified channels, with each pair attesting to others. This creates a web of trust within the region, where pairs can verify the authenticity and integrity of others’ operations. The system maintains security even as pairs are added or removed, with careful key management and attestation procedures ensuring smooth scaling.</p><p>The combination of hardware attestation and paired execution creates a system that provides both high performance and strong security guarantees. Unlike traditional blockchain consensus, we don’t need to assume Byzantine behavior from all participants — instead, we rely on hardware security guarantees that can be cryptographically verified.</p><h3>Time Servers</h3><p>The timing of transactions becomes especially critical in our regional model because we’re operating at sub-0.1 second confirmations. At these speeds, even small time discrepancies can affect transaction ordering fairness. These timestamps aren’t just used for ordering — they become part of the verifiable proof of execution, allowing participants to demonstrate exactly when transactions occurred.</p><p>When transactions execute within a TEE pair, the time verification process happens concurrently with the execution. The TEEs collect signed timestamps from regional time servers, verify them against each other, and include them in the transaction record. This creates an auditable trail of exactly when transactions occurred, verified by multiple independent sources within the region.</p><p>For cross-regional transactions, these timestamps become even more important as they provide a verifiable way to order events across different regions. The system can demonstrate the precise timing of transactions in each region, creating clear and provable ordering even when dealing with geographic latency.</p><p>The time server verification process is deeply integrated into transaction execution. Each region maintains its own network of time servers, with each server regularly synchronizing with trusted time sources and other servers in the network. When a transaction begins execution, the TEE pair initiates concurrent requests to multiple time servers. Each request must be signed by the TEE, and each response must be signed by the time server, creating a cryptographic chain of evidence for when the transaction occurred.</p><p>The verification process is time-critical — responses must be received within a tight window to be considered valid. If a time server takes too long to respond or provides a timestamp significantly different from others, its response is discarded. This ensures that network latency or server issues don’t impact transaction ordering. The system requires responses from a minimum quorum of servers, typically more than two-thirds of the active servers in the region.</p><p>When transactions span multiple regions, the system must coordinate timestamps across geographic boundaries. Each region maintains its own time server network, but these networks have overlapping membership with neighbouring regions. This creates a web of time verification that can establish clear ordering even across regions. The system can prove not just when a transaction occurred within its local region, but also its relative timing compared to transactions in other regions.</p><p>Every transaction record includes a complete set of verified timestamps, creating an immutable record of when the transaction occurred. These timestamps include the signed responses from multiple time servers, the TEE signatures verifying when execution began and completed, and any cross-regional timing information. This timestamp bundle becomes part of the transaction’s permanent record, enabling future verification and audit of exactly when and in what order transactions occurred.</p><h3><strong>Validators</strong></h3><p>Each region requires a network of validators that verify the proofs generated by TEE pairs and time servers. These validators play a crucial role in maintaining system integrity without participating in transaction execution. They continuously verify that TEE pairs are operating correctly, time server responses are valid, and all transactions follow protocol rules.</p><p>Validators in each region receive proof bundles containing the TEE attestations, execution results, and timestamp verifications for each transaction. These proofs demonstrate that transactions were executed correctly within genuine TEEs, ordered fairly using verified timestamps, and followed all regional rules. Unlike traditional blockchain validators, they don’t need to re-execute transactions or participate in consensus — instead, they verify cryptographic proofs of correct execution.</p><p>The role of regional validators extends to monitoring the health and integrity of the TEE network. They track attestations from TEE pairs, ensuring that hardware security guarantees remain valid and detecting any anomalies that might indicate compromise. They also monitor the time server network, verifying that timestamps remain consistent and detecting any attempts at manipulation.</p><p>The verification process is straightforward: validators check that TEE attestations are valid, time server signatures are correct, and execution results match across TEE pairs. While this creates a continuous stream of work as new transactions are processed, it’s not computationally intensive compared to traditional blockchain validation that requires transaction execution.</p><p>Validators store verified proofs to maintain an auditable history of transactions in their region. This creates a distributed repository of proof bundles that any participant can query to verify past transactions. The storage requirements grow linearly with transaction volume, but the proofs themselves are compact since they contain only attestations, signatures, and results rather than full transaction execution data.</p><p>The regional approach fundamentally changes how state is stored and managed in blockchain systems. Instead of every node maintaining a copy of global state, state is naturally partitioned by region. This creates significant efficiencies in both storage and access patterns.</p><p>State in each region primarily reflects local activity. A smart contract deployed in Singapore primarily interacts with other contracts and users in that region, meaning its state can be stored and accessed efficiently within the region. Validators in each region only need to maintain state relevant to their regional operations, rather than tracking global state changes that don’t affect their local market.</p><p>This regional state partitioning creates natural sharding without the complexity of traditional blockchain sharding solutions. Storage requirements for validators scale with regional activity rather than global system growth. Access patterns become more efficient because most operations only need to reference local state, with cross-regional state access handled as special cases rather than the norm.</p><p>The result is a system where storage and computational requirements grow primarily with regional activity, not global system size. This makes the system more sustainable long-term and allows regions to scale independently based on their specific needs.</p><p>Regional state partitioning begins at smart contract deployment. When a contract is deployed to a region, its state becomes part of that region’s responsibility. The TEE pairs in the region maintain this state during execution, while regional validators verify state transitions. This creates clear ownership and responsibility for state management, with each region effectively managing its own state machine.</p><p>When contracts need to interact across regions, the system uses explicit state sharing mechanisms. Instead of maintaining copies of all state everywhere, regions only request and cache state from other regions when needed. This state sharing is verified through proofs from the originating region’s validators, ensuring security without requiring global state replication.</p><p>Cross-regional state access includes versioning and timing information to maintain consistency. When a contract in one region needs to access or modify state from another region, the system tracks these dependencies explicitly. This creates clear audit trails of cross-regional state modifications while maintaining the performance benefits of regional state partitioning.</p><p>The regional approach enables sophisticated storage optimization strategies. Validators can implement state pruning for inactive contracts while maintaining proofs of their final state. Historical state can be archived regionally rather than globally, with clear mechanisms for retrieval when needed. The system can also optimize state storage based on regional access patterns, keeping frequently accessed state readily available while archiving less-used state.</p><p>This regional state management creates a more sustainable blockchain architecture where storage requirements grow with actual usage rather than global system size. It enables regions to manage their resources efficiently while maintaining security and verifiability of all state transitions.</p><h3><strong>Challenging MEV Assumptions</strong></h3><p>MEV isn’t simply a result of time-based attack surfaces, but rather emerges from the attempt to impose global ordering on a system with inherent geographic latency. The solution isn’t to try to eliminate time differences (which is physically impossible) but to design systems that acknowledge and work with these fundamental realities.</p><p>Most MEV mitigation strategies today focus on trying to hide transaction information or democratize MEV extraction. These approaches don’t address the fundamental issue: the mismatch between the system’s architectural assumptions and physical reality. A more effective approach is to design systems that acknowledge and work with the actual physics of information propagation and processing.</p><p>The regional architecture prevents MEV and frontrunning through multiple complementary mechanisms that work together to eliminate the conditions these attacks require. This prevention occurs at both the regional and cross-regional levels.</p><p><strong>Regional Mempool Elimination</strong></p><p>The architecture eliminates traditional mempools within regions:</p><ul><li>Transactions go directly to TEE pairs</li><li>No public visibility of pending transactions</li><li>No window for observers to front-run observed transactions</li><li>Immediate processing eliminates waiting periods</li></ul><p><strong>State Isolation</strong></p><p>Regional state isolation prevents cross-regional MEV opportunities:</p><ul><li>State changes are processed within regional boundaries</li><li>No global state to create arbitrage opportunities</li><li>Clear separation of regional markets</li><li>Explicit cross-regional transaction handling</li></ul><p><strong>Cross-Regional Prevention</strong></p><p>Explicit cross-regional coordination when transactions need to cross regions:</p><ul><li>Intent is registered simultaneously in all involved regions</li><li>Coordinated execution with verifiable timestamps</li><li>No opportunity for insertion of transactions between regions</li><li>Clear audit trail of all cross-regional activity</li></ul><p><strong>Time Window Management</strong></p><p>The system manages time windows explicitly:</p><ul><li>Cross-regional transactions have defined execution windows</li><li>All regions must agree on timing</li><li>No ability to manipulate ordering across regions</li><li>Verifiable proofs of timing and execution</li></ul><p>This combination of mechanisms makes MEV and frontrunning mathematically impossible because:</p><ol><li>There is no visibility into pending transactions</li><li>No ability to reorder transactions once timestamped</li><li>No window between transaction submission and execution</li><li>No global mempool to observe</li><li>Hardware guarantees of execution order</li><li>Verifiable proofs of timing and ordering</li></ol><h3><strong>Conclusion</strong></h3><p>This architecture demonstrates that many of blockchain’s perceived limitations weren’t inherent to the technology, but rather arose from architectural choices that didn’t reflect real-world requirements. By rebuilding from first principles with an understanding of geographic reality, we create a system that can truly serve as infrastructure for global markets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2407a00e57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preventing Replays with TEEs: An Extended Analysis]]></title>
            <link>https://medium.com/@oraclethaacat/short-post-on-preventing-replays-with-tees-d9faa83ebba5?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9faa83ebba5</guid>
            <category><![CDATA[trusted-execution]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 10:13:29 GMT</pubDate>
            <atom:updated>2024-12-09T01:37:59.528Z</atom:updated>
            <content:encoded><![CDATA[<p>Time in different places is inequivalent and there is no way around this. My time and your time is probably a little bit different. On the internet we’re held together through a vast infrastructure known as the Network Time Protocol that corrects and updates our clocks without us thinking too much about it. But this time can be manipulated by any worthy time traveller. They are almost impossible to stop. Anyone who has the ability to use time to their advantage will use it — we can only design our security with this assumption. This is actually one of the core things that makes blockchain interesting — we take turns using our own time.</p><p>With TEE’s time is an even harder problem to solve. How do we get the correct time? From the operating system? Certainly not, that is outside of the trusted boundary in which we operate. Any host could easily manipulate that. Intel used to include a hardware based monotonic counter and a trusted time service but that was removed. It didn’t seem to be a good option anyways. This issue has been mostly put to the side or solved in other ways that require us to go outside the trust boundary of the enclave into other hardware.</p><h3>The Blockchain Solution and Its Limitations</h3><p>Without a valid local time source how do we ensure replays don’t happen? Well in the blockchain world we have timestamps and consensus, that could work!</p><p>Recent design approaches have built a light client in the enclave to ensure the TEE only executes the VM in a valid context corresponding to the actual blockchain state. Powerful, right? The blockchain tells the enclave what to do. But take a look at the downside of this — for something that takes microseconds to do — it takes seconds to be told to do it(the full network round trip requiring the light client to get the state of the blockchain before it knows what to execute). The best case of this approach would in fact be with Avalanche — the fastest consensus this side of the galaxy. But is this good enough?</p><p>A couple seconds may look good to us especially when we can hit 5 digit TPS but to centralized services and their profiters in the financial industry it’s hardly a hassle. Adopting something that’s slower and more expensive is not going to work for certain use cases. What needs to happen is we need to be able to opportunistically execute our transactions before they reach the entire network.</p><h3>The Centralization Problem</h3><p>We can look to Solana which does 0.4 second blocks. Visions of using VDF’s have come up time and again. Cut it. This level of centralization and privilege to be closer to the source is not a tradeoff anyone far enough to realise they’re being taken advantage of should be signing up for. Who would ever build their financial system atop a dependency that most of what happens — happens in another country whose actors get to arbitrage and market make/control everything with their souped up machines we could never afford. So we rebel: memecoins everywhere for everyone. ETF’s for crypto. Noone mentions the last attempts to build regulated markets for blockchain and why it was a complete failure. Some of it was politics, but what does it matter if it wasn’t even the right infrastructure? Too slow and too — coupled to consensus.</p><h3>A New Direction: Decentralized Time Sources</h3><p>Let’s go back a second to Solana. They created the “clock for blockchain” which infamously works without an external time source. There it is: what if we used an external (decentralized) time source? We’d have proof that you aren’t a time traveller. We could begin to use time as a primitive.</p><p>Conflicts could be resolved on the network by using only the earliest submitted “time proof”. How do we get this time proof? From multiple independent time server operators spread out over different regions. There’s this project called Roughtime originally built by Google and improved on by Cloudflare that allows you to take a bunch of different times from different servers and select the median one of them — this could potentially be improved even further. It used to be the average but then obviously when one server was off it affected everything — Ethereum’s testnet experienced the problem of this a few years ago. They were using it to check that their local clocks weren’t off by a good amount.</p><h3>Building a Hybrid Solution</h3><p>The possibilities get interesting from here. If TEE’s get the time they’ll know what order to put the transactions in, which means they can have their own local state secured by regional validators. This makes regional transactions very very fast and gives them the ability to be compliant! Blockchain’s become the source of global truth and TEE’s become the source of the local version of it. This is hitting on all the right gears of what we should be looking for.</p><h3>Conclusion</h3><p>The combination of TEEs, decentralized time sources, and blockchain technology opens up new possibilities for building secure, high-performance systems. While challenges remain, the path forward seems clear: we need to embrace hybrid solutions that combine the best aspects of different approaches rather than trying to force everything through a single mechanism.</p><p>The key is finding the right balance between local performance and global consistency, between security and speed, between decentralization and practical implementation. As we continue to develop these systems, we’ll likely see new patterns emerge that help us strike these balances more effectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9faa83ebba5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction]]></title>
            <link>https://medium.com/@oraclethaacat/many-have-discussed-the-limitations-of-enclave-adoption-related-to-blockchain-on-the-basis-of-43a43182741e?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/43a43182741e</guid>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Fri, 26 Apr 2024 10:12:56 GMT</pubDate>
            <atom:updated>2024-04-26T11:46:21.490Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Many have discussed the limitations of enclave adoption related to blockchain on the basis of putting security entirely in the hands of one hardware manufacturer. Secret Network and Oasis use the Teaclave and Fortanix development platforms respectively, which are strictly for SGX, limiting the ability of blockchains to advance significantly beyond this perception.[1] [2] We must thus consider the argument an appropriate reflection of the current state of blockchain’s utilising TEE’s — albeit undermining the successes in the field related to privacy — lacking account of the progress being made on different enclave development platforms that will in the future permit a diversity of TEE’s from different manufacturers to participate in building a blockchain. There are a few reasons to consider this model. First, large financial institutions are traditionally conservative with their hardware preferring to use what they are most comfortable with. In an open vendor design you don’t want to privilege one manufacturer over the other. Still, there are drawbacks to supporting multiple manufacturers most notably in the distress of resolving patch updates that can expose security vulnerabilities. Some have noted potential designs in the future that could reduce consensus to a ⅔ signing from a list of 3 manufacturers so that security critical exploits of one would not break the consensus. Although we are likely far off from achieving this it is worthwhile to consider this as a direction we could be headed.</p><p><strong>Our work thus far</strong></p><p>While the platform library developed by Edgeless Systems, Ego, was a primary consideration and one which we have gladly offered contribution and feedback we note it is currently limited to SGX, its goals differ in distinct ways, and the current attention of the team working on OpenEnclave which Ego depends on is not present to support other TEE’s. In this direction we used Ego, which in the LibOS category is comparatively slow but efficient at running one program at a time, with a second LibOS Occlum which allowed us to run multiple programs within the same address space. The lack of support documentation and difficulty in reporting and solving issues specifically in Occlum steered us away from extending our ideas in this direction. A next approach would have been to use Gramine(formerly Graphene) noting the work by Flashbots, a key motivator in the industry for exploring TEE’s and privacy technologies such as Multi-Party Computation and Homomorphic Encryption. [3] We note they have successfully been able to run Geth inside SGX by taking the approach of storing the entire chain in-memory, but see this expectation as too expensive a requirement to hold over a long term chain in production. They have since moved their approach to using SGX for the isolated portion of the block-builder to provide confidentiality thereby preventing MEV extraction.</p><p><strong>Future building blocks — Enarx</strong></p><p>In prior investigation we noted that the enclave development platform which gives the most hope of being able to implement a multi-TEE blockchain architecture is Enarx. [4] We have chosen to pursue this approach in earnest. The Enarx project is dedicated to ensuring confidentiality of workloads running on third-party computing services. Their primary goal is to protect existing code by leveraging the WASI host interface.</p><p>Enarx does its part to break apart from prior assumptions of dependency on one hardware manufacturer by creating an abstraction layer for Webassembly programs to run within so-called “Keeps”. Thus far they have been able to support Intel SGX and AMD SEV. It is thus CPU-architecture independent enabling the same application code to be deployed across multiple targets. Enarx works by verifying that the target host is paired to a Trusted Execution Environment instance that is properly attested to. After the attestation, Enarx encrypts the application and any necessary data and then delivers it to the host for execution within the Enarx keep. At no point before the execution is the host able to access or modify any of the application or its data linking to state. This will be up to the program being run from inside the enclave, inferring a strong protection and confidentiality to the program independent of the host operations that would compromise its integrity, in addition to the work that would expose it to attacks from other peers in a distributed network when trying to run a program in isolation.</p><p>In its current stage, the attestation is performed while relying on a trusted intermediary. An external attestation service is run on a centralised server pointing all quote verifications to a single entity up through the Public Key Infrastructure(PKI). This was run in practice by the company developing Enarx called Profian which is no longer in business. Regardless of the number of parties willing to equally adopt the business of running this service on their own server, we argue in the future that a centralised entity should not be managing such a service if the project is to grow its breadth into privacy related use cases which are determined to be essential to the goals of providing censorship resistance to millions of individuals. The current status of the implementation for this part of the project has been forked into Enarx itself and donated to the Linux Foundation.</p><p><strong>How it works — Enarx</strong></p><p>Steward, which is a confidential computing aware certificate authority, performs an attestation process that receives via an HTTP Post a CSR(Certificate Signed Request) with an extension, which encodes the evidence of the attestor within the CSR. An attestation report is directly generated by the hardware and includes a vendor CRL(Certificate Revocation List). Several features are checked such as if the attestation report signature matches the CPU public key and report body and if the CPU’s certificate is in the PKI chain from the Vendor CA to the intermediate cert and following the CPU certificate.</p><p>Drawbridge is a confidential-computing aware workload repository which releases to Enarx if it authenticates with a Steward-signed certificate. This workload data is stored as a merkle tree and uses OpenID Connect to handle authentication through a provider.</p><p>The two supported hardware vendors AMD and Intel have slight differences in the CSR to be checked. In AMD the CSR extension must ensure unused parts of the report are zeroed and the policy flags specific to AMD are configured in an appropriate way. The Intel extension has the additional checks that are performed when the TCB report is sent to ensure that the firmware is updated and that Intel advisories for the firmware are included. Additionally there is a signing certificate and signature for the TCB to guarantee it is part of Intel’s PKI chain, the update date for the TCB hasn’t passed, and the signature is valid. Steward checks that the FMPSC(Flexible Microcode Signing Platform Configuration) from the public key matches the TCB report. This uniquely identifies the platform and its security properties. Differences are noted that hashes required for AMD are SHA-384 while Intel requires SHA-256.</p><p>Enarx, Steward and Drawbridge work together to facilitate the attestation process. When an application is deployed the following steps occur: Enarx communicates with Drawbridge to obtain the URL of the Steward. Enarx calculates the hash of the intended workload and creates an empty enclave(Keep). It then asks the CPU for an attestation report including the workload hash. Enarx generates a private key, CSR, adds the attestation report to the CSR as an extension and sends the CSR to the Steward for validation. Steward validates the CSR and responds with a signed certificate. Enarx authenticates itself to Drawbridge which ensures the Enarx certificate is in Steward’s PKI chain, and if so, responds with the workload back to Enarx. Enarx ensures the workload’s hash matches the expected hash which allows the application to run using the Steward-signed certificate to communicate with third parties.</p><p>The benefits noted in this design are that CSR’s and Certificates don’t require special software on the client end. There is no new protocol required and no special data format needs to be processed by the relying party. No private information about the hardware is ever leaked. The drawbacks however to this implementation are noted that the Steward CA needs to be trusted for this to operate.</p><p>The current future of Enarx development has slowed but is alive and has several items on the roadmap. The trust model of using Certificate Authorities in the PKI chain is notably worsened in situations where financial assets can be put at stake. Trusted CA’s are attractive targets for cyber-criminals to be able to perform Man-In-The-Middle(MITM) attacks by substituting identities. A single point of failure can be used to open any encrypted communication. Pretty Good Privacy(PGP) is a potential solution to this problem albeit one that was thought up before blockchains existed.</p><p><strong>Building decentralized attestation</strong></p><p>To the same degree we need to be able to reconsider how we are building our attestation infrastructure for a decentralised network. In attestation the information serves as evidence that the security key’s manufacturer is indeed the creator of that key. It involves a digital signature generated using a private key securely stored, along with a certificate chain that traces back to the manufacturer. These certificate chains allow any server to verify the authenticity of the hardware security key.</p><p>We argue that a decentralised attestation service built atop an Avalanche subnet as a base is the more prudent option available to ensure the long term viability of the project in expectation that it will be useful to a blockchain architecture encompassing a diversity of TEE deployments. This option would divide the expectation of remotely attesting to the hardware to a peer-to-peer network wherein the attestation becomes the product to a distributed way to prove, verify and check that a self-signed certificate guarantees that the integrity of the enclave is valid. The confidence of using this service to verify integrity of infrastructure would depend on the network having an interest in performing that assessment. This gives us a basis for how network participation rewards should be determined and at what cost attestation can be determined.</p><p>In an ECDSA signed attestation using zero knowledge we only ever send the proof of the attestation to the server.</p><p>The signature process begins with the signer calculating a point on an elliptic curve using a random value. Next, the signer combines the x-coordinate of this point (denoted as x), with their private key and the hash of the message to compute a value. The resulting pair (x, value) constitutes the signature. To verify the signature the verifier uses x, the value, and the public key to recompute a point. Finally, the verifier checks whether the x-coordinate of this recomputed point matches the original x.</p><p>The challenge of the decentralised remote attestation approach comes to verifying the initial quote from the enclave during the signing operation without relying on a centralised trusted intermediary to compute this value. We rely on already remotely attested parties who have been able to add their certificate to the chain to act as verifiers.</p><p>To avoid having to hash the certificate in every signing interaction, and without relying on a Centralised Public Key Infrastructure(CPKI) to store the CRL we must adopt a version of Decentralised Public Key Infrastructure(DPKI). Earlier research published in collaboration with the IOHK foundation provides us with a strong technical foundation about how to achieve DPKI based on smart contracts. [5] What we first learn is that DPKI must be capable of implementing registration, revocation, certificate storage and retrieval. To achieve this the nodes participating in consensus of a blockchain must be able to keep a global consistent view of state for all certificates. The main barrier to achieving this construction is the size of the contract’s state, which can be minimised using a public-state cryptographic accumulator with constant size. This achieves the effect of not having to store the entire copy of the blockchain and then traverse its contents every time a certificate needs to be authenticated, updated or retrieved. Such a construction can be developed with a cryptographic library developed under arkworks. [6] Based on strong RSA assumptions in the Random Oracle Model, the accumulator is able to prove (non) membership (referred to as witnesses) having constant size and all operations have been performed efficiently only having access to the accumulator’s public key. An accumulator has the additional advantage of being useful on storage limited devices, opening up the door to the possibility of incorporating ARM TrustZone’s TEE which can be used on mobile devices in the future.</p><p>We note one of the major benefits to using a Decentralised Public Key Infrastructure based on smart contracts is that instead of having to do a hard fork we can simply revoke the certificate of a validator and ask them to issue a new attestation.</p><p><strong>HyperVM and additional thoughts</strong></p><p>At the level of the HyperVM the work on this will amount to a custom Authentication module that extends beyond authenticating signatures and takes account of certificate storage via a program run by all the validators and held in state to provide integrity and credentialing in a verifiable format.</p><p>The benefit of authenticating nodes running on integrity-protected hardware reflects in a massive payoff and a differential as needing far more nodes in consensus to achieve the same level of assurances through decentralisation without assumptions about the hardware.</p><p>When beginning a permissionless blockchain having only a small handful of validators the safety of consensus can resolve to malicious behaviour of a few. We aim to make the challenge more difficult by introducing hardware security primitives to prevent malicious behaviour. As such we can say that this approach is hybrid in that it gathers security imperatives from the consensus stake weight of its validators and hardware attestation primitives. Whether these hardware attestation primitives could be used exclusively in the future is a matter to be determined.</p><p>Putting extended trust in the nodes involved in the performance of consensus is to a point that we can expect safety to hold in the face of adversaries but liveness to be impacted if any number of nodes were to overcome the authentication we have put in place.</p><p>In its earliest formation block producers will be required to lock stake on Avalanche but as the participation and confidence of running on secure attested infrastructure grows this restriction would vitiate the growth of the decentralisation and as such stake should be reduced over time for more validators to be able to participate. The first chain using the subnet, Falcon, will be public and permissionless focusing primarily on the protection of WASM-based programs running in enclaves. It will rely on the additional security of the enclave to reduce the overhead of consensus. A second future chain will focus its attention on using the enclaves of the subnet to tackle privacy-related use cases.</p><p>We note that the challenges of side-channel risk associated with modelling a blockchain’s architecture around the security in conception of TEE’s to be a legitimate concern but reducible to liveness failures when there is an appropriate Sybil control mechanism.</p><ol><li><a href="https://teaclave.apache.org/">Apache Teaclave (incubating)</a></li><li><a href="https://www.fortanix.com/intel-sgx">Intel SGX | Fortanix</a></li><li><a href="https://writings.flashbots.net/geth-inside-sgx">Running Geth within SGX: Our Experience, Learnings and Code | Flashbots</a></li><li><a href="https://enarx.dev/">Enarx | Enarx</a></li><li><a href="https://eprint.iacr.org/2018/853.pdf">https://eprint.iacr.org/2018/853.pdf</a></li><li><a href="https://github.com/arkworks-rs/accumulation/">arkworks-rs/accumulation: Rust library for accumulation schemes (github.com)</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43a43182741e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning about the HyperSDK]]></title>
            <link>https://medium.com/@oraclethaacat/learning-about-the-hypersdk-65c1f8fbdd1f?source=rss-8a690a00c5bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/65c1f8fbdd1f</guid>
            <category><![CDATA[avalanche-network]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[opinion]]></category>
            <dc:creator><![CDATA[OracleThaCat]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 16:58:36 GMT</pubDate>
            <atom:updated>2024-03-11T16:58:36.756Z</atom:updated>
            <content:encoded><![CDATA[<p>Being “technically” better is a good starting point to any presentation of a blockchain building framework but without enough people being able to pinpoint, follow or understand what’s going on or come up with ideas of their own of what to do with it there will be a limit to the growth of the HyperSDK when trying to reach a larger suite of researchers, developers and business-technical individuals. This article will attempt to bridge the gap between what is too complicated to get into<strong> without digging into the details</strong> and<strong> </strong>what can be derived from <strong>one good read</strong>. Its future is to serve as an entrypoint into what is being built with the HyperSDK and targets a broader suite of interest groups doing their due diligence during the selection of an appropriate framework by making the case of why the HyperSDK should be considered.</p><p>Before setting off it’s an important point to mention that the more challenging aspects of building your blockchain have already been abstracted from your development via the SDK itself. As a developer what you’re given to deal with is a simple yet very powerful interface that gets exposed by the runtime which you can call at the beginning and end of every block. This allows you to get a timestamp and return the results of an execution contained therein, simultaneously being able to share the results with the underlying consensus engine(most examples will begin with snowman which is a light version of the Avalanche consensus).</p><p>Now to get you up to speed on the journey taken thus far. The HyperSDK development effort has followed a path of combining knowledge from various avalanchego data structures <a href="https://github.com/ava-labs/avalanchego">ava-labs/avalanchego: Go implementation of an Avalanche node. (github.com)</a> together with research into different proposed improvements to blockchain thought up across our public spaces and academia. Above all the framework is a research expedition with TPS as its experimental outlet for improvement into what possibilities we can look for beyond an EVM attached to a blockchain.(Although you can now technically use it with an EVM)</p><p>The block building logic of the HyperSDK throughout its various improvements attempting to optimise on throughput has been worked on by the core team at Ava Labs, and for good reason. The recently unveiled Vryx proposal <a href="https://vryx.xyz/">https://vryx.xyz</a> which employs a version of Decoupled State Machine Replication would be difficult to implement for one team let alone several. With a sharp decrease expected in the time required to submit, build and verify a block(at the cost of your consensus mechanism actually having to work for something) there’s a good incentive to wait for this to happen. Let’s consider this part of the development cycle centralised and open-source for good reason. There’s still a bunch you can do with a HyperVM as you wait.</p><p>In building a virtual machine there are going to be things you have to think about and others which have been solved and put behind the scenes for you to use. Three of those things which are solved that we wish to now discuss are Account Abstraction, a FIFO mempool and Multidimensional Fees. Put together these three features uncover a powerful UX improvement to traditional blockchain constructions and cover the focus of high throughput blockchains. The final of these to our knowledge has not been implemented in any other blockchain ecosystem, and might need to be moving forward. Keep reading to learn about how pricing the bandwidth resource utilisation of a blockchain separately from the cost of compute and storage reads/writes could help give better accurate pricing to use of the network in its entirety, while preventing hacks that overutilize the bandwidth resource without paying appropriately coupled transaction fees.</p><p><strong>Account Abstraction</strong></p><p>The goal of account abstraction is simple: to improve the UX of everyone who wants to interact with a blockchain through an interface — the goals of which can even hide the wallet experience from the user.</p><p>Many will be familiar with the UX challenges of Ethereum — the more recent attempts in trying to solve its issues coming with smart contract wallets <a href="https://eips.ethereum.org/EIPS/eip-4337">ERC-4337: Account Abstraction Using Alt Mempool (ethereum.org)</a> and proposed consensus layer protocol changes <a href="https://github.com/ethereum/RIPs/blob/master/RIPS/rip-7560.md">RIPs/RIPS/rip-7560.md at master · ethereum/RIPs (github.com)</a>. It’s fair to ask the question about how Ethereum would be situated today if native account abstraction had been considered one of its most important features at the outset. There’s some history about what was tried in the past which we won’t get into here. The success of Near doing Account Abstraction gives us a clue to the lack of achievement Ethereum built into its foundation. With over 13 million reported daily active accounts using the account experience on Near, it’s easy to see a world of 100 million that could have been reached across Ethereum extending to rollups and various other chain structures that use it as their source of security; Ethereum’s reach over different regions of the globe, what could have been if this were all originally native.</p><p>As developers we need to remember our cause being to drive end user value by guiding people towards simple interfaces that provide relaxed requirements over technical knowledge. The future of how we connect globally through a variety of blockchains is at play.</p><p>With all that in mind let’s quickly go over how Account Abstraction works with the HyperSDK.</p><p>You have an Auth module which allows you to write arbitrary authentication rules. An example Auth module would use an Ed25519 signature. This signature needs to be created, signed and sent to a validator by an Actor. The Actor that signs it doesn’t have to be the Actor that created the transaction. You could have another Actor called a Sponsor that would pay fees in an Action. The sponsor takes the action from the actor that signed the transaction and checks if the signature contains the appropriate Auth logic before submitting it for validation. That’s it! Read it again if you need to, it’ll make sense there’s no need to say more. You can look at the README later on(which is included at the end of this article) to see how to build with it.</p><p><strong>FIFO(First-In First-Out) Mempool</strong></p><p>Whether we like to admit it or not — MEV is a problem for blockchains. That you can regularly have transactions fail because in our terminology another actor has submitted a higher fee for the same transaction after you is a bit of a lukewarm proposition for anyone to deal with once they have that realisation.</p><p>A FIFO mempool doesn’t require markets on markets of “extractors”. Blockchains maximised for high throughput won’t have transactions sitting in the mempool for very long anyways. In the context of building with the HyperSDK, what your HyperVM will do is issue transactions on the fly that will be prioritised for inclusion in the time they have reached the node, not in the priority of the fee. This leaves open the door to various improvements that can be attained with hardware attempting to reach the node/mempool sooner but we won’t uncover that here. In this design there is no need for a sequencer(which still feels like a made up word owing to a system design that lets the free market decide which transactions should be included irrespective of the order in which transactions were received in broadcast). We want transactions to be ordered not sequenced to further our end goals of high-throughput and leaderless consensus via total order broadcast.</p><p><strong>Multidimensional Fees</strong></p><p>Last, we’ll talk about multidimensional fees. This is actually one of the topics better explained by the README attached to the codebase so we’ll just provide a brief description of it here.</p><p>Most blockchains use the one unit often referred to simply as “gas” which omits the true multi-dimensionality of the underlying resources that exist on the network.</p><p>EIP-1559 primarily focuses on a single dimension (base fee), but considers network congestion and adjusts fees dynamically. This is an incomplete solution and multidimensional fees are a better option. With multidimensional fees the network resources are independently metered for us to accurately determine the price of an action based on the use of its required resources.</p><p>The breakdown of resources that the HyperSDK accounts for are (bandwidth, compute, storage[read], storage[allocate], storage[write].</p><p>Why is this important? For two reasons. The first as mentioned in the README of the HyperSDK is tied to accurately pricing resources based on the amount of that resource that was used up in a block. A higher cost on bandwidth should lead to an increase in price on bandwidth, not an increase in price to CPU/storing data in state.</p><p>The second reason occurs to us in a moment when a proposed solution to ruin Ethereum L1 was developed at ETH Denver 2024. Little did we know there was a way to consume bandwidth resources without paying appropriate fees in a transaction and to be able to do it persistently. This is done by adjusting the gas fee you’re willing to pay by replacing the nonce with a new transaction that’s fee is calculated to be included in the mempool, but won’t be high enough to be accepted by a miner. This effectively allows these broadcasters to use the mempool for free. This is great for creating a censorship-resistant way to transmit data using Ethereum’s resilient node infrastructure, but not so great when the nodes of the network aren’t getting paid appropriately for the service and the cost adds to the latency of the network as a whole. Feel free to read more about this project here and all credit to the team that built it:</p><p><a href="https://devfolio.co/projects/patio-station-7ec1">https://devfolio.co/projects/patio-station-7ec1</a></p><p>Quick side note: this kind of situation is avoided in the HyperSDK because it is nonceless. We’ll leave that explanation to another article. So go hack Ethereum and then let us know how it goes!</p><p>We’ll conclude with a call to action.</p><p>If you believe in the way that traditional blockchains are designed then you’re missing the obvious progress the HyperSDK is making. Processing thousands of transactions per second in a distributed network of over 100 validators should be a benchmark which many new sorts of blockchains will wish to achieve. That kind of power and performance coupled to network resiliency would allow us to expand the scope of what our blockchain is doing before even considering reducing the validator set or giving ourselves over to the possibility of needing to deal with a separate proving or persistent storage network to offload a layer of our blockchain stack. It seems unreasonable to couple your future to another service without first exploring what can be achieved in your own sovereign domain. Having such layers exist on other subnets and secured by the same group of validators and accessible via a messaging schema(Avalanche Warp Messaging) however, makes for a different situation altogether and needs more thorough discussion.</p><p>Here’s the link to the github repository for you to keep on reading: <a href="https://github.com/ava-labs/hypersdk">ava-labs/hypersdk: Opinionated Framework for Building Hyper-Scalable Blockchains on Avalanche (github.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65c1f8fbdd1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>