Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.66 KB

README.md

File metadata and controls

61 lines (37 loc) · 1.66 KB

substrate-doc

Some additional visual documentation for substrate complementing https://docs.substrate.dev/docs/

to edit these diagrams with draw.io go to https://www.draw.io/?mode=github and open diagram. "save" commits back to github.

Transaction lifetime

What happens with a transaction when it is passed through RPC until it is included in a block?

Diagram

  • reviewed by @shawntabrizi / @bkchr / @thomusdrw

corresponding class diagram

Diagram

Architecture

Service

the following components will be instanciated by the substrate service

TODO: still a bit chaotic

Diagram

to learn more, study these lines

Full Client

Components of a full client Diagram

Light Client

TODO: light client components diagram

study core/client/src/light/fetcher.rs https://substrate.dev/rustdocs/v1.0/substrate_client/light/fetcher/trait.FetchChecker.html#tymethod.check_read_proof

Blockchain Data Model

Diagram

Consensus

Aura

Aura takes fixed turns to propose a new block.

only the authority who's turn it is proposes a new block

slot duration is a fixed number of seconds, to be evaluated on the autorities machines' time.

the slot proposer broadcasts his block, the others validate and import it and gossip about what they do.

Diagram

TODO: compress diagram area

SRML

All modules involved in Gav's coin flipping demo Diagram

TODO: simplify!