Skip to content

Commit

Permalink
Skip encrypt unittest for EC multiplied keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Mar 9, 2024
1 parent 2f4de7b commit a93920b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/bip38_protected_key_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,26 @@
"bip38": "6PfQu77ygVyJLZjfvMLyhLMQbYnu5uguoJJ4kMCLqWwPEdfpwANVS76gTX",
"wif": "5K4caxezwjGCGfnoPTZ8tMcJBLB7Jvyjv4xxeacadhq8nLisLR2",
"address": "6PfQu77ygVyJLZjfvMLyhLMQbYnu5uguoJJ4kMCLqWwPEdfpwANVS76gTX",
"description": "EC multiply / no compression / no lot sequence numbers #1"
"description": "EC multiply / no compression / no lot sequence numbers #1",
"test_encrypt": false
},
{
"passphrase": "Satoshi",
"passphrase_code": "passphraseoRDGAXTWzbp72eVbtUDdn1rwpgPUGjNZEc6CGBo8i5EC1FPW8wcnLdq4ThKzAS",
"bip38": "6PfLGnQs6VZnrNpmVKfjotbnQuaJK4KZoPFrAjx1JMJUa1Ft8gnf5WxfKd",
"wif": "5KJ51SgxWaAYR13zd9ReMhJpwrcX47xTJh2D3fGPG9CM8vkv5sH",
"address": "1CqzrtZC6mXSAhoxtFwVjz8LtwLJjDYU3V",
"description": "EC multiply / no compression / no lot sequence numbers #2"
"description": "EC multiply / no compression / no lot sequence numbers #2",
"test_encrypt": false
},
{
"passphrase": "MOLON LABE",
"passphrase_code": "passphraseaB8feaLQDENqCgr4gKZpmf4VoaT6qdjJNJiv7fsKvjqavcJxvuR1hy25aTu5sX",
"bip38": "6PgNBNNzDkKdhkT6uJntUXwwzQV8Rr2tZcbkDcuC9DZRsS6AtHts4Ypo1j",
"wif": "5JLdxTtcTHcfYcmJsNVy1v2PMDx432JPoYcBTVVRHpPaxUrdtf8",
"address": "1Jscj8ALrYu2y9TD8NrpvDBugPedmbj4Yh",
"description": "EC multiply / no compression / lot sequence numbers #1"
"description": "EC multiply / no compression / lot sequence numbers #1",
"test_encrypt": false
}
],
"invalid": {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ def test_encrypt_private_key(self):
if not USING_MODULE_SCRYPT:
return
for v in self.vectors["valid"]:
if v.get('test_encrypt') is False:
continue
k = Key(v['wif'])
# print("Check %s + %s = %s " % (v['wif'], v['passphrase'], v['bip38']))
self.assertEqual(str(v['bip38']), k.encrypt(str(v['passphrase'])))
Expand Down

0 comments on commit a93920b

Please sign in to comment.