Sourdough Interchain Auth Protocol

website·Indexed 29 days ago

https://sourdough-docs.vercel.app

A permissionless interoperability protocol for cross-chain communication, bridging Cosmos and EVM ecosystems. It provides tools for cross-chain authorization, token transfers via IBC, and EVM Smart Account design, supported by the InterchainAuthJS JavaScript/TypeScript library.

Tokens
8.2K
Snippets
28
Records
53
Agent score
75%

What's inside Sourdough

  1. Overview of EVM Smart Account Architecture

    An EVM Smart Account design relies on four primary contract components to manage cross-chain identity and execution:

    1. Axelar Gateway: Connects different blockchains for secure token transfers and communication.
    2. EntryPoint Contract: An Axelar Executable contract that validates inputs and controls the execution flow for smart accounts.
    3. Account Factory Contract: A contract invoked once during the initial setup to deploy a new smart account.
    4. Account Contract: The user-owned contract that validates execution payloads using the user's signature and public key from the source chain.
  2. Overview of Sourdough Interchain Auth Protocol

    Sourdough is a permissionless interoperability protocol designed for cross-chain authentication. It enables one blockchain to authenticate another by utilizing the sender chain's signature, removing the requirement for centralized intermediaries or explicit permissions. This allows users to control accounts across different chains seamlessly. The protocol is modular, allowing developers to configure and customize cross-chain authorization models for use cases such as parallel processing, cross-chain authorization, and single-chain gas fees. It is specifically designed for integration into Cosmos blockchains.
  3. Manage EVM smart accounts from Cosmos chains

    Sourdough's Smart Accounts module allows a sender chain (Cosmos) to create and control smart accounts on EVM-compatible chains, bridging the gap between Cosmos and EVM ecosystems for advanced cross-chain communication and execution.
  4. Understand the Sourdough cross-chain authorization structure

    Cross-chain authorization allows users to define validation and execution rules for messages using a textual instruction format. The authorization structure consists of three primary components:

    1. Enable Flag: A boolean indicating whether a specific message index should bypass authorization.
    2. Immutable Object: Used for data that remains constant and can be validated directly (e.g., whitelisted addresses, fixed transfer limits). Each immutable rule requires:
      • The data type of the variable to be validated.
      • The operator function to execute.
      • The expected value for comparison.
    3. Mutable Object: Used for data that changes over time and requires computation for validation (e.g., cumulative totals, daily transfer limits). Each mutable rule requires:
      • The data type of the variable to be validated.
      • The operator function to execute.
      • The expected value for comparison.
  5. Understand the benefits of IBC cross-chain token transfers

    Inter-Blockchain Communication (IBC) enables trustless, decentralized asset transfers between independent blockchain networks. This eliminates the need for centralized exchanges or custodial bridges, providing three primary advantages:

    1. Cost Reduction: Removes high intermediary fees.
    2. Improved Security: Assets are moved trustlessly without relying on centralized entities.
    3. Faster Transactions: Direct chain-to-chain communication reduces delays.

    This interoperability allows for multi-chain asset utilization (e.g., moving staking rewards or stablecoins), cross-chain DeFi interactions, multi-chain governance participation, and easier portfolio diversification.

  6. Understand the core concept of a Blockchain

    A blockchain is a decentralized, digital ledger that records transactions across multiple computers. Its primary characteristic is immutability: once information is added to the blockchain, it cannot be altered retroactively, which ensures security and trust across the network.
  7. Execute cross-chain instructions with Interchain Auth Call

    The Interchain Auth Call module enables a sender chain to execute secure authorization instructions on a destination chain. Key capabilities include:

    • Defining permissions on the destination chain.
    • Executing account actions securely.
    • Automating tasks such as recurring transfers or scheduled swaps.
  8. Manage EVM accounts using Sourdough Smart Accounts

    Sourdough enables multi-chain EVM account control by creating Smart Account contracts bonded to a user's source chain account. By leveraging Axelar General Message Passing (GMP), users can control accounts across multiple EVM chains and only need to prepare gas on the source chain, eliminating the need to manage gas individually on every destination blockchain.
  9. Implement cross-chain authorization rules with Sourdough

    Sourdough allows users to define structured authorization instructions that act as blueprints for executing transactions across different chains. This system enables granular control over transaction governance, security, and compliance by setting both immutable conditions (such as whitelisted addresses or static limits) and mutable parameters (such as daily caps or cumulative totals).
  10. Implement cross-chain transactions using the IBC Protocol

    The Inter-Blockchain Communication (IBC) protocol enables secure interactions between accounts on different blockchains by delivering packets containing messages. To ensure integrity, the source chain generates a cryptographic proof (such as a Merkle root) that encapsulates the transaction and its message. This proof and the packet are transmitted via relayers to the destination chain. The destination chain then validates the packet by comparing the cryptographic proof against the state of the source chain to ensure the data was not altered during transit.
  11. Understand how Sourdough uses Axelar GMP for Cosmos and EVM interaction

    Sourdough utilizes Axelar’s General Message Passing (GMP) protocol to allow Cosmos chains to interact with EVM contracts. This enables the management of 'Smart Accounts' that can control EVM-based contract accounts linked to a Cosmos chain account. The system leverages IBC (Inter-Blockchain Communication) transfers to the Axelar network to facilitate these cross-ecosystem interactions without centralized intermediaries.