Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Nov 1, 2020
1 parent 29280d6 commit 2f4c489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func VerifyMessage(address, sig, data string) error {
if bsvecAddress.EncodeAddress() == address {
return nil
}
return fmt.Errorf("address: %s not found vs %s", address, bsvecAddress.EncodeAddress())
return fmt.Errorf("Address (%s) not found. Was compressed: %t\n%s was found instead", address, wasCompressed, bsvecAddress.EncodeAddress())
}

// VerifyMessageDER will take a message string, a public key string and a signature string
Expand Down
6 changes: 3 additions & 3 deletions verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func TestVerifyMessage(t *testing.T) {
expectedError bool
}{
{
"1LN5p7Eg9Zju1b4g4eFPTBMPoMZGCxzrET",
"H+zZagsyz7ioC/ZOa5EwsaKice0vs2BvZ0ljgkFHxD3vGsMlGeD4sXHEcfbI4h8lP29VitSBdf4A+nHXih7svf4=",
"This is a test message",
"12SsqqYk43kggMBpSvWHwJwR31NsgMePKS",
"HFxPx8JHsCiivB+DW/RgNpCLT6yG3j436cUNWKekV3ORBrHNChIjeVReyAco7PVmmDtVD3POs9FhDlm/nk5I6O8=",
"test message",
false,
},
{
Expand Down

0 comments on commit 2f4c489

Please sign in to comment.