Skip to content

Commit 2f4c489

Browse files
committed
add log
1 parent 29280d6 commit 2f4c489

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func VerifyMessage(address, sig, data string) error {
6565
if bsvecAddress.EncodeAddress() == address {
6666
return nil
6767
}
68-
return fmt.Errorf("address: %s not found vs %s", address, bsvecAddress.EncodeAddress())
68+
return fmt.Errorf("Address (%s) not found. Was compressed: %t\n%s was found instead", address, wasCompressed, bsvecAddress.EncodeAddress())
6969
}
7070

7171
// VerifyMessageDER will take a message string, a public key string and a signature string

verify_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ func TestVerifyMessage(t *testing.T) {
2727
expectedError bool
2828
}{
2929
{
30-
"1LN5p7Eg9Zju1b4g4eFPTBMPoMZGCxzrET",
31-
"H+zZagsyz7ioC/ZOa5EwsaKice0vs2BvZ0ljgkFHxD3vGsMlGeD4sXHEcfbI4h8lP29VitSBdf4A+nHXih7svf4=",
32-
"This is a test message",
30+
"12SsqqYk43kggMBpSvWHwJwR31NsgMePKS",
31+
"HFxPx8JHsCiivB+DW/RgNpCLT6yG3j436cUNWKekV3ORBrHNChIjeVReyAco7PVmmDtVD3POs9FhDlm/nk5I6O8=",
32+
"test message",
3333
false,
3434
},
3535
{

0 commit comments

Comments
 (0)