Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinxu2020 committed Jul 8, 2024
1 parent 9b91c84 commit 7dd9063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slhdsa/slhdsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ def digest(self) -> bytes:
return self.pub.digest() + self.sec.digest()

@classmethod
def from_digest(cls, digest: bytes, par: Parameter):
def from_digest(cls, digest: bytes, par: Parameter) -> "KeyPair":
return cls(PublicKey.from_digest(digest[:par.n*2], par), SecretKey.from_digest(digest[par.n*2:], par))

0 comments on commit 7dd9063

Please sign in to comment.