B4: chain tables, HD index assignment and signing key reserved to the worker (DAT-81..84, ARC-78)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0092596b07
commit
f1d09075a1
18 files changed
+741
-8
No files matched your search
+2
-1
@@ -22,7 +22,8 @@ def user_key(account: HDKey, derivation_index: int) -> HDKey:
|
||||
|
||||
|
||||
def address_of(key: HDKey, profile: Profile = MAINNET) -> str:
|
||||
return script.p2wpkh(key.to_public()).address(network=profile.embit)
|
||||
public = key.to_public() if key.is_private else key # a key derived from an xpub is already public
|
||||
return script.p2wpkh(public).address(network=profile.embit)
|
||||
|
||||
|
||||
def user_address(account: HDKey, derivation_index: int, profile: Profile = MAINNET) -> str:
|
||||
|
||||
Reference in new issue
Block a user