Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Comments

Add a ProofNode protobuf to flesh out Merkle proofs#2

Closed
daniel-ziegler wants to merge 1 commit intogoogle:masterfrom
daniel-ziegler:merkle
Closed

Add a ProofNode protobuf to flesh out Merkle proofs#2
daniel-ziegler wants to merge 1 commit intogoogle:masterfrom
daniel-ziegler:merkle

Conversation

@daniel-ziegler
Copy link
Contributor

This reflects the storage design document. There will be one ProofNode returned for every node along the path in the Merkle radix tree. If these are hashed correctly, this will also solve the potential security problem I mentioned in the protobuf document.

Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense as a data storage type. I'm not sure it makes sense to return to the user.
If you agree, create a separate proto file in the v2 directory for internal storage types.a

@gdbelvin
Copy link
Contributor

First pull request, woot!
Looks like the type you're suggesting might be internal to the datastore?

@daniel-ziegler
Copy link
Contributor Author

I'm closing this since we're using prefix trees and not radix trees, so the API change is not necessary

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants