mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
minikeys: import with uncompressed pubkey instead of compressed (#4384)
This commit is contained in:
parent
d150f0dfc0
commit
cc05c09d6b
2 changed files with 6 additions and 6 deletions
|
@ -421,7 +421,7 @@ def serialize_privkey(secret: bytes, compressed: bool, txin_type: str,
|
|||
|
||||
def deserialize_privkey(key: str) -> (str, bytes, bool):
|
||||
if is_minikey(key):
|
||||
return 'p2pkh', minikey_to_private_key(key), True
|
||||
return 'p2pkh', minikey_to_private_key(key), False
|
||||
|
||||
txin_type = None
|
||||
if ':' in key:
|
||||
|
|
|
@ -574,14 +574,14 @@ class Test_keyImport(SequentialTestCase):
|
|||
'scripthash': '242f02adde84ebb2a7dd778b2f3a81b3826f111da4d8960d826d7a4b816cb261'},
|
||||
# from http://bitscan.com/articles/security/spotlight-on-mini-private-keys
|
||||
{'priv': 'SzavMBLoXU6kDrqtUVmffv',
|
||||
'exported_privkey': 'p2pkh:L53fCHmQhbNp1B4JipfBtfeHZH7cAibzG9oK19XfiFzxHgAkz6JK',
|
||||
'pub': '02588d202afcc1ee4ab5254c7847ec25b9a135bbda0f2bc69ee1a714749fd77dc9',
|
||||
'address': '19GuvDvMMUZ8vq84wT79fvnvhMd5MnfTkR',
|
||||
'exported_privkey': 'p2pkh:5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF',
|
||||
'pub': '04588d202afcc1ee4ab5254c7847ec25b9a135bbda0f2bc69ee1a714749fd77dc9f88ff2a00d7e752d44cbe16e1ebcf0890b76ec7c78886109dee76ccfc8445424',
|
||||
'address': '1CC3X2gu58d6wXUWMffpuzN9JAfTUWu4Kj',
|
||||
'minikey': True,
|
||||
'txin_type': 'p2pkh',
|
||||
'compressed': True, # this is actually ambiguous... issue #2748
|
||||
'compressed': False, # this is actually ambiguous... issue #2748
|
||||
'addr_encoding': 'base58',
|
||||
'scripthash': '60ad5a8b922f758cd7884403e90ee7e6f093f8d21a0ff24c9a865e695ccefdf1'},
|
||||
'scripthash': '5b07ddfde826f5125ee823900749103cea37808038ecead5505a766a07c34445'},
|
||||
)
|
||||
|
||||
@needs_test_with_all_ecc_implementations
|
||||
|
|
Loading…
Add table
Reference in a new issue