Skip to content

Commit

Permalink
extend GistInfo from Proof object
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Nov 13, 2024
1 parent 3edd1f4 commit 5dbe5da
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions verifiable/did_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,25 @@ type StateInfo struct {

// GistInfo representation state of gist root.
type GistInfo struct {
Root string `json:"root"`
ReplacedByRoot string `json:"replacedByRoot"`
CreatedAtTimestamp string `json:"createdAtTimestamp"`
ReplacedAtTimestamp string `json:"replacedAtTimestamp"`
CreatedAtBlock string `json:"createdAtBlock"`
ReplacedAtBlock string `json:"replacedAtBlock"`
Root string `json:"root"`
ReplacedByRoot string `json:"replacedByRoot"`
CreatedAtTimestamp string `json:"createdAtTimestamp"`
ReplacedAtTimestamp string `json:"replacedAtTimestamp"`
CreatedAtBlock string `json:"createdAtBlock"`
ReplacedAtBlock string `json:"replacedAtBlock"`
Proof GistProof `json:"proof"`
}

// GistProof representation proof of gist root.
type GistProof struct {
Root string `json:"root"`
Existence bool `json:"existence"`
Siblings []string `json:"siblings"`
Index string `json:"index"`
Value string `json:"value"`
AuxExistence bool `json:"auxExistence"`
AuxIndex string `json:"auxIndex"`
AuxValue string `json:"auxValue"`
}

// IdentityState representation all info about identity.
Expand Down

0 comments on commit 5dbe5da

Please sign in to comment.