예제 #1
0
 def test_to_ascii(self, sk_ilp, vk_ilp):
     sk = SigningKey(sk_ilp['b58'])
     assert sk.to_ascii(encoding='base58') == sk_ilp['b58']
     assert sk.to_ascii(encoding='base64') == sk_ilp['b64']
     vk = VerifyingKey(vk_ilp['b58'])
     assert vk.to_ascii(encoding='base58') == vk_ilp['b58']
     assert vk.to_ascii(encoding='base64') == vk_ilp['b64']
예제 #2
0
 def test_signing_key_init(self, sk_ilp):
     sk = SigningKey(sk_ilp['b58'])
     assert sk.to_ascii(encoding='base64') == sk_ilp['b64']
     assert sk.to_seed() == sk_ilp['byt']