fix tests in a bunch of places.

This commit is contained in:
fiatjaf
2025-05-17 10:43:30 -03:00
parent df5f42aa5e
commit 81fd999a8d
5 changed files with 20 additions and 12 deletions

View File

@@ -158,7 +158,7 @@ func GenerateConversationKey(pub nostr.PubKey, sk nostr.SecretKey) ([32]byte, er
var ck [32]byte
if bytes.Compare(sk[:], maxThreshold) != -1 || sk == [32]byte{} {
return ck, fmt.Errorf("invalid private key: x coordinate %x is not on the secp256k1 curve", sk)
return ck, fmt.Errorf("invalid private key: x coordinate %x is not on the secp256k1 curve", sk[:])
}
shared, err := computeSharedSecret(pub, sk)