Skip to content

Commit

Permalink
Add verbose output for signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed May 27, 2024
1 parent bebfd33 commit 62a819b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 62a819b

Please sign in to comment.