Skip to content
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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Feature/flexible memo #3269

wants to merge 20 commits into from

Conversation

wjuan-mob
Copy link
Contributor

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

@wjuan-mob
Copy link
Contributor Author

wjuan-mob commented Mar 22, 2023

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @wjuan-mob and the rest of your teammates on Graphite Graphite

@wjuan-mob wjuan-mob changed the base branch from master to chore/cleanup-memo-handler-for-memo-with-data March 23, 2023 05:39
Base automatically changed from chore/cleanup-memo-handler-for-memo-with-data to feature/add_new_memo_with_data_types March 23, 2023 07:30
@wjuan-mob wjuan-mob force-pushed the feature/add_new_memo_with_data_types branch from 544eafc to 962582a Compare March 23, 2023 19:53
@wjuan-mob wjuan-mob force-pushed the feature/add_new_memo_with_data_types branch from 962582a to c5b043b Compare March 23, 2023 20:49
@wjuan-mob wjuan-mob force-pushed the feature/flexible-memo branch 3 times, most recently from db24e9e to f78296e Compare March 23, 2023 21:21
@wjuan-mob wjuan-mob force-pushed the feature/add_new_memo_with_data_types branch from edf0043 to 5958a24 Compare March 23, 2023 21:42
@wjuan-mob wjuan-mob marked this pull request as ready for review March 27, 2023 19:09
@wjuan-mob wjuan-mob requested review from cbeck88, nick-mobilecoin, dolanbernard, a team, jcape and samdealy and removed request for nick-mobilecoin and a team March 27, 2023 19:09
Base automatically changed from feature/add_new_memo_with_data_types to master April 6, 2023 17:02
@wjuan-mob wjuan-mob force-pushed the feature/flexible-memo branch 2 times, most recently from 2532518 to a91a0fe Compare April 11, 2023 07:46
@github-actions
Copy link

✅ Good job, full-service was built successfully.
Build logs can be found by inspecting the github action run Check that repositories submoduling us will still build after this PR / full-service or by clicking here.

@wjuan-mob wjuan-mob requested a review from samdealy April 18, 2023 04:42
wjuan-mob and others added 4 commits April 19, 2023 13:54
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>
Copy link
Contributor

@cbeck88 cbeck88 left a 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.

@cbeck88
Copy link
Contributor

cbeck88 commented Apr 19, 2023

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.

@wjuan-mob wjuan-mob requested a review from cbeck88 April 25, 2023 19:02
@joekottke joekottke removed the request for review from jcape July 5, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Changes Requested
Development

Successfully merging this pull request may close these issues.

None yet

4 participants