Foundational Concepts

Learn CryptoArena

CryptoArena is an experimental venture at the bleeding edge of defi & blockchain technology.

Our distribution blockchain is a Layer 2 solution built as a Parachain that shares its security and interoperability with Polkadot's Relay Chain (Layer 1) and the rest of L2s in the network.

This section is a handy reference guide for concepts and terminology relating to our the technologies involved in our solution and related to our ecosystem.

Sharded Shared Security

Parachains share in the security of the overall network and can interact without trust bonds much like smart contracts on Ethereum can interact without trust bonds — they share state and validation logic with the greater network.

Because Polkadot provides the security and validity guarantees, parachains are not subject to normal blockchain attack scenarios, like a 51% attack. Polkadot validators will reject invalid blocks, so a parachain only needs a single honest collator to submit blocks.

This model opens up a new area of crypto-economics that could include token-less parachains, proof-of-stake parachains that use either a native parachain token or dot tokens, or other collator selection mechanisms. Block author information is normally part of the block header’s digest and is easy to verify.

Glossary

Adaptive Quorum Biasing (AQB)

A means of specifying a passing threshold for a referendum based on voter turnout. Positive turnout bias means that as more votes are cast, the passing threshold decreases; i.e. a higher turnout positively increases the likelihood of a referendum passing. Negative turnout bias means that the passing threshold increases as more votes are cast. Negative turnout bias is also called "default carries" as, given an apathetic voting body, the referendum will pass by default. A neutral turnout bias specifies a simple majority passing threshold. AQB removes the need for strict quorums, which are arbitrary and create undesirable governance mechanics. AQB is implemented in the Democracy palletarrow-up-right, which provides the interfaces for a number of on-chain bodies (e.g. a Collectivearrow-up-right or any token holder) to call referenda with positive, neutral, or negative biases.

AfG

An internal codename for "Al's Finality Gadget", which is named after Alistair Stewartarrow-up-right who invented it. AfG is synonymous with GRANDPAarrow-up-right.

Aggregation

Used in the context of FRAMEarrow-up-right, "palletarrow-up-right aggregation" means combining analogous types from multiple runtime modules into a single type. This allows each module's analogous types to be represented. Currently there are six such data types:

  • Call - published functions that may be called with a set of arguments

  • Error - used to inform users why a function invocation (Call) failed

  • Event - pallets can emit events to make users aware of some state changes

  • Log - an extensible header item

  • Metadata - information that allows inspection of the above

  • Origin - specifies the source of a function invocation (Call)

Approval Voting

Voting system where voter can vote for as many candidates as desired. The candidate with highest overall amount of votes wins. Notably:

  • voting for all candidates is exactly equivalent to voting for none; and

  • it is possible to vote "against" a single candidate by voting for all other candidates.

Approval voting is used by the FRAME Elections Phragmen palletarrow-up-right that materializes as a governing Councilarrow-up-right on a number of Substrate-based chains.

Author

The nodearrow-up-right that is responsible for the creation of a blockarrow-up-right; block authors may be referred to as block "producers". In a proof-of-work chain these nodes are called "miners".

Authority

Authorities are the nodesarrow-up-right who, as a collective, manage consensusarrow-up-right on a blockchainarrow-up-right network. In a proof-of-stakearrow-up-right network (such as one using the Staking palletarrow-up-right from FRAMEarrow-up-right), authorities are determined through a token-weighted nomination/voting system.

The terms "authorities" and "validatorsarrow-up-right" may sometimes seem to refer the same thing. "Validators" is a broader term that can include other aspects of chain maintenance such as parachain validation. In general authorities are a (non-strict) subset of validators and many validators will be authorities.

Aura (aka "Authority Round")

Deterministic consensusarrow-up-right protocol where blockarrow-up-right production is limited to a rotating list of authoritiesarrow-up-right that take turns creating blocks; the majority of online authorities are assumed to be honest. Learn more by reading the official wiki articlearrow-up-right for the Aura consensus algorithm.

Aura + GRANDPA

A hybrid consensusarrow-up-right scheme where Auraarrow-up-right is used for block production and short-term probabilistic finalityarrow-up-right, with deterministic finalityarrow-up-right provided through GRANDPAarrow-up-right.

Blind Assignment of Blockchain Extension (BABE)

Block authoringarrow-up-right protocol similar to Auraarrow-up-right, however authoritiesarrow-up-right win slotsarrow-up-right based on a verifiable random function (VRF) as opposed to Aura's round-robin selection method. The winning authority can select a chain and submit a new block for it. Learn more about BABE by referring to its official Web3 Foundation research documentarrow-up-right.

