Skip to content

Conversation

@nogringo
Copy link
Collaborator

A bad relay can serve bad events and NDK will never notice. Bad events can be an event with the content updated by the relay operator.

@1-leo
Copy link
Contributor

1-leo commented Dec 22, 2025

  • bip340 event verifier affected

@nogringo nogringo requested review from 1-leo and frnandu December 23, 2025 12:20
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.72%. Comparing base (937541a) to head (ac2fa10).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #346   +/-   ##
=======================================
  Coverage   70.72%   70.72%           
=======================================
  Files         136      136           
  Lines        5069     5070    +1     
=======================================
+ Hits         3585     3586    +1     
  Misses       1484     1484           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

class Bip340EventVerifier implements EventVerifier {
@override
Future<bool> verify(Nip01Event event) async {
if (!event.isIdValid) return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need to change to
Nip01Utils.isIdValid(event)
after #332 is merged...

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

Successfully merging this pull request may close these issues.

4 participants