-
Notifications
You must be signed in to change notification settings - Fork 152
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
[ZIP 302] Standardized Memo Field Format #105
Conversation
08d1cb3
to
6e25e6b
Compare
Updated, needs ACK or review |
Hold on, @arcalinea , you wrote that if the first byte is |
Someone just asked me for this standard. My vague memory is that I had a few issues with the version in this pull request, and I intended to submit some revisions to the spec myself... Maybe something from my draft that I didn't think was correctly integrated into this draft ? I vaguely remember that one thing I didn't like was that this draft allowed multiple possible encodings of certain things, e.g. "there is no memo here" could be encoded by either an empty string or a special flag byte, or something, and I wanted to squeeze out as many such redundancies or ambiguities as possible and make it so that there was only one legal encoding for "there is no memo here" and only one legal encoding for as many other things as I could think of. Anyway, I'm going to give the requester (an important software developer partner) a link to this github comment as a stopgap. ¯\(ツ)/¯ It would be great to get this finalized as a ZIP! I think the next steps are:
|
P.S. Oh, here is an important detail: for step 1 in #105 (comment), check how |
I propose we merge this draft into Also, I would like for it to have a short unique human-friendly identifier (probably a ZIP number) even though this is in proposal status, so that I can refer to it elsewhere, such as tickets like zcash/zcash#2933 where I currently have hyperlinks. |
I concur with @nathan-at-least my current process for accessing the draft is to visit this URL and click "Files changed". This process is not convenient for sharing. |
@daira @nathan-at-least @arcalinea I've been pondering a reasonable organization for said issue set. One possible approach (the simplest?) would be to open the issues in this repo, and have a tag associated with the ZIP (proposal). My intention is to poke around this repo looking for policies about "issues". If it's consistent with whatever I find, and no-one objects, I will open 1 issue for each of @zookozcash 's first 3 list items. Again barring objection, I will tag each issue "ZIP 302". |
+ the type — an integer in [0…2⁶⁴) | ||
+ the length — an integer in [0…510) | ||
+ a byte string of that length which contains the payload | ||
+ If byte 0's value is 0xF6, then the user supplied no memo, and the encrypted memo field should be assumed to be empty. |
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.
See @zookozcash 's comment: #105 (comment)
@daira I have a couple of questions for you (when you get a chance): (0) Do you have a set of memo fields, or memo-field like datasets you'd like to see (or have already seen) submitted to e.g. (1) For purposes of submitting malformed memo fields to consumers: e.g. non-zero padded, to e.g. http://z-board.net/ do you have a recommended approach (a python, or pytest module, or howto/readme link)? Should I be looking somewhere in |
ZecWallet is currently using several "conventions" that I would love to standardize in the memo field as well.
What's the best way for me to contribute to this ZIP? Should I submit a pull request to this branch? |
@adityapk00 please submit a PR with a new ZIP draft. This ZIP is for the generic memo field encoding, while your suggestions are specific use cases that would reference this ZIP (if only to say that your use cases would just use the text version of the memo field). |
8d18359
to
a4e93de
Compare
94ef770
to
14fa059
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.
Request for clarification of the 0xF5 case.
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.
Reviewed and ACK'ed with @daira
Fixes https://github.com/zcash/zcash/issues/1849
Fixes #366