Block

A single element of a blockchain that cryptographicallyarrow-up-right binds a set of extrinsicarrow-up-right data (the "body") to a "headerarrow-up-right". Blocks are arranged into a tree through parent pointers (implemented as a hash of the parent) and the tree is pruned into a list via a fork-choice rulearrow-up-right, and optional finality gadgetarrow-up-right.

Blockchain

A blockchain is a distributed network of computers that uses cryptographyarrow-up-right to allow a group of participants to trustlessly come to consensusarrow-up-right on the statearrow-up-right of a system as it evolves over time. The computers that compose the blockchain network are called nodesarrow-up-right.

Byzantine Fault Tolerance (BFT)

The ability of a distributed computer system to remain operational in the face of a proportion of defective nodesarrow-up-right or actorsarrow-up-right. "Byzantine" refers to the ultimate level of defectiveness, with such nodes assumed to be actively malicious and coordinating rather than merely offline or buggy. Typically, BFT systems remain functional with up to around one-third of Byzantine nodes.

Byzantine Failure

The loss of a system service due to a Byzantine Fault (i.e. components in the system fail and there is imperfect information about whether a component has failed) in systems that require consensus.

Practical Byzantine Fault Tolerance (pBFT)

An early approach to Byzantine fault tolerance. pBFT systems tolerate Byzantine behavior from up to one-third of participants. The communication overhead for such systems is O(n²), where n is the number of nodes (participants) in the system.

Cryptographic Primitives

A term that refers to concepts like signature schemes and hashing algorithms. Cryptographic primitives are essential to many aspects of the Substrate ecosystem:

Council

The term "Council" is used on a number of Substrate-based networks, such as Kusamaarrow-up-right and Polkadotarrow-up-right to refer to an instance of the Collective palletarrow-up-right that is used as a part of the network's FRAMEarrow-up-right-based runtimearrow-up-right. The Council primarily serves as a body to optimize and check/balance the more inclusive referendum system.

Database Backend

The means by which the statearrow-up-right of a blockchainarrow-up-right network is persisted between invocations of the blockchain nodearrow-up-right application. There is documentationarrow-up-right that explains the implementation of the database backend that is used by Substrate-based chains.

Dev Phrase

A mnemonic phrasearrow-up-right that is intentionally made public. All of the well-known development accountsarrow-up-right (Alice, Bob, Charlie, Dave, Ferdie, and Eve) are generated from the same dev phrase. The dev phrase is: bottom drive obey lake curtain smoke basket hold race lonely fit walk.

Many tools in the Substrate ecosystem, such as subkeyarrow-up-right, allow users to implicitly specify the dev phrase by only specifying a derivation path such as //Alice.

Digest

An extensible field of the block headerarrow-up-right that encodes information needed by several actors in a blockchain network including, light clientsarrow-up-right for chain synchronization, consensus engines for block verification, and the runtime itself in the case of pre-runtime digests.

Dispatch

A dispatch is the execution of a function with a pre-defined set of arguments. In the context of runtimearrow-up-right development with FRAMEarrow-up-right, this refers specifically to the "runtime dispatch" system, a means of taking some pure data (the type is known as Call by convention) and interpreting it in order to call a published function in a runtime module ("palletarrow-up-right") with some arguments. Such published functions take one additional parameter, known as originarrow-up-right, that allows the function to securely determine the provenance of its execution.

Equivocating

A type of Byzantinearrow-up-right (erroneous/malicious) behavior that involves backing multiple mutually-exclusive options within the consensusarrow-up-right mechanism.

Ethash

A function used by some proof-of-workarrow-up-right consensusarrow-up-right systems, notably that which is used by the Ethereum blockchain. It was developed by a team led by Tim Hughesarrow-up-right.

Events

A means of recording, for the benefit of the off-chain world, that some particular statearrow-up-right transition happened. Within the context of FRAMEarrow-up-right, events are one of a number of composable data types that each palletarrow-up-right may individually define. Events in FRAME are implemented as a set of transient storage items that are inspected immediately after a block has executed and reset during block-initialization.

Executor

A means of executing a function call in a given runtimearrow-up-right with a set of dependencies. There are two executorarrow-up-right implementations present in Substrate, Wasm and Native.

Native Executor

This executor uses a natively compiled runtime embedded in the nodearrow-up-right to execute calls. This is a performance optimization that up-to-date nodes can take advantage of.

Wasm Executor

