Updated Ragger client for get pub key

This commit is contained in:
Alexandre Paillier
2023-08-09 10:42:38 +02:00
parent b05b16143d
commit 0461928355
3 changed files with 61 additions and 0 deletions

View File

@@ -124,6 +124,16 @@ class EthAppClient:
def get_challenge(self):
return self._send(self._cmd_builder.get_challenge())
def get_public_addr(self,
display: bool = True,
chaincode: bool = False,
bip32_path: str = "m/44'/60'/0'/0/0",
chain_id: Optional[int] = None):
return self._send(self._cmd_builder.get_public_addr(display,
chaincode,
bip32_path,
chain_id))
def provide_domain_name(self, challenge: int, name: str, addr: bytes):
payload = format_tlv(DOMAIN_NAME_TAG.STRUCTURE_TYPE, 3) # TrustedDomainName
payload += format_tlv(DOMAIN_NAME_TAG.STRUCTURE_VERSION, 1)