-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Signing event with self-referencing p tag discards the tag #736
Comments
Ref #736 Signed-off-by: Yuki Kishimoto <[email protected]>
Maybe it should be allowed to be included when using |
The purpose is that I use an own event kind for tracking tasks, and use the p-tag to assign somebody to the task. |
This is from NIP01: "The What if by default the self-tagging is not allowed, but enabling an option, it's allowed. Or the opposite? Allow self-tagging only if explicitly enabled: let event = builder.allow_self_tagging().sign(signer).await?; The opposite, allow self-tagging by default and prevent it by calling a method: let event = builder.prevent_self_tagging().sign(signer).await?; |
Describe the bug
When creating an EventBuilder with a "p"-tag that contains the public key of the key that the event is signed with, the "p"-tag is discarded
To Reproduce
example output:
Expected behavior
No discarding, unless that is something that may be in the spec?
Build environment
The text was updated successfully, but these errors were encountered: