Skip to content

Commit 2535fb1

Browse files
committed
Update
Signed-off-by: Vlad Gheorghiu <[email protected]>
1 parent 4bc55c6 commit 2535fb1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

examples/sig.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,10 @@
2727
# Store key pair, wait... (session resumption):
2828
# signer = oqs.Signature(sigalg, secret_key)
2929

30-
context = bytes([0, 1, 2])
31-
3230
# Signer signs the message
33-
signature = signer.sign_with_ctx_str(message, context)
31+
signature = signer.sign(message)
3432

3533
# Verifier verifies the signature
36-
is_valid = verifier.verify_with_ctx_str(
37-
message, signature, context, signer_public_key
38-
)
34+
is_valid = verifier.verify(message, signature, signer_public_key)
3935

4036
print("\nValid signature?", is_valid)

0 commit comments

Comments
 (0)