Merge pull request #1920 from Roasbeef/musig2-benchmark-fix

btcec/schnorr/musig2: fix BenchmarkPartialVerify
This commit is contained in:
Olaoluwa Osuntokun 2022-11-09 16:51:36 -08:00 committed by GitHub
commit 4350859a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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