Example #1
0
 def test_generate_key_pair(self):
     private_value_base58, public_value_compressed_base58 = generate_key_pair(
     )
     assert PrivateKey.encode(
         PrivateKey.decode(private_value_base58)) == private_value_base58
     assert PublicKey.encode(*PublicKey.decode(
         public_value_compressed_base58)) == public_value_compressed_base58
Example #2
0
 def test_public_key_encode(self):
     public_value_compressed_base58 = PublicKey.encode(self.PUBLIC_VALUE_X, self.PUBLIC_VALUE_Y)
     assert public_value_compressed_base58 == self.PUBLIC_VALUE_COMPRESSED_B58
 def test_generate_key_pair(self):
     private_value_base58, public_value_compressed_base58 = generate_key_pair()
     assert PrivateKey.encode(
         PrivateKey.decode(private_value_base58)) == private_value_base58
     assert PublicKey.encode(
         *PublicKey.decode(public_value_compressed_base58)) == public_value_compressed_base58
 def test_public_key_encode(self):
     public_value_compressed_base58 = PublicKey.encode(self.PUBLIC_VALUE_X, self.PUBLIC_VALUE_Y)
     assert public_value_compressed_base58 == self.PUBLIC_VALUE_COMPRESSED_B58