From 5f446605f48edabf9b02e64a70d348f2b44fdf7b Mon Sep 17 00:00:00 2001 From: Coline Date: Thu, 30 Jun 2022 14:10:56 +0200 Subject: [PATCH] fix: rm comment and add new INS PERFORM PRIVACY in insType --- tests/speculos/ethereum_client/ethereum_cmd_builder.py | 1 + tests/speculos/ethereum_client/transaction.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/speculos/ethereum_client/ethereum_cmd_builder.py b/tests/speculos/ethereum_client/ethereum_cmd_builder.py index c96bf70..92b10a3 100644 --- a/tests/speculos/ethereum_client/ethereum_cmd_builder.py +++ b/tests/speculos/ethereum_client/ethereum_cmd_builder.py @@ -41,6 +41,7 @@ class InsType(enum.IntEnum): INS_SET_EXTERNAL_PLUGIN = 0x12 INS_PROVIDE_NFT_INFORMATION = 0x14 INS_SET_PLUGIN = 0x16 + INS_PERFORM_PRIVACY_OPERATION = 0x18 class EthereumCommandBuilder: diff --git a/tests/speculos/ethereum_client/transaction.py b/tests/speculos/ethereum_client/transaction.py index f1c4d9e..f20102f 100644 --- a/tests/speculos/ethereum_client/transaction.py +++ b/tests/speculos/ethereum_client/transaction.py @@ -11,10 +11,6 @@ class TransactionError(Exception): EIP2930 = 1 EIP1559 = 2 -# e0 + 08 + 00 + 00 + 38 + 05 + 8000002c 8000003c 80000000 00000000 00000000 + 0000001f + 4578616d706c652060706572736f6e616c5f7369676e60206d657373616765 -# E0 + 08 + 00 + 00 + 34 + 05 + 8000002C 8000003C 80000000 00000000 00000000 + 4578616D706C652060706572736F6E616C5F7369676E60206D657373616765 -# E0 08 00 00 35058000002C8000003C8000000000000000000000001F4578616D706C652060706572736F6E616C5F7369676E60206D657373616765 - class PersonalTransaction: def __init__(self, msg: Union[str, bytes]) -> None: # If you want to send bytes directly you have to put "0x" before the string