diff --git a/verify.go b/verify.go index a4e10fd..b4effa5 100644 --- a/verify.go +++ b/verify.go @@ -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 diff --git a/verify_test.go b/verify_test.go index 7d472d0..d22fcf6 100644 --- a/verify_test.go +++ b/verify_test.go @@ -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, }, {