hardcode a NUMS key.

This commit is contained in:
fiatjaf
2025-10-24 17:41:50 -03:00
parent 9fbf3ea165
commit ea806d2d65

View File

@@ -89,7 +89,13 @@ func GetPublicKey(sk [32]byte) PubKey {
return [32]byte(pk.SerializeCompressed()[1:])
}
var ZeroPK = PubKey{}
var (
ZeroPK = PubKey{}
// this special public key doesn't have a secret key known to anyone,
// it corresponds to the hash of the block #3 of bitcoin (the first 3 block hashes are not valid public keys)
NUMS = MustPubKeyFromHex("0000000082b5015589a3fdf2d4baff403e6f0be035a5d9742c1cae6295464449")
)
type PubKey [32]byte