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

Data items serialization #6

Closed
asmie opened this issue Jul 22, 2024 · 4 comments
Closed

Data items serialization #6

asmie opened this issue Jul 22, 2024 · 4 comments
Assignees

Comments

@asmie
Copy link
Member

asmie commented Jul 22, 2024

Block/Header and State data serialization.

It may use the serialization codec from Appendix C.

The question is: can it be SCALE?

This was referenced Jul 22, 2024
@pantrif
Copy link
Contributor

pantrif commented Jul 23, 2024

@asmie Appendix C of the Graypaper appears to discuss the SCALE codec.

Several points lead me to this conclusion:

  • The definition of E (epsilon) in the index refers to "The scale encode function. Superscripted −1 to denote the inverse. See appendix C." (page 56).
  • Safrole test vectors are provided in both JSON and SCALE formats.
  • The rules for the JAM prize give as example the SCALE codec when mentioning the allowance of third-party libraries.

This was referenced Jul 25, 2024
@pantrif pantrif closed this as completed Jul 31, 2024
@asmie
Copy link
Member Author

asmie commented Aug 1, 2024

Due to possible misunderstanding the integer serialization task need to be reopened.

@asmie asmie reopened this Aug 1, 2024
@pantrif
Copy link
Contributor

pantrif commented Aug 1, 2024

According to this message the serialization of integer differ slightly from Scale

@asmie
Copy link
Member Author

asmie commented Aug 7, 2024

SCALE codec was thrown from the GP. We need to get back to this task and do the right codec.

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