Skip to content
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

Generate OTS for an event #1542

Open
alexgleason opened this issue Oct 22, 2024 · 1 comment
Open

Generate OTS for an event #1542

alexgleason opened this issue Oct 22, 2024 · 1 comment

Comments

@alexgleason
Copy link
Member

I was reading the key migration proposal and learning about NIP-03 and OTS. I think NIP-03 is underspec'd. Do you generate the OTS from the event ID itself, or the SHA-256 of the event ID? In other words, is the OTS "document" the unhashed serialized event, or is it the event ID itself which OTS sha256 hashes again? Including an example of how to create the proof would be very helpful.

@fiatjaf
Copy link
Member

fiatjaf commented Oct 22, 2024

It's the event id directly, since it's already a sha256 of the event.

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

No branches or pull requests

2 participants