Antonio
yanganto@github
antonio.yang@itering.io
2020/05/04
Joseph Barriento@Unsplash
Workshop
Undoubted Witness
Workshop
You just need to know followings to complete the workshop
You are still welcome to take a look at this work shop
if you are not ready to hack
Install docker, https://www.docker.com/
Download the docker image if already installed
docker pull yanganto/darwinia-workshopWorkshop
When you are waiting others, you may read pervious talk
Base On Substrate, Here is our Github
Verify
is
Witness + Check
How can a relayer be undoubted witness?
As flexible as possible
Offchain worker
Offchain
Worker
shadow.darwinia.network
{ "id":1, "jsonrpc":"2.0", "result": { "eth_header": "0xd4e5 ...scale_encoded_str", "proof": "0xd4e5...scale_encoded_str"} }
{ id: 1, jsonrpc: "2.0", method: "shadow_getEthHeaderWithProofByNumber", params: {"block_num": 1000, "transaction": false} }
Request:
Response:
FetchInterval = 3
fn offchain_worker
has key & can signed
Offchain
Worker
http://shadow.darwinia.network
Shadow
Service
Shadow
Service
Offchain
Worker
Workshop
See you in Darwinia Network !