-
Notifications
You must be signed in to change notification settings - Fork 956
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
Extend transactions with memo sections #2358
Conversation
b2a3789
to
afcc858
Compare
should we also provide a way to set this from cli? |
@tzemanovic absolutely, will add a cli arg for this! |
d6f104d
to
e8d6268
Compare
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.
Thanks for the changes. I'm just worried about a few things: keeping the Tx
size down so it can fit on the hardware wallet RAM, keeping the size of hardware wallet Tx
parsers down so that they can fit in memory, assumptions about the ordering of Memo
sections, and the necessary signers for a memo section to be accepted.
core/src/proto/types.rs
Outdated
Deserialize, | ||
)] | ||
pub struct Memo { | ||
inner: Vec<u8>, |
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.
It seems that only 3kB of RAM is available to Ledger Nano S apps. To reduce transaction size, I wonder if it's worth allowing the inner
field to either be the full content or its hash by using the Commitment
enumeration (like the Code
section does)?
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.
currently, we're always submitting the full data to the hardware wallet. submitting only the commitment can be done in a separate (future) pr
e8d6268
to
bf56adf
Compare
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.
The CI seems to be failing in some parts. Do you know the cause by any chance? Otherwise this looks good to me, thanks!
bf56adf
to
d8657f0
Compare
d8657f0
to
6bfb9a5
Compare
6bfb9a5
to
204803c
Compare
* origin/tiago/tx-memo-field: Changelog for #2358 Regen pre-genesis tx signatures Rebuild test wasms Add tx memo CLI arg Attach memo to tx if it is present in sdk args Add memo to the sdk's tx args Extend transactions with memo sections
Describe your changes
Closes #2354
Indicate on which release or other PRs this topic is based on
v0.29.0
Checklist before merging to
draft