Skip to content

Commit

Permalink
Type stubs for ThRq/ThRs
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed May 2, 2023
1 parent 545757a commit 25a9c80
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions nucypher-core-python/nucypher_core/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,47 @@ class MetadataResponse:

def __bytes__(self) -> bytes:
...


class ThresholdDecryptionRequest:

def __init__(self, ritual_id: int, variant: int, ciphertext: bytes, conditions: Optional[Conditions], context: Optional[Context]):
...

def id(self) -> int:
...

def conditions(self) -> Optional[Conditions]:
...

def context(self) -> Optional[Context]:
...

def variant(self) -> int:
...

def ciphertext(self) -> bytes:
...

@staticmethod
def from_bytes(data: bytes) -> ThresholdDecryptionRequest:
...

def __bytes__(self) -> bytes:
...


class ThresholdDecryptionResponse:

def __init__(self, decryption_share: bytes):
...

def decryption_share(self) -> bytes:
...

@staticmethod
def from_bytes(data: bytes) -> ThresholdDecryptionResponse:
...

def __bytes__(self) -> bytes:
...

0 comments on commit 25a9c80

Please sign in to comment.