mirror of https://github.com/nucypher/pyUmbral.git
Corrects type hint for .split_rekey() dynamic typing (Union).
parent
3ed2394acf
commit
404a2a3ebd
|
@ -202,7 +202,8 @@ def priv2pub(priv: BigNum, params: UmbralParameters=None) -> Point:
|
|||
return priv * params.g
|
||||
|
||||
|
||||
def split_rekey(priv_a: UmbralPrivateKey, pub_b: UmbralPublicKey,
|
||||
def split_rekey(priv_a: Union[UmbralPrivateKey, BigNum],
|
||||
pub_b: Union[UmbralPublicKey, Point],
|
||||
threshold: int, N: int,
|
||||
params: UmbralParameters=None) -> Tuple[List[KFrag], List[Point]]:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue