convert to using nostrlib.

This commit is contained in:
fiatjaf
2025-04-20 18:11:21 -03:00
parent 1b43dbda02
commit d733a31898
32 changed files with 568 additions and 418 deletions

View File

@@ -3,8 +3,8 @@ package main
import (
"context"
"fiatjaf.com/nostr"
"github.com/urfave/cli/v3"
"github.com/nbd-wtf/go-nostr"
)
var verify = &cli.Command{
@@ -30,8 +30,8 @@ it outputs nothing if the verification is successful.`,
continue
}
if ok, err := evt.CheckSignature(); !ok {
ctx = lineProcessingError(ctx, "invalid signature: %v", err)
if !evt.VerifySignature() {
ctx = lineProcessingError(ctx, "invalid signature")
continue
}
}