-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Ripple protobuf messages #162
Conversation
protob/messages-ripple.proto
Outdated
*/ | ||
message RippleSignTx { | ||
repeated uint32 address_n = 1; // BIP-32 path. For compatibility with other wallets, must be m/44'/144'/index' | ||
optional string account = 2; // source account address. This address must be equal to the one derived from the BIP-32 path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we drop the account
field? It seems redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure about that either. The reason I left it was that it is a confirmation that the user is sending funds from the account they assume. It is used only here.
But I'm not keen on it, maybe it's a bit far-fetched.
4a678c8
to
1226085
Compare
@prusnak I think/hope this is the final version, so it's ready for review |
protob/messages-ripple.proto
Outdated
* - see https://developers.ripple.com/payment.html | ||
*/ | ||
message RipplePayment { | ||
optional uint32 amount = 1; // only XRP is supported at the moment so this an integer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use uint64
here (XRP has precision equivalent to a 64-bit integer)
protob/messages-ripple.proto
Outdated
*/ | ||
message RippleSignTx { | ||
repeated uint32 address_n = 1; // BIP-32 path. For compatibility with other wallets, must be m/44'/144'/index' | ||
optional uint32 fee = 2; // fee (in drops) for the transaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe uint64
here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're correct. Same goes for the payment's amount
, nice catch. I've fixed both
1226085
to
1082676
Compare
LGTM Merged |
Adds Ripple protobuf messages. Other Ripple PRs will follow in trezor-core and trezor-python after this is merged.