docs: Docs of client

This commit is contained in:
Coline
2022-07-25 11:40:52 +02:00
parent fd0f893615
commit e926f9f347
2 changed files with 0 additions and 36 deletions

View File

@@ -1,35 +0,0 @@
@startuml Network
enum InsType <int> {
INS_GET_PUBLIC_KEY = 0x02
INS_SIGN_TX = 0x04
INS_GET_CONFIGURATION = 0x06
INS_SIGN_PERSONAL_TX = 0x08
INS_PROVIDE_ERC20 = 0x0A
INS_SIGN_EIP712 = 0x0c
INS_ETH2_GET_PUBLIC_KEY = 0x0E
INS_SET_ETH2_WITHDRAWAL = 0x10
INS_SET_EXTERNAL_PLUGIN = 0x12
INS_PROVIDE_NFT_INFORMATION = 0x14
INS_SET_PLUGIN = 0x16
}
class BoilerPlateCommandBuilder {
+bytes serialize(cla int, ins InsType, p1 int, p2 int, cdata bytes)
____
.. APDU Builder..
+get_configuration() -> bytes
+get_public_key(bip32_path str, display bool) -> bytes
}
class BoilerplateCommand {
+get_configuration() -> Tuple[int, int, int]
+get_public_key(bip32_path str, diplay bool) -> Tuple[bytes, bytes, bytes]
}
class Transaction {
+serialize() -> bytes
+from_bytes(cls, hexa: Union[bytes, BytesIO])
}
@enduml

View File

@@ -1,6 +1,5 @@
import enum
import logging
import re
import struct
from typing import List, Tuple, Union, Iterator, cast