We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1d6c80 commit 9eff90bCopy full SHA for 9eff90b
pydatastructs/graphs/graph.py
@@ -137,6 +137,9 @@ def get_snapshot(self, timestamp: int):
137
snapshot_info = self.snapshots[timestamp]
138
snapshot_graph = snapshot_info["graph"]
139
stored_signature = snapshot_info["signature"]
140
+ snapshot_data = serialize_graph(snapshot_graph)
141
+ computed_signature = generate_hmac(snapshot_data)
142
+
143
def list_snapshots(self):
144
"""Returns all stored timestamps in sorted order."""
145
return sorted(self.snapshots.keys())
0 commit comments