mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-13 11:35:52 +01:00
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:
parent
31ecaff6fd
commit
55e40f4536
1 changed files with 1 additions and 6 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue