Test sender authentication

This commit is contained in:
Jon Michael Aanes 2025-05-01 16:14:53 +02:00
parent 77216001e5
commit 86fa09e6fd

View File

@ -1,5 +1,9 @@
from pbc_client.crypto import SenderAuthentication, sign_transaction from pbc_client.crypto import SenderAuthentication, sign_transaction
from pbc_client.pbc_types import Address
def test_sender_authentication():
sender_authentication = SenderAuthentication('aa')
assert sender_authentication.sender_address() == Address.from_string('00e72e44eab933faaf1fd4ce94bb57e08bff98a1ed')
def test_sign(): def test_sign():
sender_authentication = SenderAuthentication('01') sender_authentication = SenderAuthentication('01')