Compare commits

...

2 Commits

Author SHA1 Message Date
Jon Michael Aanes
f5d648c595 Test sender authentication v2
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s
2025-05-01 16:23:27 +02:00
Jon Michael Aanes
86fa09e6fd Test sender authentication 2025-05-01 16:14:53 +02:00

View File

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