Skip to content

Commit

Permalink
python: Define __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Jul 4, 2024
1 parent c38442d commit 27b2a51
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions python/chilldkg_ref/chilldkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,34 @@
SessionNotFinalizedError,
)

# TODO
# __all__ = []
__all__ = [
# Functions
'hostpubkey',
'session_params',
'participant_step1',
'participant_step2',
'participant_finalize',
'coordinator_step',
'coordinator_finalize',
'recover',
# Exceptions
'InvalidContributionError',
'InvalidRecoveryDataError',
'DeserializationError',
'DuplicateHostpubkeyError',
'SessionNotFinalizedError',
# Types
'SessionParams',
'DKGOutput',
'ParticipantMsg1',
'ParticipantMsg2',
'ParticipantState1',
'ParticipantState2',
'CoordinatorMsg1',
'CoordinatorMsg2',
'CoordinatorState',
'RecoveryData',
]

# TODO Document in all public functions what exceptions they can raise

Expand Down

0 comments on commit 27b2a51

Please sign in to comment.