diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/Light-clients-and-unstoppable-apps-slides.md b/syllabus/7-Polkadot/13-Light-clients-and-unstoppable-apps-slides.md
similarity index 92%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/Light-clients-and-unstoppable-apps-slides.md
rename to syllabus/7-Polkadot/13-Light-clients-and-unstoppable-apps-slides.md
index d7382d4f6..af6ecec4e 100644
--- a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/Light-clients-and-unstoppable-apps-slides.md
+++ b/syllabus/7-Polkadot/13-Light-clients-and-unstoppable-apps-slides.md
@@ -21,7 +21,7 @@ duration: 45+ mins
#### Traditional Web 2
-
+
Notes:
@@ -35,7 +35,7 @@ While I won't be roasting anyone, it's essential to recognize that platforms lik
#### The Web 3 vision
-
+
Notes:
@@ -52,7 +52,7 @@ Now, show of hands:
#### The Web 3 reality
-
+
Notes:
@@ -76,7 +76,7 @@ I will pause there for a few seconds to let this sink in;
---v
-
+
Notes:
@@ -136,7 +136,7 @@ Any combination of “validator”, “bootnode” and “JSON-RPC node” is po
#### The reality of blockchains today
-
+
Notes:
@@ -160,7 +160,7 @@ Ask: WHAT ARE THE WAYS to connect to the network from a UI like (e.g. polkadotJS
-
+
@@ -182,7 +182,7 @@ node client
-
+
@@ -233,14 +233,14 @@ In the 3rd party case the user relies on the 3rd party node to connect to, in or
## The reality of blockchains we want
-
+
---v
# The solution
-
+
# Light Clients
@@ -249,7 +249,7 @@ In the 3rd party case the user relies on the 3rd party node to connect to, in or
---
-
+
---v
@@ -261,7 +261,7 @@ In the 3rd party case the user relies on the 3rd party node to connect to, in or
...but lighter!
-
+
Notes:
@@ -444,7 +444,7 @@ Our Substrate nodes can produce what is called a Chain spec which Smoldot then u
### what/who to trust
-
+
Notes:
@@ -553,10 +553,12 @@ Notes: is transport agnostic in that the concepts can be used within the same pr
---v
-## Legacy vs New JSON RPC API
+## Legacy vs New JSON-RPC API
stateDiagram-v2
+ NEW_JSON_RPC_API: New JSON-RPC API
+ LEGACY_JSON_RPC_API: Legacy JSON-RPC API
Substrate --> NEW_JSON_RPC_API
Substrate --> LEGACY_JSON_RPC_API
Smoldot --> NEW_JSON_RPC_API
@@ -589,13 +591,16 @@ New JSON RPC Spec: https://paritytech.github.io/json-rpc-interface-spec/
stateDiagram-v2
+ NEW_JSON_RPC_API: New JSON-RPC API
+ LEGACY_JSON_RPC_API: Legacy JSON-RPC API
+ classDef badBadEvent fill:#343434,color:#ccc,font-weight:bold,stroke-width:2px,stroke:#999
Substrate --> NEW_JSON_RPC_API
- Substrate --> LEGACY_JSON_RPC_API: X
+ Substrate --> LEGACY_JSON_RPC_API:::badBadEvent : X
Smoldot --> NEW_JSON_RPC_API
- Smoldot --> LEGACY_JSON_RPC_API: X
+ Smoldot --> LEGACY_JSON_RPC_API:::badBadEvent : X
-- When the Legacy JSON RPC API will be removed?
+- When the Legacy JSON-RPC API will be removed?
- “as soon as realistically possible”
Notes:
@@ -604,7 +609,7 @@ New JSON RPC Spec: https://paritytech.github.io/json-rpc-interface-spec/
---
-
+
Notes:
@@ -638,7 +643,7 @@ Let's proceed with a more focused and detailed exploration of light clients in t
-
+
Pierre Krieger - tomaka
@@ -668,21 +673,6 @@ Powered by Pierre Krieger (a.k.a. tomaka)
---v
-### Smoldot - On a diagram
-
-
-
- stateDiagram-v2
- dAPP --> Smoldot
- Smoldot --> LEGACY_JSON_RPC_API
- Smoldot --> NEW_JSON_RPC_API
-
-
-
-Notes: meaning you need to send/receive and act with the JSONs
-
----v
-
## Substrate Connect
uses smoldot as an implementation detail
@@ -690,7 +680,7 @@ Notes: meaning you need to send/receive and act with the JSONs
javascript/typescript
-
+
@@ -709,27 +699,6 @@ Notes:
---v
-### Substrate Connect - On a diagram
-
-
-
- stateDiagram-v2
- dApp --> substrate_connect
- state substrate_connect {
- [*] --> sc_provider
- [*] --> Providers
- sc_provider --> PJS_API
- Providers --> Pokadot_API
- PJS_API --> Smoldot
- Pokadot_API --> Smoldot
- Smoldot --> LEGACY_JSON_RPC_API
- Smoldot --> NEW_JSON_RPC_API
- }
-
-
-
----v
-
## The (NEW) Polkadot API
(aka PAPI)
@@ -745,7 +714,7 @@ Notes:
Powered by:
-
+
https://github.com/polkadot-api/polkadot-api/
@@ -753,27 +722,6 @@ Notes:
---v
-### Polkadot API - On a diagram
-
-
- stateDiagram-v2
- dApp --> Polkadot_API
- state Polkadot_API {
- [*] --> node_js_worker
- [*] --> ws_provider_web
- [*] --> ws_provider_node
- [*] --> smoldot_worker
- [*] --> smoldot
- node_js_worker --> NEW_JSON_RPC_API
- ws_provider_web --> NEW_JSON_RPC_API
- ws_provider_node --> NEW_JSON_RPC_API
- smoldot_worker --> NEW_JSON_RPC_API
- smoldot --> NEW_JSON_RPC_API
- }
-
-
----v
-
## SubXT
(Submit EXtrinsics)
@@ -804,18 +752,91 @@ Notes:
---v
+### Smoldot - On a diagram
+
+
+
+ stateDiagram-v2
+ NEW_JSON_RPC_API: New JSON-RPC API
+ LEGACY_JSON_RPC_API: Legacy JSON-RPC API
+ dAPP --> Smoldot
+ Smoldot --> LEGACY_JSON_RPC_API
+ Smoldot --> NEW_JSON_RPC_API
+
+
+
+Notes: meaning you need to send/receive and act with the JSONs
+
+---v
+
+### Substrate Connect - On a diagram
+
+
+
+ stateDiagram-v2
+ NEW_JSON_RPC_API: New JSON-RPC API
+ LEGACY_JSON_RPC_API: Legacy JSON-RPC API
+ substrate_connect: Substrate Connect
+ sc_provider: SC Provider
+ PJS_API: PolkadotJS API
+ Pokadot_API: Polkadot API
+ dApp --> substrate_connect
+ state substrate_connect {
+ [*] --> sc_provider
+ [*] --> Providers
+ sc_provider --> PJS_API
+ Providers --> Pokadot_API
+ PJS_API --> Smoldot
+ Pokadot_API --> Smoldot
+ Smoldot --> LEGACY_JSON_RPC_API
+ Smoldot --> NEW_JSON_RPC_API
+ }
+
+
+---v
+
+### Polkadot API - On a diagram
+
+
+ stateDiagram-v2
+ NEW_JSON_RPC_API: New JSON-RPC API
+ ws_provider_web: WS Provider/Web
+ node_js_worker: NodeJS/Worker
+ ws_provider_node: WS Provider/Node
+ smoldot_worker: Smoldot/Worker
+ dApp --> Polkadot_API
+ state Polkadot_API {
+ [*] --> node_js_worker
+ [*] --> ws_provider_web
+ [*] --> ws_provider_node
+ [*] --> smoldot_worker
+ [*] --> Smoldot
+ node_js_worker --> NEW_JSON_RPC_API
+ ws_provider_web --> NEW_JSON_RPC_API
+ ws_provider_node --> NEW_JSON_RPC_API
+ smoldot_worker --> NEW_JSON_RPC_API
+ Smoldot --> NEW_JSON_RPC_API
+ }
+
+
+---v
+
### SubXT - On a diagram
stateDiagram-v2
+ NEW_JSON_RPC_API: New JSON-RPC API
+ LEGACY_JSON_RPC_API: Legacy JSON-RPC API
+ Backend_RPC_Legacy_methods: Backend RPC Legacy methods
+ Backend_RPC_New_methods: Backend RPC New methods
dAPP --> SubXT
state SubXT {
[*] --> Backend_RPC_Legacy_methods
[*] --> Backend_RPC_New_methods
- Backend_RPC_Legacy_methods --> smoldot
- Backend_RPC_New_methods --> smoldot
- smoldot --> LEGACY_JSON_RPC_API
- smoldot --> NEW_JSON_RPC_API
+ Backend_RPC_Legacy_methods --> Smoldot
+ Backend_RPC_New_methods --> Smoldot
+ Smoldot --> LEGACY_JSON_RPC_API
+ Smoldot --> NEW_JSON_RPC_API
}
@@ -895,19 +916,18 @@ The dApp (UI) connects to a node client that the user has installed on their mac
..........
-.... too long ? ? ....
+.....................
.................................
-.........................................
+........ maybe get some water ? .........
-........... maybe get some water ?...........
-
...................................................
+
+.............................................................
-
done
-
+
---v
@@ -949,7 +969,7 @@ The uApp (UI) connects to an _integrated_ Light Client
---v
-## Substrate Connect (PolakdotJS)
+## Substrate Connect (PolkadotJS)
```javascript[0|1-2|4-7|9-11]
import { ScProvider } from "@polkadot/rpc-provider/substrate-connect";
@@ -1111,7 +1131,7 @@ console.log('Please visit: https://cloudflare-ipfs.com/ipns/dotapps.io/?rpc=ws%3
# Some demo maybe…?
-
+
---
@@ -1177,37 +1197,43 @@ Stay with me - the next is the last but not the easiest part:
## Unstoppable apps?
-
-
-Using smoldot with PAPI
+
+Using smoldot with PAPI:
+https://polkadot-blockchain-academy.github.io/onchain-id-verification/
---v
## Unstoppable apps?
-
+
Using Substrate Connect with smoldot and PAPI
+localhost:3001
+
---v
## Unstoppable apps?
-
+
Using Substrate connect with smoldot and PolkadotJS API
+https://ipfs.io/ipns/dotapps.io/
+
+Notes: IPFS: (InterPlanetary File System) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.
---v
## Unstoppable apps
-
+
- Decentralized Blockchain
- Light Clients
- Interplanetary File System (IPFS)
+
-##
+---
# Questions?
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/Lc3.png b/syllabus/7-Polkadot/assets/light-clients/Lc3.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/Lc3.png
rename to syllabus/7-Polkadot/assets/light-clients/Lc3.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/PUBLICLY-ACCESSIBLE-NODE.png b/syllabus/7-Polkadot/assets/light-clients/PUBLICLY-ACCESSIBLE-NODE.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/PUBLICLY-ACCESSIBLE-NODE.png
rename to syllabus/7-Polkadot/assets/light-clients/PUBLICLY-ACCESSIBLE-NODE.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/USER-CONTROLLED-NODE.png b/syllabus/7-Polkadot/assets/light-clients/USER-CONTROLLED-NODE.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/USER-CONTROLLED-NODE.png
rename to syllabus/7-Polkadot/assets/light-clients/USER-CONTROLLED-NODE.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/apps.png b/syllabus/7-Polkadot/assets/light-clients/apps.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/apps.png
rename to syllabus/7-Polkadot/assets/light-clients/apps.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/code.jpg b/syllabus/7-Polkadot/assets/light-clients/code.jpg
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/code.jpg
rename to syllabus/7-Polkadot/assets/light-clients/code.jpg
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/decentralized.png b/syllabus/7-Polkadot/assets/light-clients/decentralized.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/decentralized.png
rename to syllabus/7-Polkadot/assets/light-clients/decentralized.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/example-tabs.png b/syllabus/7-Polkadot/assets/light-clients/example-tabs.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/example-tabs.png
rename to syllabus/7-Polkadot/assets/light-clients/example-tabs.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/feather.png b/syllabus/7-Polkadot/assets/light-clients/feather.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/feather.png
rename to syllabus/7-Polkadot/assets/light-clients/feather.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/know-who-to-trust.png b/syllabus/7-Polkadot/assets/light-clients/know-who-to-trust.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/know-who-to-trust.png
rename to syllabus/7-Polkadot/assets/light-clients/know-who-to-trust.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/learn-student.gif b/syllabus/7-Polkadot/assets/light-clients/learn-student.gif
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/learn-student.gif
rename to syllabus/7-Polkadot/assets/light-clients/learn-student.gif
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/local.png b/syllabus/7-Polkadot/assets/light-clients/local.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/local.png
rename to syllabus/7-Polkadot/assets/light-clients/local.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/on-chain-id.png b/syllabus/7-Polkadot/assets/light-clients/on-chain-id.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/on-chain-id.png
rename to syllabus/7-Polkadot/assets/light-clients/on-chain-id.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/papi_josep.png b/syllabus/7-Polkadot/assets/light-clients/papi_josep.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/papi_josep.png
rename to syllabus/7-Polkadot/assets/light-clients/papi_josep.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/papi_victor.png b/syllabus/7-Polkadot/assets/light-clients/papi_victor.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/papi_victor.png
rename to syllabus/7-Polkadot/assets/light-clients/papi_victor.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/parity_logo.png b/syllabus/7-Polkadot/assets/light-clients/parity_logo.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/parity_logo.png
rename to syllabus/7-Polkadot/assets/light-clients/parity_logo.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/poweredBy.png b/syllabus/7-Polkadot/assets/light-clients/poweredBy.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/poweredBy.png
rename to syllabus/7-Polkadot/assets/light-clients/poweredBy.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/reality_bc_today.png b/syllabus/7-Polkadot/assets/light-clients/reality_bc_today.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/reality_bc_today.png
rename to syllabus/7-Polkadot/assets/light-clients/reality_bc_today.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/reality_we_want.png b/syllabus/7-Polkadot/assets/light-clients/reality_we_want.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/reality_we_want.png
rename to syllabus/7-Polkadot/assets/light-clients/reality_we_want.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/really.png b/syllabus/7-Polkadot/assets/light-clients/really.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/really.png
rename to syllabus/7-Polkadot/assets/light-clients/really.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/solution.jpeg b/syllabus/7-Polkadot/assets/light-clients/solution.jpeg
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/solution.jpeg
rename to syllabus/7-Polkadot/assets/light-clients/solution.jpeg
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/web2.png b/syllabus/7-Polkadot/assets/light-clients/web2.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/web2.png
rename to syllabus/7-Polkadot/assets/light-clients/web2.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/web3.png b/syllabus/7-Polkadot/assets/light-clients/web3.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/web3.png
rename to syllabus/7-Polkadot/assets/light-clients/web3.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/web3_reality.png b/syllabus/7-Polkadot/assets/light-clients/web3_reality.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/web3_reality.png
rename to syllabus/7-Polkadot/assets/light-clients/web3_reality.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/wellknown.png b/syllabus/7-Polkadot/assets/light-clients/wellknown.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/wellknown.png
rename to syllabus/7-Polkadot/assets/light-clients/wellknown.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/whatislightclient.png b/syllabus/7-Polkadot/assets/light-clients/whatislightclient.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/whatislightclient.png
rename to syllabus/7-Polkadot/assets/light-clients/whatislightclient.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/where_to_1.png b/syllabus/7-Polkadot/assets/light-clients/where_to_1.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/where_to_1.png
rename to syllabus/7-Polkadot/assets/light-clients/where_to_1.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/where_to_2.png b/syllabus/7-Polkadot/assets/light-clients/where_to_2.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/where_to_2.png
rename to syllabus/7-Polkadot/assets/light-clients/where_to_2.png
diff --git a/syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/words.png b/syllabus/7-Polkadot/assets/light-clients/words.png
similarity index 100%
rename from syllabus/7-Polkadot/Light-clients-and-unstoppable-apps/img/words.png
rename to syllabus/7-Polkadot/assets/light-clients/words.png