1
0

commands: add new cmd "getprivatekeyforpath" to export a WIF for a path

related: #6061
This commit is contained in:
SomberNight
2020-03-31 05:50:18 +02:00
parent e1e5167ca9
commit 900a7631cf
5 changed files with 37 additions and 6 deletions

View File

@@ -565,8 +565,8 @@ def is_segwit_script_type(txin_type: str) -> bool:
return txin_type in ('p2wpkh', 'p2wpkh-p2sh', 'p2wsh', 'p2wsh-p2sh')
def serialize_privkey(secret: bytes, compressed: bool, txin_type: str,
internal_use: bool=False) -> str:
def serialize_privkey(secret: bytes, compressed: bool, txin_type: str, *,
internal_use: bool = False) -> str:
# we only export secrets inside curve range
secret = ecc.ECPrivkey.normalize_secret_bytes(secret)
if internal_use: