Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Oct 30, 2020
1 parent bc2cf3a commit 6f6949a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// }

0 comments on commit 6f6949a

Please sign in to comment.