paritytech / polkadot-sdk-docs

_THE_ Polkadot SDK Tutorial
19 stars 0 forks source link

Dedicated SCALE mini website #5

Open kianenigma opened 1 year ago

kianenigma commented 1 year ago

A simple github hosted website on the https://github.com/paritytech/parity-scale-codec website itself, explaining the low level format with nice examples: https://docs.substrate.io/reference/scale-codec/.

Inspired by https://borsh.io/.

Github has a lot of templates to build this kind of stuff easily.

We strongly think that the best way to teach SCALE is by lots of examples, so be creative on how you represent them, and find some very nice slides loaded with examples here: https://github.com/Polkadot-Blockchain-Academy/pba-content/blob/main/syllabus/4-Substrate/4.x-SCALE_Slides.md

This is in the spirit of documenting more things externally and reducing the workload on this repo.

kianenigma commented 1 year ago

Is there any intermediate outcome of this that we can have a look at?

wentelteefje commented 1 year ago

Website (still WIP): https://wentelteefje.github.io/parity-scale-codec-page/docs/intro/ SCALE spec: https://spec.polkadot.network/id-cryptography-encoding#sect-scale-codec

Here is a list of questions and findings that have emerged so far:

kianenigma commented 1 year ago

Are float encodings relevant at all (they are never mentioned anywhere)?

Floating point numbers are not really used in Substrate based chains due to their undeterministic nature. There should be some content about this in the old docs.

Should we include some Substrate-specific example use cases for types such as AccountID etc?

Yes, although account id is usually a raw 32 byte which encodes to itself.

kianenigma commented 1 year ago

Once done, this should also go into #6.