Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header structures #15

Open
10 of 11 tasks
asmie opened this issue Jul 25, 2024 · 1 comment
Open
10 of 11 tasks

Header structures #15

asmie opened this issue Jul 25, 2024 · 1 comment
Assignees

Comments

@asmie
Copy link
Member

asmie commented Jul 25, 2024

Description

This task is derived from #5 and only creates the header structures.

Header data structures are listed in Chapter 5 and then described in the next chapters.

Header:
H ≡ (Hp, Hr , Hx, Ht, He, Hw , Hj , Hk , Hv , Hs)

  • Hp - parent header
  • Hr - parent state root (root of Merkle tree)
  • Hx - extrinsic hash is the hash of the block’s extrinsic data
  • Ht - timeslot index
  • He - epoch marker
  • Hw - winning tickets marker
  • Hj - the judgment marker
  • Hk - a Bandersnatch block author key
  • Hv - the entropy yielding VRF signature
  • Hs - block seal
  • Header serialization.

Serialization

The outputs of tasks #6 and #14 should be used to serialize header structures.

Deliverable

All of the header structures in Go code with tests (where appropriate).
All structures should be serializable.

Testing

There are no current official test vectors to check the results.

@asmie
Copy link
Member Author

asmie commented Jul 25, 2024

From the parent task:

Bandersnatch data types: Signature -> https://github.com/paritytech/polkadot-sdk/blob/master/substrate/primitives/core/src/bandersnatch.rs#L68

* needed for vrf signature and the block seal

Block Author Key -> https://github.com/paritytech/polkadot-sdk/blob/master/substrate/primitives/core/src/bandersnatch.rs#L79

* (Not sure if this is the correct key type yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants