-
Notifications
You must be signed in to change notification settings - Fork 43
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
synchronize BIP 77 with code #458
Comments
I started pushing these changes to a secondary branch so I don't interrupt the reviewers until we're ready for a review. FYI Note that Short IDs likely also need to be uppercase since they're parsed as having a case-sensitive bech32 HRP in our code, too |
Yes, with the same rationale as fragment parameter, although the |
77 links to the draft RFC. What more would make it sufficiently unambiguous?
|
Pushed changes to the secondary branch |
#480 must be addressed for our implementation to be in sync with spec, which BIP 77 relies on, as must all existing Payjoin implementations |
Was it a mistake to use different
The default According to RFC 9180, the info parameter serves as application-supplied information that can be used to influence key derivation. It's used in both the key schedule context and in the key derivation process. Do we even need it? Is it worth removing it to reduce complexity? |
I'm going to mark DHKEM on the draft RFC as unambiguous unless you raise a further concern. |
I believe these additional strings are appropriate, both in general (domain separators considered a good practice) and in particular, because although this might be superfluous in BIP 77 due to the use of ephemeral keys in both messages, in the context of a backwards compatible extension where the same pubkey might be used for two different protocols (e.g. the multiparty payjoin experiments) this can help clients reliably distinguish versions. |
Do you think it's also appropriate to have 2 separate info strings, one for a and one for b? |
Yes, again both in general and in particular, especially now that both messages appear in the same namespace (i.e. the directory is a key value store where short IDs are keys and values are the union of both message types, and potentially arbitrary future message types) |
I pushed to the bips repo. We're synced now, but missing the yet-to-be-defined-or-implemented ohttp relay payjoin directory relationship |
The BIP 77 spec is not fully up to date with these changes:
pub const INFO_A: &[u8; 8] = b"PjV2MsgA";, pub const INFO_B: &[u8; 8] = b"PjV2MsgB";
Additionally the document can be improved:
The text was updated successfully, but these errors were encountered: