From 6f6949a0cc312f47c0ffd8bf07e56d610917415c Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 30 Oct 2020 17:42:02 -0400 Subject: [PATCH] remove comments --- verify.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/verify.go b/verify.go index c023cba..a894ad5 100644 --- a/verify.go +++ b/verify.go @@ -104,20 +104,3 @@ func VerifyMessageDER(hash [32]byte, pubKey string, signature string) (verified verified = sig.Verify(hash[:], rawPubKey) return } - -// messageHash will compute a hash for the given message & header -// func messageHash(message, header string) ([]byte, error) { -// headerLength := len(header) -// if headerLength >= 0xfd { -// return nil, fmt.Errorf("long header is not supported") -// } -// messageLength := len(message) -// // if messageLength >= 0xfd { -// // return nil, fmt.Errorf("long message is not supported") -// // } -// bitcoinMsg := string([]byte{byte(headerLength)}) -// bitcoinMsg += header -// bitcoinMsg += string([]byte{byte(messageLength)}) -// bitcoinMsg += message -// return chainhash.DoubleHashB([]byte(bitcoinMsg)), nil -// }