Closed quentintaranpino closed 11 months ago
Yes, validation is something that is definitely needed!
We're closing to getting #14 in which reorganizes the (base) classes and interfaces a bit. After that, it should become much easier to add validation (methods) and/or exceptions!
Ok, thank you!
For work later on how it's done in other libs:
https://github.com/nbd-wtf/nostr-tools/blob/5539e5cf896d7aad0849e2ac8b002def6f513750/event.ts#L81 https://github.com/ethicnology/dart-nostr/blob/develop/lib/src/event.dart#L328
Another resource, it will be compatible?
More information, I've tried to integrate it myself but I don't have enough experience with this.
https://github.com/phpecc/phpecc/blob/master/examples/verify_signature.php
Create a new method to verify if a nostr event is well formed and also of course well signed.