-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from keepkey/eip712-signing
Eip712 signing
- Loading branch information
Showing
15 changed files
with
181 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule device-protocol
updated
3 files
+145 −0 | messages-ethereum.proto | |
+4 −110 | messages.proto | |
+4 −4 | package.json |
Submodule python-keepkey
updated
10 files
+1 −1 | build_pb.sh | |
+1 −1 | device-protocol | |
+19 −5 | keepkeylib/client.py | |
+4 −1 | keepkeylib/mapping.py | |
+642 −0 | keepkeylib/messages_ethereum_pb2.py | |
+171 −666 | keepkeylib/messages_pb2.py | |
+5 −0 | keepkeylib/tools.py | |
+762 −0 | tests/sign_typed_data.json | |
+3 −2 | tests/test_msg_ethereum_signtx.py | |
+56 −0 | tests/test_sign_typed_data.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
EthereumGetAddress.address_n max_count:8 | ||
EthereumAddress.address max_size:20 | ||
EthereumAddress.address_str max_size:43 | ||
|
||
EthereumSignTx.address_n max_count:8 | ||
EthereumSignTx.nonce max_size:32 | ||
EthereumSignTx.gas_price max_size:32 | ||
EthereumSignTx.gas_limit max_size:32 | ||
EthereumSignTx.max_fee_per_gas max_size:32 | ||
EthereumSignTx.max_priority_fee_per_gas max_size:32 | ||
EthereumSignTx.to max_size:20 | ||
EthereumSignTx.value max_size:32 | ||
EthereumSignTx.data_initial_chunk max_size:1024 | ||
EthereumSignTx.to_address_n max_count:8 | ||
EthereumSignTx.token_value max_size:32 | ||
EthereumSignTx.token_to max_size:0 | ||
EthereumSignTx.token_shortcut max_size:8 | ||
|
||
EthereumTxRequest.signature_r max_size:32 | ||
EthereumTxRequest.signature_s max_size:32 | ||
EthereumTxRequest.hash max_size:32 | ||
EthereumTxRequest.signature_der max_size:73 | ||
|
||
EthereumTxAck.data_chunk max_size:1024 | ||
|
||
EthereumSignMessage.address_n max_count:8 | ||
EthereumSignMessage.message max_size:1024 | ||
|
||
EthereumVerifyMessage.address max_size:20 | ||
EthereumVerifyMessage.signature max_size:65 | ||
EthereumVerifyMessage.message max_size:1024 | ||
|
||
EthereumMessageSignature.address max_size:20 | ||
EthereumMessageSignature.signature max_size:65 | ||
|
||
EthereumSignTypedHash.address_n max_count:8 | ||
EthereumSignTypedHash.domain_separator_hash max_size:32 | ||
EthereumSignTypedHash.message_hash max_size:32 | ||
|
||
EthereumTypedDataSignature.address max_size:43 | ||
EthereumTypedDataSignature.signature max_size:65 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters