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

Cell representation computation is obscure #14

Open
AntonMeep opened this issue May 26, 2022 · 0 comments
Open

Cell representation computation is obscure #14

AntonMeep opened this issue May 26, 2022 · 0 comments

Comments

@AntonMeep
Copy link
Collaborator

At the moment Cell.representation() is implemented similarly to tonweb, however it is not clear what this implementation is based on.
According to the almighty tblkch.pdf, 1.1.3, CellRepr consists of following:

  1. Two descriptor bytes
  2. Data bytes, with optional padding when length of the cell is not divisible by 8
  3. References to other cells, where each reference is the Sha256 hash of that referenced cell

However, tonweb and ton-kotlin at the moment also add reference cells' maxDepth encoded as 16-bit integer between 2. and 3.; it might be somehow connected to 5.3.6 but I am not quite sure.

To clear things up, it is necessary to either try and find better description in tblkch.pdf or a piece of code that implements this behaviour in the main TON repository.

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

1 participant