aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Naik2017-12-01 16:33:50 -0500
committerAditya Naik2017-12-01 16:33:50 -0500
commit43c50ceb212b597f863baf593812f0b0d433a481 (patch)
tree65be65c5d52fd34159b4b7b5fb4e24158e5adbde
started work on preliminary protocol
-rw-r--r--prelim.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/prelim.py b/prelim.py
new file mode 100644
index 0000000..383dc63
--- /dev/null
+++ b/prelim.py
@@ -0,0 +1,20 @@
+"""
+priest ledger format
+-------------------
+front #denotes the start of the actual ledger
+0/1,n,0/1 #voted or not, ballot number, promised or not
+promised or not explanation: whether or not this priest has promised to not
+ respond to maxvote requests after this ballot
+
+"""
+
+
+"""
+messenger relays messages to and from the leader and the priest
+"""
+class messenger:
+
+class priest:
+
+class leader:
+