-
Notifications
You must be signed in to change notification settings - Fork 151
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
Feature/flexible memo #3269
base: main
Are you sure you want to change the base?
Feature/flexible memo #3269
Conversation
8a23aba
to
0c6e10c
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @wjuan-mob and the rest of your teammates on Graphite |
ef0aa0d
to
f8be8e7
Compare
544eafc
to
962582a
Compare
f8be8e7
to
63c4032
Compare
962582a
to
c5b043b
Compare
db24e9e
to
f78296e
Compare
edf0043
to
5958a24
Compare
f78296e
to
7a67b65
Compare
9f8a756
to
bed6d74
Compare
2532518
to
a91a0fe
Compare
f1e6b26
to
e9905e0
Compare
✅ Good job, full-service was built successfully. |
Co-authored-by: Sam Dealy <33067698+samdealy@users.noreply.github.com>
Co-authored-by: Sam Dealy <33067698+samdealy@users.noreply.github.com>
Co-authored-by: Sam Dealy <33067698+samdealy@users.noreply.github.com>
Co-authored-by: Sam Dealy <33067698+samdealy@users.noreply.github.com>
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.
Remove the custom destination memos, don't allow the caller to set custom first type byte.
William has pointed out that this MCIP has paired the payment request id and payment intent id memo types: https://github.com/mobilecoinfoundation/mcips/blob/main/text/0054-rth-payment-id-memos.md So that was why we had flexible change memos. I think we should only allow 0x01 for the authenticated sender memo type bytes, and only 0x02 for the change memo types here, and so restrict the API. We should also allow defaulting either of the flexible memo payload parameters. |
Add a flexible memo generator option to RTHbuilder
Change set payment intent and set payment request to return a result, which will error when one or the other has already been set.
Add tests for flexible memo generation
Add compute_authenticated_sender_memo and compute_destination_memo
Motivation
This is intended to address issue 3200
This should help provide a way for users to quickly add custom memo types which adhere to the authenticatedsender and destination format while taking advantage of the additional unused 32 bytes.
Future Work
Add tests to sample paykit for the flexible memo generation