aboutsummaryrefslogtreecommitdiff
path: root/internal/types/checkpoint.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/types/checkpoint.go')
-rw-r--r--internal/types/checkpoint.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/types/checkpoint.go b/internal/types/checkpoint.go
new file mode 100644
index 0000000..7f5f41a
--- /dev/null
+++ b/internal/types/checkpoint.go
@@ -0,0 +1,13 @@
+package types
+
+type DIDLeaf struct {
+ DID string
+ ChainTipHash string
+}
+
+type CheckpointStateSnapshotV1 struct {
+ Version uint8 `json:"v"`
+ Sequence uint64 `json:"sequence"`
+ CreatedAt string `json:"created_at"`
+ Leaves []DIDLeaf `json:"leaves"`
+}