Adapt 'ledger_app_clients'

- Add 'send_raw' function
- Add error code 'EXCEPTION_OVERFLOW'
This commit is contained in:
Charles-Edouard de la Vergne
2024-04-03 18:48:56 +02:00
parent fa3e87a06c
commit 140ecc75fb
5 changed files with 36 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ from .eip712 import EIP712FieldType
class InsType(IntEnum):
GET_PUBLIC_ADDR = 0x02
GET_ETH2_PUBLIC_ADDR = 0x0e
SIGN = 0x04
PERSONAL_SIGN = 0x08
PROVIDE_ERC20_TOKEN_INFORMATION = 0x0a
@@ -250,6 +251,15 @@ class CommandBuilder:
int(chaincode),
payload)
def get_eth2_public_addr(self,
display: bool,
bip32_path: str) -> bytes:
payload = pack_derivation_path(bip32_path)
return self._serialize(InsType.GET_ETH2_PUBLIC_ADDR,
int(display),
0x00,
payload)
def set_plugin(self,
type_: int,
version: int,