From 62a819bc06148369dbecb3875522a4c12210f600 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Mon, 27 May 2024 09:30:30 +0100 Subject: [PATCH] Add verbose output for signature. --- cmd/signature.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/signature.go b/cmd/signature.go index 7990531..f32802e 100644 --- a/cmd/signature.go +++ b/cmd/signature.go @@ -91,7 +91,9 @@ func generateDataHash() []byte { outputIf(verbose, fmt.Sprintf("Data is %x", data)) // Hash if required. - if !signatureNoHash { + if signatureNoHash { + outputIf(verbose, "Data is not being hashed") + } else { // Hash the data. data = crypto.Keccak256(data) outputIf(verbose, fmt.Sprintf("Hashed data is %x", data))