hdkeychain: update test case error string due to btcec changes

A bug was recently fixed in btcec wherein we would fail to detect
invalid point decompressions for the curve. This how now been fixed, and
as a result, we'll fail an invalid point earlier in the ParsePubKey
method. We update the error string to reflect this change.
This commit is contained in:
Olaoluwa Osuntokun 2018-07-06 15:31:18 -07:00
parent d4cc87b860
commit 5d1446c6ce
No known key found for this signature in database
GPG key ID: 964EA263DD637C21

View file

@ -857,7 +857,7 @@ func TestErrors(t *testing.T) {
{
name: "pubkey not on curve",
key: "xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ1hr9Rwbk95YadvBkQXxzHBSngB8ndpW6QH7zhhsXZ2jHyZqPjk",
err: errors.New("pubkey isn't on secp256k1 curve"),
err: errors.New("invalid square root"),
},
{
name: "unsupported version",