Skip to content

Do Receive checklist - #1

Merged
DanGould merged 7 commits into
payjoin:masterfrom
DanGould:receive-checklist
Nov 21, 2022
Merged

DanGould merged 7 commits into
payjoin:masterfrom
DanGould:receive-checklist

Conversation

@DanGould

@DanGould DanGould commented Jul 7, 2022

Copy link
Copy Markdown
Member

The first patch uses bitflags to modify SuspectProposal instead of UncheckedProposal, since it's in a suspicious state across many checks. Using flags allows those checks to be done in any order, then try to convert it to UnlockedProposal that has been checked. Maybe CheckedProposal is a better name for pre-locked state.

The second patch attemts to return "Well Known Errors" according to the spec. I have a hunch they're in the wrong place in bip78::receiver::error::InternalRequestError

closes Kixunil#26

@DanGould
DanGould force-pushed the receive-checklist branch 3 times, most recently from 704929d to 47567c5 Compare July 8, 2022 05:59
@DanGould
DanGould force-pushed the receive-checklist branch 4 times, most recently from b169d53 to 52fe533 Compare July 14, 2022 15:10
@DanGould
DanGould force-pushed the receive-checklist branch 5 times, most recently from 8bcd838 to 39b275a Compare August 1, 2022 03:34
@DanGould
DanGould force-pushed the receive-checklist branch 2 times, most recently from 4baadcc to 4544624 Compare August 12, 2022 11:02
DanGould and others added 2 commits October 13, 2022 12:28
[Content Type Spec](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type)'s *media/mime type* has to be `"text/plain"`, but a valid content-type could be `text/plain; charset=UTF-8` as in wasabi.

Even the bip78 spec says "with text/plain *in* the Content-Type HTTP header"
Check !content_type.starts_with("text/plain")
@DanGould

Copy link
Copy Markdown
Member Author

This has been given approval in Kixunil#27 (comment), waiting for second pass. Merging here

@DanGould
DanGould merged commit d895b88 into payjoin:master Nov 21, 2022
@DanGould
DanGould deleted the receive-checklist branch February 2, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Receive: Do Checklist

2 participants