Skip to content

Commit 70621b4

Browse files
authored
Merge branch 'develop' into add-conflux-espace-2
2 parents 5fc60d3 + 23d5477 commit 70621b4

30 files changed

+368
-15
lines changed

.github/workflows/lint-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
uses: actions/checkout@v2
2020

2121
- name: Lint
22-
uses: DoozyX/clang-format-lint-action@v0.11
22+
uses: DoozyX/clang-format-lint-action@v0.13
2323
with:
2424
source: "./"
2525
extensions: "h,c"
26-
clangFormatVersion: 10
26+
clangFormatVersion: 12.0.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ APP_LOAD_PARAMS += --path "1517992542'/1101353413'"
3434

3535
APPVERSION_M=1
3636
APPVERSION_N=9
37-
APPVERSION_P=17
37+
APPVERSION_P=18
3838
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
3939
APP_LOAD_FLAGS= --appFlags 0x240 --dep Ethereum:$(APPVERSION)
4040

doc/ethapp.asc

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Ethereum application : Common Technical Specifications
22
=======================================================
33
Ledger Firmware Team <hello@ledger.fr>
4-
Application version 1.5.0 - 25th of September 2020
4+
Application version 1.9.18 - 29th of January 2022
55

66
## 1.0
77
- Initial release
@@ -26,6 +26,9 @@ Application version 1.5.0 - 25th of September 2020
2626
## 1.9.13
2727
- Add SET PLUGIN
2828

29+
## 1.9.17
30+
- Add PERFORM PRIVACY OPERATION
31+
2932
## About
3033

3134
This application describes the APDU messages interface to communicate with the Ethereum application.
@@ -379,6 +382,52 @@ type || version || len(pluginName) || pluginName || address || selector || chain
379382

380383
None
381384

385+
### PERFORM PRIVACY OPERATION
386+
387+
#### Description
388+
389+
This command performs privacy operations as defined in EIP 1024 (https://ethereum-magicians.org/t/eip-1024-cross-client-encrypt-decrypt/505)
390+
391+
It can return the public encryption key on Curve25519 for a given Ethereum account or the shared secret (generated by the scalar multiplication of the remote public key by the account private key on Curve25519) used to decrypt private data encrypted for a given Ethereum account
392+
393+
All data can be optionally checked on the device before being returned.
394+
395+
#### Coding
396+
397+
'Command'
398+
399+
[width="80%"]
400+
|==============================================================================================================================
401+
| *CLA* | *INS* | *P1* | *P2* | *Lc* | *Le*
402+
| E0 | 18 | 00 : return data
403+
404+
01 : display data and confirm before returning
405+
| 00 : return the public encryption key
406+
407+
01 : return the shared secret | variable | variable
408+
|==============================================================================================================================
409+
410+
'Input data'
411+
412+
[width="80%"]
413+
|==============================================================================================================================
414+
| *Description* | *Length*
415+
| Number of BIP 32 derivations to perform (max 10) | 1
416+
| First derivation index (big endian) | 4
417+
| ... | 4
418+
| Last derivation index (big endian) | 4
419+
| Third party public key on Curve25519, if returning the shared secret | 32
420+
|==============================================================================================================================
421+
422+
'Output data'
423+
424+
[width="80%"]
425+
|==============================================================================================================================
426+
| *Description* | *Length*
427+
| Public encryption key or shared secret | 32
428+
|==============================================================================================================================
429+
430+
382431
### GET APP CONFIGURATION
383432

384433
#### Description

icons/nanos_app_bttc.gif

76 Bytes
Loading

icons/nanos_app_kardiachain.gif

3.1 KB
Loading

icons/nanos_app_moonbeam.gif

66 Bytes
Loading

icons/nanos_app_wethio.gif

1.18 KB
Loading

icons/nanox_app_bttc.gif

71 Bytes
Loading

icons/nanox_app_kardiachain.gif

3.1 KB
Loading

icons/nanox_app_moonbeam.gif

63 Bytes
Loading

0 commit comments

Comments
 (0)