Skip to content

Commit

Permalink
btcec/schnorr/musig2: fix BenchmarkPartialVerify
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roasbeef committed Nov 9, 2022
1 parent 31ecaff commit 55e40f4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions btcec/schnorr/musig2/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 55e40f4

Please sign in to comment.