From ea806d2d65633269da75768947cacd551b19063b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 24 Oct 2025 17:41:50 -0300 Subject: [PATCH] hardcode a NUMS key. --- keys.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/keys.go b/keys.go index 46d0734..9abcb30 100644 --- a/keys.go +++ b/keys.go @@ -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