From 0af41d6aca2bf71d049cd99afa16f0c2c9323a65 Mon Sep 17 00:00:00 2001 From: mjalalzai <33738574+MForensic@users.noreply.github.com> Date: Mon, 28 Aug 2023 13:36:16 -0700 Subject: [PATCH] main --- scripts/authenticator_cost.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/authenticator_cost.py b/scripts/authenticator_cost.py index a1f8826..fd5f9ee 100644 --- a/scripts/authenticator_cost.py +++ b/scripts/authenticator_cost.py @@ -35,3 +35,15 @@ def aggregate_signatures(committee_size, root_members): elapsed_time = end_time - start_time return elapsed_time +def main(): + committee_size = int(input("Enter committee size: ")) + depth = int(input("Enter depth: ")) + + verify_time = verify_signatures(committee_size, depth) + aggregate_time = aggregate_signatures(committee_size,3) + + print(f"Time to verify {depth * committee_size} signatures: {verify_time:.6f} seconds") + print(f"Time to aggregate {3 * committee_size} signatures: {aggregate_time:.6f} seconds") + +if __name__ == "__main__": + main() \ No newline at end of file