@@ -17,7 +17,7 @@ def key_gen(
1717 activation_epoch : int , num_active_epochs : int
1818) -> Tuple [PublicKey , SecretKey ]:
1919 """
20- Generates a new cryptographic key pair.
20+ Generates a new cryptographic key pair. This is a **randomized** algorithm.
2121
2222 This function is a placeholder. In a real implementation, it would involve
2323 generating a master secret, deriving all one-time keys, and constructing
@@ -41,7 +41,8 @@ def key_gen(
4141
4242def sign (sk : SecretKey , epoch : int , message : bytes ) -> Signature :
4343 """
44- Produces a digital signature for a given message at a specific epoch.
44+ Produces a digital signature for a given message at a specific epoch. This
45+ is a **randomized** algorithm.
4546
4647 This function is a placeholder. The signing process involves encoding the
4748 message, generating a one-time signature, and providing a Merkle path.
@@ -62,7 +63,8 @@ def sign(sk: SecretKey, epoch: int, message: bytes) -> Signature:
6263
6364def verify (pk : PublicKey , epoch : int , message : bytes , sig : Signature ) -> bool :
6465 r"""
65- Verifies a digital signature against a public key, message, and epoch.
66+ Verifies a digital signature against a public key, message, and epoch. This
67+ is a **deterministic** algorithm.
6668
6769 This function is a placeholder. The complete verification logic is detailed
6870 below and will be implemented in a future update.
0 commit comments