This executor uses a Wasmarrow-up-right binary and a Wasm interpreter to execute calls. The binary is guaranteed to be up-to-date regardless of the version of the blockchain nodearrow-up-right since it is persisted in the statearrow-up-right of the Substrate-based chain.

Extrinsic

A piece of data that is bundled into a blockarrow-up-right in order to express something from the "external" (i.e. off-chain) world. There are, broadly speaking, two types of extrinsics: transactions, which may be signedarrow-up-right or unsignedarrow-up-right, and inherentsarrow-up-right, which are inserted by block authorsarrow-up-right.

Existential Deposit

Within the Balances palletarrow-up-right, this is the minimum balance an account may have. Accounts cannot be created with a balance less than this amount, and if an account's balance ever drops below this amount, the Balances pallet will use a FRAME System APIarrow-up-right to drop its references to that account. If all the references to an account are dropped, it may be reapedarrow-up-right.

Finality

A part of consensusarrow-up-right that deals with making a progression irreversible. If a blockarrow-up-right is "finalized", then any statearrow-up-right changes it encapsulates are irreversible without a hard fork and it is safe to effect any off-chain repercussions that depend on them. The consensus algorithm must guarantee that finalized blocks never need reverting.

GRANDPAarrow-up-right is the deterministic finalityarrow-up-right gadget that is used by the Polkadot Networkarrow-up-right.

Deterministic Finality

In these systems, all blocks are guaranteed to be the canonical block for that chain upon block inclusion. Deterministic finality is desirable in situations where the full chain is not available, such as in the case of light clientsarrow-up-right. GRANDPAarrow-up-right is a deterministic finality gadget.

Instant Finality

A non-probabilistic consensus protocol that gives a guarantee of finality immediately upon block production. These tend to be pBFTarrow-up-right-based and thus very expensive in terms of communication requirements.

Probabilistic Finality

In these systems, finality is expressed in terms of a probability, denoted by p, that a proposed block, denoted by B, will remain in the canonical chain; as more blocks are produced on top of B, p approaches 1.

Proof-of-Finality

A piece of data that can be used to prove that a particular block is finalized.

Fork

Forks occur when two blocksarrow-up-right have the same parent. Forks must be resolvedarrow-up-right so that only one canonical chain exists.

Flaming Fir

Flaming Fir is a Parityarrow-up-right-maintained Substrate-based blockchainarrow-up-right that exists for developing and testing the Substrate blockchain development framework.

FRAME

FRAMEarrow-up-right is Substrate's system for runtimearrow-up-right development. The name is an acronym for the "Framework for Runtime Aggregation of Modularized Entities". FRAME allows developers to create blockchain runtimes by composing modules, called "palletsarrow-up-right". Runtime developers interact with FRAME by way of a macroarrow-up-right language that makes it easy for developers to define custom pallets (e.g. decl_event!arrow-up-right, decl_error!arrow-up-right, decl_storage!arrow-up-right, decl_module!arrow-up-right and compose pallets (e.g. construct_runtime!arrow-up-right into a working runtime that can easily be used to power a Substrate-based blockchain. The convention used in the Substrate codebasearrow-up-right is to preface FRAME's core modules with frame_ and the optional pallets with pallet_*. For instance, the macros mentioned above are all defined in the frame_supportarrow-up-right module and all FRAME-based runtimes must include the frame_systemarrow-up-right module. Once the frame_support::construct_runtime macro has been used to create a runtime that includes the frame_system module, optional pallets such as the Balancesarrow-up-right pallet may be used to extend the runtimes core capabilities.

Full Client

A nodearrow-up-right that is able to synchronize a block chain in a maximally secure manner through execution (and thus verification) of all logic. Full clients stand in contrast to light clientsarrow-up-right.

Genesis Configuration

A mechanism for specifying the initial (genesis) statearrow-up-right of a blockchainarrow-up-right. Genesis configuration of Substrate-based chains is accomplished by way of a chain specificationarrow-up-right file, which makes it easy to use a single Substrate codebase to underpin multiple independently configured chains.

GRANDPA

A deterministic finalityarrow-up-right gadget for blockchainsarrow-up-right that is implemented in the Rustarrow-up-right programming language. The formal specificationarrow-up-right is maintained by the Web3 Foundationarrow-up-right

A structure that is used to aggregate pieces of (primarily cryptographicarrow-up-right) information that summarize a blockarrow-up-right. This information is used by light-clientsarrow-up-right to get a minimally-secure but very efficient synchronization of the chain.

Keystore

A subsystem in Substrate for managing keys for the purpose of producing new blocks.

