Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the changes necessary for adding Reddcoin support on the KeepKey hardware wallet.
Explanation of code changes:
timestamp
(UNIX little-endian) field appended at the end during serialization. That field has been added to the relevant code parts and changes made to accommodate that.timestamp
field support in protobufs definition.[SignTx]
and[PrevTxMeta]
message needs to include a non-zerouint32 timestamp
value from the host. Omitting this field(or0
value) meanstimestamp
won't be serialized as part of final rawtransaction. It's done this way to keep compatibility with other btc-style transactions like Bitcoin Cash, Dogecoin, Dash etc. since that field is always omitted.Note about reddcoin transaction. The
timestamp
does not participate in the prehash that's being signed but it does participate in the final txid hash. This means for a reddcoin transaction, thetimestamp
could be modified without invalidating the signature but will change the txid.Also note most of the changes involving
timestamp
are just backported from https://github.com/keepkey/trezor-firmware/blob/f4e6a4ed2a4f0bb7cf82b4e143f16a73e7845779/legacy/firmware/signing.c but adapted to work with reddcoin.