enum Chord_Protocol {
NOTIFY_STABILIZE: 0,
NOTIFY_PREDECESSOR: 1,
NOTIFY_SUCCESSOR: 2,
NOTIFY_JOIN: 3,
FIND_SUCCESSOR: 4,
FOUND_SUCCESSOR: 5,
CHECK_PREDECESSOR: 6,
CHECK_SUCESSOR: 7,
CHECK_TTL: 8,
MESSAGE: 9
};
struct chord_p2p_message {
string nodeId;
Chord_Protocol message;
ipfs_data data;
};
struct flowchain_chunk = {
chord_p2p_message message;
};
struct ipfs_data {
string originFrom;
string chordDataKey;
string ipfsHash;
};