Kusama

Kusamaarrow-up-right is a Substrate-based blockchainarrow-up-right that implements a design similar to the Polkadot Networkarrow-up-right. Kusama is a "canaryarrow-up-right" network and is referred to as Polkadot's "wild cousin"arrow-up-right. The differences between a canary network and a true test network are related to the expectations of permanence and stability; although Kusama is expected to be more stable than a true test network, like Westendarrow-up-right, it should not be expected to be as stable as an enterprise production network like Polkadotarrow-up-right. Unlike Westend, which is maintained by Parity Technologiesarrow-up-right, Kusama (like Polkadot) is controlled by its network participantsarrow-up-right. The level of stability offered by canary networks like Kusama is intended to encourage meaningful experimentation.

libp2p

A peer-to-peer networking stack that allows use of many transport mechanisms, including WebSockets (usable in a web browser). Substrate uses the Rust implementationarrow-up-right of the libp2p networking stack.

Light Client

A light client is a type of blockchain nodearrow-up-right that does not store the chain statearrow-up-right or produce (authorarrow-up-right) blocks. It encapsulates basic capabilities for verifying cryptographic primitivesarrow-up-right and exposes an RPC (remote procedure call)arrow-up-right server to allow blockchain users to interact with the blockchain network.

Macro

Macros are features of some programming languages, including Rustarrow-up-right, that allow developers to "write code that writes code". FRAMEarrow-up-right provides a number of macrosarrow-up-right that make it easy to compose a runtimearrow-up-right.

Metadata

Metadata is information about a system, such as a blockchainarrow-up-right, that makes it easier to interact with that system. Blockchain runtimesarrow-up-right that are built with FRAMEarrow-up-right expose lots of helpful metadataarrow-up-right.

Node

A node correlates to a running instance of a blockchain client; it is part of the peer-to-peerarrow-up-right network that allows blockchain participants to interact with one another. Substrate nodes can fill a number of roles in a blockchain network. For instance, validatorsarrow-up-right are the block-producing nodes that power the blockchain, while light-clientsarrow-up-right facilitate scalable interactions in resource-constrained environments like UIsarrow-up-right or embedded devices.

Nominated Proof-of-Stake (NPoS)

A means of determining a set of validatorsarrow-up-right (and thus authoritiesarrow-up-right) from a number of accounts willing to commit their stake to the proper (non-Byzantinearrow-up-right) functioning of one or more authoringarrow-up-right/validator nodes. The Polkadot protocol describes validator selection as a constraint optimization problem to eventually give a maximally staked set of validators each with a number of supporting nominators lending their stake. Slashing and rewards are done in a pro-rata manner.

Origin

A FRAMEarrow-up-right primitive that identifies the source of a dispatchedarrow-up-right function call into the runtimearrow-up-right. The FRAME System module defines three built-in originsarrow-up-right; palletarrow-up-right developers can easily define custom origins, such as those defined by the Collective palletarrow-up-right.

Parachain

A parachain is a blockchainarrow-up-right that derives shared infrastructure and security from a "relay chainarrow-up-right". You can learn more about parachains on the Polkadot Wikiarrow-up-right.

Pallet

A module that can be used to extend the capabilities of a FRAMEarrow-up-right-based runtimearrow-up-right. Pallets bundle domain-specific logic along with related runtime primitives like eventsarrow-up-right, and storage itemsarrow-up-right.

Polkadot Network

The Polkadot Networkarrow-up-right is a blockchainarrow-up-right that serves as the central hub of a heterogeneous blockchain network. It serves the role of "relay chainarrow-up-right" and supports the other chains (the "parachainsarrow-up-right") by providing shared infrastructure and security. The Polkadot Network is progressing through a multi-phase launch processarrow-up-right and does not currently support parachains.

Proof-of-Work

A consensusarrow-up-right mechanism that deters attacks by requiring work on the part of network participants. For instance, some proof-of-work systems require participants to use the Ethasharrow-up-right function to calculate a hash as a proof of completed work.

Relay Chain

The central hub in a heterogenous ("chain-of-chains") network. Relay chains are blockchainsarrow-up-right that provide shared infrastructure and security to the other blockchains in the network (the "parachainsarrow-up-right"). In addition to providing consensusarrow-up-right capabilities, relay chains also allow parachains to communicate and exchange digital assets without needing to trust one another.

Remote Procedure Call (RPC)

A mechanism for interacting with a computer program that allows developers to easily query the computer program or even invoke its logic with parameters they supply. Substrate nodes expose an RPC server on HTTP and WebSocket endpoints.

JSON-RPC

A standard way to call functions on a remote system by using a JSON protocol. For Substrate, this is implemented through the Parity JSON-RPCarrow-up-right crate.

Rhododendron

An instant finalityarrow-up-right, Byzantine fault tolerant (BFT)arrow-up-right consensusarrow-up-right algorithm. One of a number of adaptions of pBFTarrow-up-right for blockchains. Refer to its implementation on GitHubarrow-up-right.

Rococo

Rococo is the Polkadotarrow-up-right Network's parachainarrow-up-right test network. It is a Substrate-based blockchainarrow-up-right that is an evolving testbed for the capabilities of heterogeneous blockchain networks.

Runtime

The block execution logic of a blockchain, i.e. the state transition functionarrow-up-right. In Substrate, this is stored as a WebAssemblyarrow-up-right binary in the chain statearrow-up-right.

Slot

A fixed, equal interval of time used by consensus engines such as Auraarrow-up-right and BABEarrow-up-right. In each slot, a subset of authoritiesarrow-up-right is permitted (or obliged, depending on the engine) to authorarrow-up-right a blockarrow-up-right.

Stake-Weighted Voting

Democratic voting system that uses one-vote-per-token, rather than one-vote-per-head.

State

In a blockchainarrow-up-right, the state refers to the cryptographically secure data that persists between blocks and can be used to create new blocks as part of the state transition function. In Substrate-based blockchains, state is stored in a triearrow-up-right, a data structure that supports the efficient creation of incremental digests. This trie is exposed to the runtimearrow-up-right as a simple key/value maparrow-up-right where both keys and values can be arbitrary byte arrays.

State Transition Function (STF)

The logic of a blockchainarrow-up-right that determines how the state changes when a blockarrow-up-right is processed. In Substrate, this is effectively equivalent to the runtimearrow-up-right.

Storage Items

FRAMEarrow-up-right primitives that provide type-safe data persistence capabilities to the runtimearrow-up-right. Learn more about storage items in the Knowledge Base article for runtime storagearrow-up-right.

Substrate

A flexible framework for building modular, efficient, and upgradeable blockchainsarrow-up-right. Substrate is written in the Rustarrow-up-right programming language and is maintained by Parity Technologiesarrow-up-right.

Transaction

A type of extrinsicarrow-up-right that can be safely gossiped between nodesarrow-up-right on the network thanks to efficient verificationarrow-up-right through signaturesarrow-up-right or signed extensionsarrow-up-right.

Transaction Era

A definable period, expressed as a range of blockarrow-up-right numbers, where a transaction may be included in a block. Transaction eras are used to protect against transaction replay attacks in the event that an account is reaped and its (replay-protecting) nonce is reset to zero.

Transaction Pool

A collection of transactions that are not yet included in blocksarrow-up-right but have been determined to be valid.

Tagged Transaction Pool

A generic Substrate-based transaction pool implementation that allows the runtimearrow-up-right to specify whether a given transaction is valid, how it should be prioritized, and how it relates to other transactions in the pool in terms of dependency and mutual-exclusivity. It is designed to be easily extensible and general enough to express both the UTXOarrow-up-right and account-based transaction models.

Trie (Patricia Merkle Tree)

An data structure that is used to represent sets of items where:

  • a cryptographic digest of the dataset is needed; and/or

  • it is cheap to recompute the digest with incremental changes to the dataset even when it is very large; and/or

  • a concise proof that the dataset contains some item/pair (or lacks it) is needed.

Validator

A semi-trusted (or untrusted but well-incentivized) actor that helps maintain a blockchainarrow-up-right network. In Substrate, validators broadly correspond to the authoritiesarrow-up-right running the consensusarrow-up-right system. In Polkadotarrow-up-right, validators also manage other duties such as guaranteeing data availability and validating parachainarrow-up-right candidate blocksarrow-up-right.

WebAssembly (Wasm)

An execution architecture that allows for the efficient, platform-neutral expression of deterministic, machine-executable logic. Wasmarrow-up-right is easily compiled from the Rustarrow-up-right programming language and is used by Substrate-based chains to provide portable runtimesarrow-up-right that can be included as part of the chain's statearrow-up-right.

Westend

Westend is a Parityarrow-up-right-maintained, Substrate-based blockchainarrow-up-right that serves as the test network for the Polkadot Networkarrow-up-right.

Crypto Assets Categorieschevron-rightConsensus Protocolschevron-right

Last updated

Was this helpful?