Comments (3)
The idea is that you should be able to not do anything and things would still work. But if you're rejecting everything that has extra fields than you'll reject these and that may be a problem for clients that use NIP-03, so they may stop using your relay or not.
Or if you're removing the extra fields before storing the event then the event should still validate fine for everybody who download it from your relay and just not have that extra field. Which is not the worst thing in the world.
But I think that indicates NIP-03 is bad. I naïvely assumed relays would store the events in raw format as received, but that assumption is not good. For example, it allows one to make events that are filled with garbage in non-standard keys, and that is not good.
For NIP-03 specifically this is not possible, but in future NIPs if an extra field must be added we must make sure it is either a tag or part of the content.
Does that make sense?
from nostr.
Oh, about the duplicate events I think that shouldn't be an issue. I imagine clients will probably add the first ots
field before publishing the event to any relay.
But in any case accepting the first event with each id is probably the saner approach. My relay is also doing that.
from nostr.
From the NIP:
The event id MUST be used as the raw hash to be included in the OpenTimestamps merkle tree.
@scsibug re:
If a client sends an event that includes an ots field, should that be used for serialization to determine the event ID and verifying a signature? Or is it simply ignored for signature validation, and passed along if present?
The event id is in the OTS file, so, the ots field cant change the event id or be part of the serialization
It's meta data, essentially. What is says is that this event has proof of publication at a certain time
Also it cant go in a tag, as that would then change the event id again
from nostr.
Related Issues (20)
- Typos in URLs on nostr.com/contribute HOT 1
- Any IRC channels? HOT 1
- "Get started" guide is broken in many places HOT 2
- Missing License Information HOT 1
- Nostr Improvement Proposal: Relay-Hosted Personalized Dictionaries HOT 1
- Given the protection from bans this protocol enforces, can you reassure me that this is a suitable place for my hate speech HOT 4
- nostr is more than a twitter replacement?
- An idea to use nostr to publish torrents and encourage seeding
- Using the new passkey FIDO standard with nostr
- Associating images and notes in a relay to use nostr as diary HOT 1
- (resolved) Trying to implement NIP01, but ["NOTICE","could not parse command"] HOT 4
- Web3 TLD .nostr domain names are now available.
- adding wallet
- What is the verb for nostr when we reference a note ? HOT 3
- Add AGPL-3.0 license HOT 3
- Nostr
- Support for anonymizing networks HOT 5
- Standardizing p2p software development collaborative platform: HOT 4
- Invalid Event ID HOT 1
- Profile recovery idea if nsec is compromised HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nostr.