Skip to content

Commit 3847ff9

Browse files
committed
hash_comm description
1 parent 0ae9791 commit 3847ff9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mocha_core/mocha_core/hash_comm.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55

66
LENGTH = 6
77

8+
""" hash_comm.py
9+
This file defines the potential headers to be used in the database. There
10+
are two types: Hash and TsHeader. Hash is created by hashing the data with
11+
sha256 and cropping the hash. TsHeader is created using the robot_id,
12+
topic_id, and timestamp when the message was created.
13+
14+
TsHeader is the implementation favored for MOCHA's paper, as it keeps the
15+
size of the message exchange bounded.
16+
"""
817

918
class Hash():
1019
HASH_LENGTH = LENGTH

0 commit comments

Comments
 (0)