other useless quibbles.

This commit is contained in:
fiatjaf
2025-09-23 12:29:55 -03:00
parent 5727c1e477
commit 8b8693f4bf
4 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ func (evt *Event) Sign(secretKey [32]byte) error {
sk, pk := btcec.PrivKeyFromBytes(secretKey[:])
pkBytes := pk.SerializeCompressed()[1:]
evt.PubKey = [32]byte(pkBytes)
evt.PubKey = PubKey(pkBytes)
h := sha256.Sum256(evt.Serialize())
sig, err := schnorr.Sign(sk, h[:], schnorr.FastSign())