From 1a43f8099cbce59b285993d284c3f8672de6e997 Mon Sep 17 00:00:00 2001 From: Mohamed Awnallah Date: Sat, 30 Mar 2024 11:24:25 +0200 Subject: [PATCH] chaincfg/chainhash/hash.go: add BIP0322 generic signed message tag --- chaincfg/chainhash/hash.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chaincfg/chainhash/hash.go b/chaincfg/chainhash/hash.go index 4aa7aeb64c..cb9c53fd1b 100644 --- a/chaincfg/chainhash/hash.go +++ b/chaincfg/chainhash/hash.go @@ -19,6 +19,9 @@ const HashSize = 32 const MaxHashStringSize = HashSize * 2 var ( + // TagBIP0322SignedMsg is the BIP-0322 tag for generic signed messages. + TagBIP0322SignedMsg = []byte("BIP0322-signed-message") + // TagBIP0340Challenge is the BIP-0340 tag for challenges. TagBIP0340Challenge = []byte("BIP0340/challenge")