aboutsummaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/pk_test.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/python/tests/pk_test.py b/python/tests/pk_test.py
index f2aa147..096b6a8 100644
--- a/python/tests/pk_test.py
+++ b/python/tests/pk_test.py
@@ -1,6 +1,12 @@
import pytest
-from olm import PkDecryption, PkDecryptionError, PkEncryption
+from olm import (
+ ed25519_verify,
+ PkDecryption,
+ PkDecryptionError,
+ PkEncryption,
+ PkSigning
+)
class TestClass(object):
@@ -47,3 +53,10 @@ class TestClass(object):
with pytest.raises(PkDecryptionError):
PkDecryption.from_pickle(pickle, "Not secret")
+
+ def test_signing(self):
+ seed = PkSigning.generate_seed()
+ signing = PkSigning(seed)
+ message = "This statement is true"
+ signature = signing.sign(message)
+ ed25519_verify(signing.public_key, message, signature)