예제 #1
0
 def test_from_int_testnet(self):
     key = PrivateKey.from_int(PRIVATE_KEY_NUM, network='test')
     assert isinstance(key, PrivateKey)
     assert key.network == 'test'
     assert key.to_int() == PRIVATE_KEY_NUM
예제 #2
0
 def test_from_int(self):
     key = PrivateKey.from_int(PRIVATE_KEY_NUM)
     assert isinstance(key, PrivateKey)
     assert key.to_int() == PRIVATE_KEY_NUM