Adapt 'ledger_app_clients'
- Add 'send_raw' function - Add error code 'EXCEPTION_OVERFLOW'
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user