fix CheckSignature(): we were parsing the pubkey with the ECDSA function instead of Schnorr.
This commit is contained in:
2
event.go
2
event.go
@@ -75,7 +75,7 @@ func (evt Event) CheckSignature() (bool, error) {
|
||||
return false, fmt.Errorf("event pubkey '%s' is invalid hex: %w", evt.PubKey, err)
|
||||
}
|
||||
|
||||
pubkey, err := btcec.ParsePubKey(pk)
|
||||
pubkey, err := schnorr.ParsePubKey(pk)
|
||||
if err != nil {
|
||||
return false, fmt.Errorf("event has invalid pubkey '%s': %w", evt.PubKey, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user