1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00
Commit Graph

235 Commits

Author SHA1 Message Date
Aleksey Popov
c88d7b962a protob: Add protobuf syntax tag 2017-12-23 22:15:59 +01:00
Saleem Rashid
ee211f4bc8 protob: Add decred_script_version to TxInputType 2017-12-23 13:41:52 +01:00
Saleem Rashid
65c3251a42 protob: Add Decred support 2017-12-18 16:34:01 +01:00
Saleem Rashid
8bd52248fa protob: Add NEMDecryptMessage 2017-12-16 21:23:36 +01:00
Jochen Hoenicke
8019bd2730 Storage.proto: Added u2f root key
Cache U2F private key to avoid doing computation on seed when u2f is
used.  See issue trezor/trezor-mcu#251
2017-12-13 15:09:59 +01:00
Pavol Rusnak
8e96b42260
add Features.model 2017-12-04 22:13:55 +01:00
Saleem Rashid
6701821fb9 coins: Add force_bip143 2017-11-13 21:32:07 +01:00
Saleem Rashid
b9a2a9c3de protob: Add NEMImportanceTransfer 2017-10-07 21:32:36 +01:00
Saleem Rashid
b2ce773f80 protob: Update @used_in to NEMSignTx 2017-10-07 21:29:02 +01:00
Pavol Rusnak
c20bb1c567
protob: add CoSi messages 2017-10-03 08:53:53 +02:00
Pavol Rusnak
0e3f6e73ed
nem: rename NEMTransaction to NEMSignTx and NEMRequestAnnounce to NEMSignedTx 2017-09-02 23:43:46 +02:00
Saleem Rashid
89ce727548 protob: Add NEMTransaction & NEMRequestAnnounce 2017-09-02 23:42:37 +02:00
Saleem Rashid
21716a5632 protob: Add NEMGetAddress & NEMAddress 2017-09-02 23:42:37 +02:00
Pavol Rusnak
5f7a1a7a5a
add protocol description 2017-08-15 17:48:48 +02:00
Saleem Rashid
dd8ec3231f coins: Add forkid 2017-07-28 15:06:03 +02:00
Pavol Rusnak
00900951e0
add SignMessage.script_type 2017-07-24 16:05:13 +02:00
Pavol Rusnak
2eb9c7e352
added Storage.subscribed, Features.subscribed and ApplySettings.subscribed 2017-07-17 15:31:38 +02:00
Pavol Rusnak
224bdde39f
don't use hex for uint32 default values 2017-07-13 14:42:39 +02:00
Pavol Rusnak
440c943723
remove google/protobuf/descriptor.proto, should be distributed with protobuf 2017-07-13 14:26:45 +02:00
Pavol Rusnak
b29b98d69b Added Ethereum Sign/Verify Message (#35) 2017-07-12 17:34:03 +02:00
Pavol Rusnak
fac66c6867
add SelfTest.payload 2017-07-10 17:26:55 +02:00
Pavol Rusnak
2a86fb0503
change com.satoshilabs.trezor.protobuf to com.satoshilabs.trezor.lib.protobuf 2017-07-04 14:02:22 +02:00
Pavol Rusnak
c2a40f4b67
add SelfTest message 2017-06-29 17:23:15 +02:00
Pavol Rusnak
68f5246e2f
deprecate EstimateTxSize and TxSize 2017-06-28 18:44:19 +02:00
Pavol Rusnak
654ee5d8ec
add Features.needs_backup 2017-06-26 19:49:29 +02:00
Pavol Rusnak
e04ecf819b
preparation for delegated backup 2017-06-23 19:06:24 +02:00
Roman Zeyde
ae1900a2bc Allow testing recovery with initialized device (#33)
This would allow safe mnemonic validation by using a dry-run flag.
2017-06-22 12:38:06 +02:00
Pavol Rusnak
0001cb18c0
add FirmwareErase.length 2017-06-20 11:26:39 +02:00
Pavol Rusnak
4eef33b05a
rename failures: SyntaxError => DataError; Other => ProcessError 2017-06-18 21:06:39 +02:00
Saleem Rashid
e732226909 types: Add wire_tiny & wire_bootloader (#29) 2017-05-29 03:05:13 +02:00
Pavol Rusnak
564801fddc
remove CoinType.address_type_p2wpkh and CoinType.address_type_p2wsh 2017-05-12 22:46:54 +02:00
Pavol Rusnak
fe6e62c11f
Revert "add EthereumSignTx.prefix"
This reverts commit 78da723c06.
2017-04-30 03:24:54 +02:00
Pavol Rusnak
2148e5ff8d
proto: add cointype.segwit to types 2017-04-26 15:32:01 +02:00
Pavol Rusnak
78da723c06
add EthereumSignTx.prefix 2017-04-24 20:32:07 +02:00
Peter Banik
dd1f7a2b0b Added xpub_magic and xprv_magic to CoinType structure and coin_name to GetPublicKey message structure (#26) 2017-04-21 12:47:23 +02:00
Pavol Rusnak
072770f51a
add FirmwareRequest message 2017-04-06 14:57:42 +02:00
Pavol Rusnak
6a1adef5f9
whitespace cleanup 2017-04-06 14:57:42 +02:00
Jochen Hoenicke
9d2ab7318d Ethereum: chain id for EIP-155 replay protection (#23)
Added a field chain_id.  To get a backwards compatible signature
this field should not be set.  Otherwise it should be set to the
EIP-155 chain id.  Currently only chain id between 1 and 109 are
supported.

See trezor/trezor-mcu#142
2017-01-22 12:16:49 +01:00
Saleem Rashid
72ff43714f Configuration: Add Java package name (#22) 2016-12-21 21:17:12 +01:00
Jochen Hoenicke
61af3d5e93
Matrix Recovery
This adds a new type in the message RecoveryDevice, which can
be used by the host to signal which recovery procedures it supports.
It is a bitfield containing a bit for every supported procedure.
2016-11-23 11:31:35 +01:00
Pavol Rusnak
0b4b667ff1
add u2f_counter field to LoadDevice, ResetDevice, RecoveryDevice 2016-10-31 16:09:56 +01:00
Pavol Rusnak
20c1d05f9d
add extra_data_offset 2016-10-20 13:22:16 +02:00
Pavol Rusnak
07a71eb9c0
add fields for Tx.extra_data 2016-10-19 09:34:00 +02:00
Pavol Rusnak
7c3a4f9dc5
add Features.firmware_present field 2016-09-26 12:45:15 +02:00
Jochen Hoenicke
1a66454066
GetAddress with scripttype
Added script_type field to GetAddress, which can later be
used to display segwit addresses on the Trezor.
2016-07-10 15:21:00 +02:00
Jochen Hoenicke
def589743e
Signing protocol extensions for segwit
Extended InputScriptType and OutputScriptType for witness.
We use the same constant for multisig and normal segwit scripts;
they can be differentiated by the fact that multisig is set.

Added amount to TxInputType (with segwit we can trust it as it
is added to the signed part).
2016-07-10 15:19:29 +02:00
Jochen Hoenicke
203d95b913 new message SetU2FCounter 2016-06-12 23:37:24 +02:00
Pavol Rusnak
70d8ac8f85 Merge pull request #13 from jhoenicke/master
DebugLink Memory access
2016-06-12 22:38:31 +02:00
Roman Zeyde
a11339f171 Add support for ECDH session key generation (according to SLIP-0017) 2016-06-10 22:06:03 +03:00
Jochen Hoenicke
6599d7533c DebugLink Memory access 2016-05-26 20:07:53 +02:00
Alex Beregszaszi
072ca020cf Clarify field limits in EthereumSignTx 2016-05-23 21:08:37 +01:00
Alex Beregszaszi
2b72edf8f3 Include initial data chunk (<= 1024 bytes) in EthereumSignTx 2016-05-23 20:43:40 +01:00
Alex Beregszaszi
4d8cf6f8dd Add support for Ethereum with two new messages: EthereumGetAddress and EthereumSignTx 2016-05-23 20:43:40 +01:00
Pavol Rusnak
36a574056d
add coin to VerifyMessage 2016-05-17 18:06:00 +02:00
Pavol Rusnak
85e1c80cfc
fix last commit 2016-05-17 18:00:03 +02:00
Pavol Rusnak
70482c82ac
add CoinType.signed_message_header 2016-05-17 17:35:03 +02:00
Jochen Hoenicke
81132bb1d4 new address types for segwit 2016-04-27 23:17:56 +02:00
Pavol Rusnak
0567a429cf
fix typo 2016-04-16 04:42:41 +02:00
Pavol Rusnak
5695400c98
add version and lock_time fields to (Simple)SignTx 2016-04-16 04:38:28 +02:00
Pavol Rusnak
9983a12276
add ButtonRequest_PublicKey 2015-11-19 11:23:14 +01:00
Pavol Rusnak
28f26b0de9
add GetPublicKey.show_display 2015-11-19 11:17:09 +01:00
Mark Bryars
a272580741 Add u2f counter to storage 2015-11-03 00:04:48 +01:00
Karel Bílek
4e7196bb92 Making 256 bits default
Making 24 words default (what is already being done in myTREZOR anyway)
2015-07-17 14:26:05 +02:00
Pavol Rusnak
d334bbf740 Merge pull request #6 from romanz/ssh-agent
add ECDSA curve name specification (for SSH authentication)
2015-06-28 21:08:01 +02:00
Roman Zeyde
12288143f5 add ECDSA curve name specification (for SSH authentication) 2015-06-23 14:40:58 +03:00
Pavol Rusnak
e14363eb99 add CipherKeyValue.iv field (optional initialization vector) 2015-06-17 13:57:19 +02:00
Pavol Rusnak
e96ec085d5 add pin_cached + passphrase_cached fields to Features message; add GetFeatures message 2015-03-30 15:38:11 +02:00
Pavol Rusnak
69d476a3ba add SignIdentity, SignedIdentity messages 2015-02-20 16:45:59 +01:00
Pavol Rusnak
201b66a559 introduce home screen 2015-02-04 20:17:10 +01:00
Pavol Rusnak
f5d880c96c enable OP_RETURN output 2015-02-04 15:42:46 +01:00
Pavol Rusnak
60bcde46f5 add CoinType.address_type_p2sh 2014-12-23 01:43:37 +01:00
Pavol Rusnak
94d17ef8bc TxOutputType.multisig should be optional, not repeated 2014-12-15 15:01:37 +01:00
slush0
85e68ff50e Added PAYTOMULTISIG to TxOutputType 2014-12-15 14:56:51 +01:00
slush0
81d89030df Renamed HDPubkeyType to HDNodePathType
Added MultisigRedeemScriptType to TXOutputType for defining multisig output addresses
2014-12-15 14:30:44 +01:00
slush0
40b3cb4148 Added HDPubkeyType and use_passphrase 2014-12-13 16:13:46 +01:00
Pavol Rusnak
437eff319f add GetAddress.multisig field 2014-12-10 15:37:58 +01:00
slush0
3670728fd2 Added 'm' to MultisigRedeemScriptType 2014-12-04 01:06:47 +01:00
Pavol Rusnak
e675d5fd76 rework EncryptMessage/DecryptMessage 2014-11-03 19:43:11 +01:00
Pavol Rusnak
71a02eb83d add coin_name to EncryptMessage 2014-10-30 00:23:32 +01:00
Pavol Rusnak
e2dab40398 add address_n field to EncryptMessage 2014-10-22 17:39:05 +02:00
Pavol Rusnak
5bbe684c10 add GetAddress.show_display; ButtonRequest_Address 2014-08-08 18:08:25 +02:00
Pavol Rusnak
ce8e99465e add PublicKey.xpub 2014-08-07 21:03:26 +02:00
Pavol Rusnak
fc98712da5 add ButtonRequest_FirmwareCheck 2014-07-02 17:54:48 +02:00
Pavol Rusnak
bf7b99fd28 add ClearSession message 2014-06-17 13:32:42 +02:00
Pavol Rusnak
4b9123ab3c change EncryptMessage / DecryptMessage API 2014-06-13 16:32:20 +02:00
Pavol Rusnak
b0d84af06f add EncryptMessage and DecryptMessage 2014-06-12 16:01:31 +02:00
slush0
f264f01314 Added structures for multisig and CipherKeyValue 2014-06-06 00:55:59 +02:00
Pavol Rusnak
4eef0a9866 add missing @used_in 2014-06-05 20:15:38 +02:00
Pavol Rusnak
1865a0428d add imported flag 2014-05-26 00:53:45 +02:00
slush0
e4f9dcd7c9 Stupid compiler, inputs_count is reserved when there's repeated inputs field. 2014-04-17 13:27:18 +02:00
slush0
b678022437 Added inputs_count/outputs_count to TransactionType 2014-04-17 05:51:54 +02:00
Pavol Rusnak
ca952548b7 fix whitespace 2014-04-11 15:22:50 +02:00
slush0
c6bcf54876 Reworked TxRequest message 2014-04-10 14:42:50 +02:00
Pavol Rusnak
28be645370 fix whitespace 2014-04-09 20:19:30 +02:00
slush0
bff8038fad Reworked TxRequest message 2014-04-09 20:15:49 +02:00
Pavol Rusnak
df99b56108 add PassphraseRequest to docu 2014-04-09 19:56:47 +02:00
Pavol Rusnak
8d94d6168f change java package for protobuf classes 2014-04-07 18:01:11 +02:00
Pavol Rusnak
8f7658da89 outputs->bin_outputs, our_outputs->outputs in TransactionType 2014-04-02 20:27:42 +02:00
Pavol Rusnak
52f360ab12 add documentation, remove TxInput/TxOutput messages, use TxAck instead 2014-03-25 19:47:02 +01:00
Pavol Rusnak
df45b3cf06 cosmetic changes 2014-03-23 19:45:25 +01:00
Pavol Rusnak
bfcc001fd2 add bl hash 2014-03-14 15:02:29 +01:00
Pavol Rusnak
2b2d92b924 add revision to Features 2014-03-13 13:48:44 +01:00
slush0
e410acad0a Tool for digitally signing the config for Trezor browser plugin 2014-03-10 19:24:33 +01:00
Pavol Rusnak
d18ad92fc1 use PinMatrixRequestType instead of arbitrary string 2014-03-10 18:09:21 +01:00
Pavol Rusnak
29dfac6691 rename word variables in DebugLinkState message 2014-03-07 17:36:49 +01:00
Pavol Rusnak
f39b54601b add ButtonRequest_SignTx 2014-03-01 12:07:45 +01:00
Pavol Rusnak
4ba03a6c70 use string again where appropriate 2014-03-01 11:17:06 +01:00
slush0
6a5ef6b823 Removed 'address' from HDNodeType 2014-02-21 22:42:41 +01:00
slush0
7755fa0a78 Removed 'version' from HDNodeType
GetPublicKey - removed coin_type
2014-02-21 22:14:41 +01:00
slush0
304de4fc4a DebugLinkState provides internal entropy, added skip_checksum to LoadDevice 2014-02-21 01:50:03 +01:00
slush0
8f80e44fb4 Added word/word_pos fields to DebugLinkState 2014-02-20 18:37:20 +01:00
slush0
f9cfdf01d1 Removed Session 2014-02-19 17:44:03 +01:00
Pavol Rusnak
61e9c2b0a3 256 bytes -> 256 bits 2014-02-17 00:15:15 +01:00
Pavol Rusnak
3da2da096c Failure_NotInitialized 2014-02-11 16:59:24 +01:00
slush0
712a3846b7 Added Failure_NotEnoughFunds 2014-02-09 00:15:03 +01:00
slush0
cc56b5d909 Added enforce_wordlist to RecoveryDevice 2014-02-06 13:25:41 +01:00
slush0
349a845530 Added ButtonRequestType enum 2014-02-06 10:34:50 +01:00
slush0
e973056669 Added ButtonRequestType enum 2014-02-04 17:47:29 +01:00
slush0
682a20e07b Reworked Ping 2014-02-04 17:11:38 +01:00
slush0
0d883b61b2 Added ButtonRequest.code 2014-02-03 23:13:09 +01:00
Pavol Rusnak
8a41dad609 signatures are binary in VerifyMessage/MessageSignature 2014-02-03 15:27:29 +01:00
slush0
3853deed39 Added RecoveryDevice / WordRequest / WordAck 2014-02-02 18:29:37 +01:00
slush0
aadc279741 Added some sugar for easier handling in Multibit 2014-02-02 11:28:43 +01:00
slush0
fdf8c6fc95 Added Features.initialized 2014-02-01 13:41:46 +01:00
Pavol Rusnak
368c31d138 remove coin from session 2014-01-21 19:20:10 +01:00
slush0
78efd80bbc Added EstimateTxSize 2014-01-18 05:14:02 +01:00
Pavol Rusnak
1a42bc3b70 add debuglinklog message 2014-01-09 14:16:03 +01:00
slush0
644d75caff Added fields to LoadDevice/ResetDevice 2014-01-06 01:50:38 +01:00
Pavol Rusnak
8180263d75 don't use serialized hdnode 2013-11-28 02:18:32 +01:00
Pavol Rusnak
2c621ca20f use passphrase_protection fields 2013-11-28 01:05:50 +01:00
Pavol Rusnak
f6180f7711 seed -> mnemonic+node 2013-11-27 23:17:37 +01:00
Pavol Rusnak
bbfefb677c rework storage, session, features 2013-11-26 16:11:19 +01:00
Pavol Rusnak
bb7cdd2166 split trezor.proto into messages.proto and types.proto
unify cancel messages
2013-11-26 15:48:17 +01:00
Pavol Rusnak
949b1c0672 update protofiles 2013-11-26 04:34:48 +01:00
Pavol Rusnak
fccebb724c add protobuf files and udev rules 2013-11-22 17:27:47 +01:00