Update client to add command for 'Perform Privacy Operation'

This commit is contained in:
Charles-Edouard de la Vergne
2024-04-17 15:41:54 +02:00
parent 647ffa3b25
commit 5fde5cd6cd
2 changed files with 19 additions and 0 deletions

View File

@@ -147,6 +147,14 @@ class EthAppClient:
return self._exchange_async(self._cmd_builder.get_eth2_public_addr(display,
bip32_path))
def perform_privacy_operation(self,
display: bool = True,
bip32_path: str = "m/44'/60'/0'/0/0",
pubkey: bytes = bytes()):
return self._exchange(self._cmd_builder.perform_privacy_operation(display,
bip32_path,
pubkey))
def provide_domain_name(self, challenge: int, name: str, addr: bytes) -> RAPDU:
payload = format_tlv(DomainNameTag.STRUCTURE_TYPE, 3) # TrustedDomainName
payload += format_tlv(DomainNameTag.STRUCTURE_VERSION, 1)