Beispiel #1
0
 def test_from_pem_testnet(self):
     key = PrivateKey.from_pem(PRIVATE_KEY_PEM, network='test')
     assert isinstance(key, PrivateKey)
     assert key.network == 'test'
     assert key.to_pem() == PRIVATE_KEY_PEM
Beispiel #2
0
 def test_from_pem(self):
     key = PrivateKey.from_pem(PRIVATE_KEY_PEM)
     assert isinstance(key, PrivateKey)
     assert key.to_pem() == PRIVATE_KEY_PEM