From 1a0d66a2bc666b764d6fc643b3080a207b115a27 Mon Sep 17 00:00:00 2001 From: mjalalzai <33738574+MForensic@users.noreply.github.com> Date: Thu, 28 Sep 2023 17:18:12 -0700 Subject: [PATCH] Verifying committee member --- carnot/carnot-vote-aggregation.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/carnot/carnot-vote-aggregation.py b/carnot/carnot-vote-aggregation.py index 9f26430..ddb9e54 100644 --- a/carnot/carnot-vote-aggregation.py +++ b/carnot/carnot-vote-aggregation.py @@ -161,6 +161,13 @@ class Overlay: pass @abstractmethod + def is_member_of_my_committee(self, _id: Id) -> bool: + """ + :param _id: + :return: true if the participant with Id _id is member of the committee of the verifying node withing the tree overlay + """ + pass + @abstractmethod def is_member_of_child_committee(self, parent: Id, child: Id) -> bool: """ :param parent: @@ -205,6 +212,7 @@ class Overlay: """ pass + @abstractmethod def super_majority_threshold(self, _id: Id) -> int: pass