Giter VIP home page Giter VIP logo

avalanche-docs's Introduction

description
Build on Avalanche. Build without limits. Developers who build on Avalanche can easily create powerful, reliable, and secure applications.

Developer Documentation

Avalanche

Avalanche is an open-source platform for launching decentralized applications and enterprise blockchain deployments in one interoperable, highly scalable ecosystem. Avalanche is the first decentralized smart contracts platform built for the scale of global finance, with near-instant transaction finality. Ethereum developers can quickly build on Avalanche as Solidity works out-of-the-box.

A key difference between Avalanche and other decentralized networks is the consensus protocol. Over time, people have come to a false understanding that blockchains have to be slow and not scalable. The Avalanche protocol employs a novel approach to consensus to achieve its strong safety guarantees, quick finality, and high-throughput without compromising decentralization.

AVAX

AVAX is the native token of Avalanche. It’s a hard-capped, scarce asset that is used to pay for fees, secure the platform through staking, and provide a basic unit of account between the multiple subnets created on Avalanche. 1 nAVAX is equal to 0.000000001 AVAX.

Avalanche Consensus Protocol

Consensus Comparison

Protocols in the Avalanche family operate through repeated sub-sampled voting. When a validator is determining whether a transaction should be accepted or rejected, it asks a small, random subset of validators whether they think the transaction should be accepted or rejected. If the queried validator thinks the transaction is invalid, has already rejected the transaction, or prefers a conflicting transaction, it replies that it thinks the transaction should be rejected. Otherwise, it replies that it thinks the transaction should be accepted.

If a sufficiently large portion (alpha $$α$$) of the validators sampled reply that they think the transaction should be accepted, the validator prefers to accept the transaction. That is, when it is queried about the transaction in the future, it will reply that it thinks the transaction should be accepted. Similarly, the validator will prefer to reject the transaction if a sufficiently large portion of the validators replies that they think the transaction should be rejected.

The validator repeats this sampling process until alpha of the validators queried reply the same way (accept or reject) for beta $$β$$ consecutive rounds.

In the common case when a transaction has no conflicts, finalization happens very quickly. When conflicts exist, honest validators quickly cluster around conflicting transactions, entering a positive feedback loop until all correct validators prefer that transaction. This leads to the acceptance of non-conflicting transactions and the rejection of conflicting transactions.

How Avalanche Consensus Works

It is guaranteed (with high probability based on system parameters) that if any honest validator accepts or rejects a transaction, all honest validators will accept or reject that transaction.

Learn more technical components of the Avalanche consensus protocol by reading the whitepaper.

Snowman Consensus Protocol

Snowman is a chain-optimized consensus protocol–high-throughput, totally-ordered, and great for smart contracts. Snowman is powered by the Avalanche consensus protocol. Both P-Chain and C-Chain implement the Snowman consensus protocol.

Key Features

Speed

Uses a novel consensus protocol, developed by a team of Cornell computer scientists, and is able to permanently confirm transactions in under 1 second.

Scalability

Capable of 4,500 transactions per second–an order of magnitude greater than existing blockchains.

Security

Ensures stronger security guarantees well-above the 51% standard of other networks.

Flexibility

Easily create custom blockchains and decentralized apps that contain almost any arbitrary logic.

Sustainability

Uses energy-efficient proof-of-stake consensus algorithm rather than proof-of-work.

Smart Contract Support

Supports the creation of Solidity smart contracts and your favorite Ethereum tools like Remix, Metamask, Truffle, and more.

Private and Public Blockchains

Create your own public or private blockchains.

Designed for Finance

Native support for easily creating and trading digital smart assets with complex, custom rulesets.

avalanche-docs's People

Contributors

0fatih avatar aaronbuchwald avatar ahnor44 avatar akly avatar avalanche-rocky avatar benber86 avatar ceyonur avatar cgcardona avatar d-rek avatar danlaine avatar devilla avatar gitbook-bot avatar jayksofue avatar jeffanthony avatar jpop32 avatar kanatliemre avatar manthanhd avatar mdr223 avatar michaelkaplan13 avatar misterticot avatar nick-am avatar obbap1 avatar pawelnguyen avatar plondon avatar quasarati avatar salwao2 avatar sanghren avatar sosaucily avatar tendon avatar yulin-dong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.