start specifying protocol format in ASN.1

This commit is contained in:
Trolli Schmittlauch 2020-04-27 02:07:24 +02:00
parent 7a20ea5225
commit e1228da74d
2 changed files with 14 additions and 0 deletions

13
Hash2Pub/FediChord.asn1 Normal file
View file

@ -0,0 +1,13 @@
FediChordProtocol DEFINITIONS AUTOMATIC TAGS ::= BEGIN
NodeID ::= INTEGER (0..115792089237316195423570985008687907853269984665640564039457584007913129639935)
Request ::= SEQUENCE {
requestID INTEGER,
senderID NodeID,
parts INTEGER,
part INTEGER,
action ENUMERATED {queryID, join, leave, stabilise}
}
END

View file

@ -26,6 +26,7 @@ in
haddock haddock
cabal-install cabal-install
hlint hlint
pkgs.python3Packages.asn1ate
]; ];
}; };
} }