Tendermint DevX
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Consensus Mechanisms ## **Consensus Mechanisms in Cosmos and Blockchain Development** In the realm of blockchain technology, consensus mechanisms play a pivotal role in ensuring the integrity and security of the distributed ledger. These mechanisms govern how nodes on a blockchain reach agreement on the state of the network, preventing double-spending and ensuring the immutability of transactions. The Cosmos ecosystem, a set of interoperable blockchains, utilizes Tendermint BFT as its default consensus mechanism. Tendermint BFT is a Byzantine Fault Tolerance (BFT) algorithm that employs a delegated proof of stake (DPoS) system. This means that validators, who are responsible for proposing and validating blocks, are selected by token holders. Tendermint BFT's strengths include its high transaction throughput, low latency, and resistance to attacks like double-spending. However, it also has some limitations, such as its reliance on a group of validators, which can pose centralization concerns. In the broader blockchain landscape, a variety of consensus mechanisms are employed, each with its own trade-offs. These mechanisms can be broadly classified into three main categories: **Proof of Work (PoW)**: PoW requires miners to expend computational resources, typically in the form of electricity, to solve cryptographic puzzles. The first miner to solve the puzzle is rewarded with the right to propose the next block. PoW is secure and decentralized, but it also suffers from high energy consumption and scalability issues. **Proof of Stake (PoS)**: PoS instead relies on validators staking a certain amount of cryptocurrency. The likelihood of a validator being selected to propose a block is proportional to their stake. PoS is more energy efficient than PoW and can achieve higher transaction throughput. However, it can be vulnerable to attacks like stake grinding and nothing-at-stake. **Hybrid Mechanisms**: Hybrid consensus mechanisms combine elements of different consensus families. For instance, delegated proof of stake (DPoS) is a combination of PoS and PoA, where token holders delegate their voting power to validators. DPoS offers the security of PoS while also addressing the centralization concerns of PoA. The choice of consensus mechanism for a blockchain application depends on various factors, including the network's security requirements, scalability needs, and energy consumption restrictions. ## **Potential Candidates for Blockchain Developers** For blockchain developers, choosing the right consensus mechanism is crucial for designing a secure, scalable, and efficient application. Here are some potential candidates for different scenarios: **High-throughput applications**: For applications that require handling a large number of transactions, a consensus mechanism like Tendermint BFT might be suitable. These mechanisms prioritize throughput and efficiency, making them well-suited for applications like decentralized exchanges (DEXs) and decentralized finance (DeFi) platforms. **Permissioned and private networks**: For blockchain applications that require a more controlled environment, consensus mechanisms like Federated Byzantine Agreement (FBA) or Hyperledger Fabric might be preferred. These mechanisms are designed for permissioned networks and offer enhanced security and privacy. **Energy-efficient applications**: For applications that prioritize environmental sustainability, consensus mechanisms like Proof of Stake (PoS) or delegated Proof of Stake (DPoS) are better options. These mechanisms use less energy than PoW, making them more environmentally friendly. **Scalability-oriented applications**: For blockchains that aim to handle a growing number of users and transactions, consensus mechanisms like Proof of Stake 2.0 (PoS2) or Proof of History (PoH) might be suitable. These mechanisms address scalability limitations and can support higher transaction volumes. By carefully considering the specific requirements and goals of their application, blockchain developers can choose the appropriate consensus mechanism to ensure the success of their project. - **Delegated Proof of Stake (DPoS)**: DPoS is a hybrid consensus mechanism that combines elements of PoS and PoA. In DPoS, validators are elected by token holders, who can delegate their voting power to other validators. This allows for a more democratic and decentralized approach to consensus. Delegated Proof of Stake is the default consensus mechanism that you get using Ignite. [GitHub](https://github.com/cometbft/cometbft) - **Proof of Authority (PoA)**: PoA is a consensus mechanism that relies on a set of known and trusted validators. These validators are responsible for proposing and validating blocks. PoA is often used in permissioned blockchains, where the identity of validators is known and verified. Strangelove works on a Proof of Authority Mechanism that could be applied to your Ignite Blockchain. [GitHub](https://github.com/strangelove-ventures/poa) - **Proof of Engagement (PoE)**: Proof of Engagement is a consensus mechanism that incentivizes users to engage with the blockchain network by participating in tasks and activities such as verifying transactions, providing node services, or staking tokens. Validators are selected based on their engagement level, ensuring that the network is secured and maintained by active participants Confio works on the Proof of Engagement implementation and can potentially be used for your blockchain. [GitHub](https://github.com/confio/ProofOfEngagement) - **Proof of Capacity (PoC)**: PoC is a consensus mechanism that measures the amount of storage space that a node has available. Miners in PoC compete to store the most data, which makes it more difficult for them to attack the network. PoC is often used in hardware-based blockchains, where nodes have specialized hardware for storing data. - **Federated Byzantine Agreement (FBA)**: FBA is a consensus mechanism that is specifically designed for permissioned blockchains. In FBA, nodes are divided into federations, and each federation is responsible for proposing and validating blocks. FBA is often used in enterprise blockchains, where the need for security and privacy is paramount. - **Proof of Burn (PoB)**: PoB is a consensus mechanism where miners reach a consensus by burning coins, which means permanently removing them from circulation. This process validates transactions, and the more coins a miner burns, the higher their chances of adding a block to the network. PoB reduces energy consumption compared to PoW and doesn't require miners to stake coins like in PoS. It involves transferring coins to an unspendable address, thus demonstrating the miner's commitment to the network. - **Proof of History (PoH)**: PoH is a consensus mechanism that provides a way to cryptographically verify the passage of time between events and transactions. By using a verifiable delay function, PoH creates a historical record that proves that an event has occurred at a specific moment in time. This allows for the network to efficiently and securely validate the order and time of transactions without requiring extensive computational resources. PoH is particularly known for its use in the Solana blockchain, where it enhances scalability and transaction throughput. **When choosing a consensus mechanism for your Blockchain with Ignite CLI, consider the following factors:** - **Security:** The consensus mechanism should be secure against attacks such as double-spending and Sybil attacks. - **Decentralization:** The consensus mechanism should be decentralized, meaning that no single entity should have too much power over the network. - **Scalability:** The consensus mechanism should be able to handle a large number of transactions without compromising security or decentralization. - **Performance:** The consensus mechanism should be efficient and performant, so that blocks can be finalized quickly. If you have a small number of validators, you may want to consider using a consensus mechanism that is specifically designed for this scenario. PoA, DPoS, and FBA are all good options for small-scale blockchains. Here is a table summarizing the pros and cons of each consensus mechanism: | Consensus Mechanism | Pros | Cons | | --- | --- | --- | | Proof of Burn (PoB) | Secure, decentralized, and scalable | Requires a large amount of stake to participate | | Proof of History (PoH) | Secure, decentralized, and high-throughput | Requires a trusted timestamp oracle | | Proof of Authority (PoA) | Secure, easy to implement, and efficient | Requires a small set of trusted validators | | Delegated Proof of Stake (DPoS) | More decentralized than PoA, and more scalable | Requires token holders to delegate their voting power | | Proof of Capacity (PoC) | Secure against Sybil attacks, and scalable | Requires specialized hardware for storage | | Federated Byzantine Agreement (FBA) | Highly secure and private | Requires a trusted federation of nodes | Proof of Engagement (PoE) | Increased security and decentralization, scalability, efficiency | Requires a mechanism to measure and evaluate engagement

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully