Abstract
Substrate is a modular framework that enables you to create purpose-built blockchains by composing custom or pre-built components.
Overview
Substrate takes a modular approach to blockchain development and defines a rich set of primitives that allows developers to make use of powerful, familiar programming idioms.
How to Use
- Substrate Node: create a new blockchain with a JSON file.
- Substrate FRAME: create a new blockchain with customized login.
- Substrate core: build your own blockchain from scratch.
Architecture
Key Concepts
In Substrate-based chains, the runtime is referred to as the “state transition function”.
Core Primitives
- Hash
- DigestItem
- Digest
- Extrinsic. Data out of chain, that could be recognized by the chain.
- Header. Similar to BTC blockchain header.
- Block
- BlockNumber. Similar to BTC height. 32bit.
FRAME Primitives
- Call.
- Origin. Where the call came from
- Index.
- Hashing. The hashing system used, e.g. Blake2
- AccountId. User account identifier.
- Event
- Version