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

extend GistInfo with Proof object #97

Merged
merged 11 commits into from
Nov 25, 2024
Merged

extend GistInfo with Proof object #97

merged 11 commits into from
Nov 25, 2024

Conversation

volodymyr-basiuk
Copy link
Contributor

No description provided.

ReplacedAtTimestamp string `json:"replacedAtTimestamp"`
CreatedAtBlock string `json:"createdAtBlock"`
ReplacedAtBlock string `json:"replacedAtBlock"`
Proof *GistProof `json:"proof"`
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to make it optional in json, because teoretically some objects could be saved by someone. (put omitEmpty)

Siblings []string `json:"siblings"`
Index string `json:"index"`
Value string `json:"value"`
AuxExistence bool `json:"auxExistence"`
Copy link
Contributor

Choose a reason for hiding this comment

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

we should create regular type here
with nodeAux, h_index, h_value.

root is already on upper level. Use merkletree.Proof object

Copy link
Contributor

Choose a reason for hiding this comment

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

ah. maybe it should also contain type property with equality to SparseMerkleTreeProof and other fiellds from mtp

struct {
type : ProofType
merkeTree.Proof
}

@vmidyllic vmidyllic merged commit 19f1772 into main Nov 25, 2024
6 checks passed
@vmidyllic vmidyllic deleted the feat/PID-2694 branch November 25, 2024 09:00
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

Successfully merging this pull request may close these issues.

2 participants