-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SignTx should contain the signed definition of the used coin/token #15
Comments
We were already thinking about this, there is already some tooling in the trezor-common repo (where I will move the issue). |
Another option is to have a flow that is similar to An alternative to this is that |
We also need to consider the problem of I can think of a key update mechanism which would work without the need to update firmware. That way Suite could just maintain a list of the latest coin definitions. Such a key update system would be useful to have in other places as well. |
Let's make sure this is something we absolutely need, so we don't generate the effort just for the sake of being able to generating the effort. So far I don't see a strong reason for this for |
If we only need to revoke the definition (and not the signing key), we can add a version counter to the |
This is mainly part of the effort to free up flash space. We might leave out |
The plan so far looks like this: Firmware side
Backend
Clients
|
At the very least, we need |
I agree, we don't need to keep older versions, the I will edit my comment to reflect your notes. |
I think this should also be optional
Maybe we want both? So the prefix would be "magic" (version of the format), "type", "version" (version of the data) |
Good point. I originally thought that it makes no sense to omit |
Ok, could be useful if we would need to change the format somehow in the future. |
TODO: We also need to formulate a response plan in case the signing key gets compromised. |
FW (TT)
FW (T1)
Definitions
Connect
|
We've found out, that we have a size issue with the generated definitions. Currently all the generated definitions together have around 61MB, zipped it's 13MB. We will try to downsize them. |
If I'm reading this right, the
CoinInfo
object is being built from a static table defined a compile-time.What are the thoughts of allowing the
CoinInfo
object to be passed in (marshalled) as a protobuf toSignTx
. This would allow new bitcoin forks or those testing new coins to self-add trezor support so long as the deviation from bitcoin signing protocols could be contained in the prevailingcoins.json
structures.Likely some gotcha's that I haven't thought of, but I'm curious as to your take.
The text was updated successfully, but these errors were encountered: