btcec/schnorr/musig2: fix BenchmarkPartialVerify

In this commit, we fix the `BenchmarkPartialVerify` test. When we moved
to musig 1.0, we stopped requiring the input as an x-only key. So we
need to remove the round trip serialization to force the key to be
x-only.
This commit is contained in:
Olaoluwa Osuntokun 2022-11-09 12:47:05 -08:00
parent 31ecaff6fd
commit 55e40f4536
No known key found for this signature in database
GPG key ID: 3BBD59E99B280306

View file

@ -45,12 +45,7 @@ func genSigner(t *testing.B) signer {
t.Fatalf("unable to gen priv key: %v", err) t.Fatalf("unable to gen priv key: %v", err)
} }
pubKey, err := schnorr.ParsePubKey( pubKey := privKey.PubKey()
schnorr.SerializePubKey(privKey.PubKey()),
)
if err != nil {
t.Fatalf("unable to gen key: %v", err)
}
nonces, err := GenNonces(WithPublicKey(pubKey)) nonces, err := GenNonces(WithPublicKey(pubKey))
if err != nil { if err != nil {