Skip to main content

ADPU commands

APDU commands

Get Origin Public Key

APDU Command [bytes]:

CLA = E0INS = 02P1 = 00P2 = 00Lc = 00

APDU Response = Encoded Origin Public Key i.e., encode(o_{pub})

Get Archethic Account Address

APDU Command [bytes] =

CLA = E0INS = 04P1 = hash_type (for addr) [1 byte]P2 = address_index (for bip44) [4 bytes]Lc = len(ewk{aes}+ew{aes}) [1 byte]ewk_{aes} [bytes]ew_{aes} [bytes]

APDU Response = Encoded Archethic Account Address i.e., arch_address

Get Signature

CLA = E0INS = 08P1 = hash_type (of tx_hash) [1 byte]P2 = address_index (for bip44) [4 bytes]Lc = len(txhash+ewk{aes}+ew_{aes}) [1 byte]tx_hash [bytes]ewk_{aes} [bytes]ew_{aes} [bytes]

APDU Response = ASN DER Signature || Corresponding public key from whose private key the signature was made, i.e., encode(pub_key)