-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
verifiable/did_doc.go
Outdated
ReplacedAtTimestamp string `json:"replacedAtTimestamp"` | ||
CreatedAtBlock string `json:"createdAtBlock"` | ||
ReplacedAtBlock string `json:"replacedAtBlock"` | ||
Proof *GistProof `json:"proof"` |
There was a problem hiding this comment.
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)
verifiable/did_doc.go
Outdated
Siblings []string `json:"siblings"` | ||
Index string `json:"index"` | ||
Value string `json:"value"` | ||
AuxExistence bool `json:"auxExistence"` |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
}
No description provided.