Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Use raw data for Merkle tree inner nodes instead of serialization #112

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

adlerjohn
Copy link
Member

Fixes #109.

Instead of serializing child nodes (which would require the use of a single serialization scheme but introduce a dependency on a serialization library to the trees), just use the raw bytes (which is technically a different serialization scheme but requires no library).

@adlerjohn adlerjohn added bug Something isn't working documentation Improvements or additions to documentation labels Jan 19, 2021
@adlerjohn adlerjohn self-assigned this Jan 19, 2021
@adlerjohn adlerjohn added disambiguation and removed bug Something isn't working labels Jan 19, 2021
@liamsi
Copy link
Member

liamsi commented Jan 19, 2021

Can we use python as pseudo code (#108) while touching these lines? It will further disambiguate things.

@adlerjohn
Copy link
Member Author

Can we use python as pseudo code (#108) while touching these lines?

I'd like to keep work on #108 self-contained to a PR dedicated for that and do a whole sweep of all code snippets at once.

```C++
node.n_min = d.namespaceID
node.n_max = d.namespaceID
node.v = h(0x00, serialize(d))
node.v = h(0x00, d.rawData)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, that is the same as the current implementation 👍🏼

Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@adlerjohn adlerjohn merged commit 065546a into master Jan 19, 2021
@adlerjohn adlerjohn deleted the adlerjohn-clarify_nmt_leaf_hashing branch January 19, 2021 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
disambiguation documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NMT clarify leaves hashing
2 participants