-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add Notation data support in subpackets #33
Conversation
Dear maintainers, will this get reviewed? |
Hi folks! 👋 Some people brought it to my attention that notation support is critical to their use case, e.g. writing Keyoxide-compatible tools (Keybase-like decentralized bidirectional proof systems) in Go. If conflicts are the only thing preventing the merge I know some people even have fixed that in their forks (@omz13) and could raise a fix-up PR if that's the only concern. Would that be an acceptable resolution? Thanks for your time! CC: @twiss, @wussler. (I'll use this occasion to plug an ad that Sequoia PGP has a nice and full support for notations! 😅 haha) |
Hi @wiktor-k, thank you for your interest. We've seen there is quite some push for this feature, and will take care of merging this PR! |
Thank you, very, very much! 🙇 Have a nice day! |
Hey 👋 Thanks! I think there is one thing missing which is some handling of known / unknown notations. Currently this code will accept all notations but we should reject them if they're critical and unknown. In OpenPGP.js we have config.knownNotations for this purpose, we could add something similar here. |
Good point @twiss, I should have remembered that! 😅 |
Right :D Thanks for pushing this forward in all our implementations ^.^ |
The |
Yeah, let's change it to type Notation struct {
Name string
Value []byte
HumanReadable bool
Critical bool
} and get rid of the getters, that will make the API a bit simpler as well. |
IsHumanReadable?
IsCritical?
Yep. No need for getters. |
Yeah, maybe that's better 👍 |
I just noticed (for the record) that my old commit contains quite a few examples that could be used in unit tests for critical notations here: |
Leaving this on hold until we find a way to pass the notation data for signature validation in key parsing |
I've added @wiktor-k thanks for the link to the test case, I've added it here as well :) |
Thanks everyone! 👏 Great to see this finally being in! 👍 Have a great evening! 👋 |
Thanks, you too :) |
Many many many thanks! |
see #27