@@ -274,22 +274,6 @@ func mustParseHex(str string) []byte {
274
274
return b
275
275
}
276
276
277
- func parseKey (xHex string ) * btcec.PublicKey {
278
- xB , err := hex .DecodeString (xHex )
279
- if err != nil {
280
- panic (err )
281
- }
282
-
283
- var x , y btcec.FieldVal
284
- x .SetByteSlice (xB )
285
- if ! btcec .DecompressY (& x , false , & y ) {
286
- panic ("x not on curve" )
287
- }
288
- y .Normalize ()
289
-
290
- return btcec .NewPublicKey (& x , & y )
291
- }
292
-
293
277
var (
294
278
signSetPrivKey , _ = btcec .PrivKeyFromBytes (
295
279
mustParseHex ("7FB9E0E687ADA1EEBF7ECFE2F21E73EBDB51A7D450948DF" +
@@ -306,9 +290,6 @@ var (
306
290
signSetKey3 = mustParseHex ("DFF1D77F2A671C5F36183726DB2341BE58FEAE1DA" +
307
291
"2DECED843240F7B502BA659" )
308
292
309
- invalidSetKey1 = mustParseHex ("00000000000000000000000000000000" +
310
- "00000000000000000000000000000007" )
311
-
312
293
signExpected1 = mustParseHex ("68537CC5234E505BD14061F8DA9E90C220A1818" +
313
294
"55FD8BDB7F127BB12403B4D3B" )
314
295
signExpected2 = mustParseHex ("2DF67BFFF18E3DE797E13C6475C963048138DAE" +
@@ -970,14 +951,6 @@ func (s signerSet) pubNonces() [][PubNonceSize]byte {
970
951
return nonces
971
952
}
972
953
973
- func (s signerSet ) combinedKey () * btcec.PublicKey {
974
- uniqueKeyIndex := secondUniqueKeyIndex (s .keys (), false )
975
- key , _ , _ , _ := AggregateKeys (
976
- s .keys (), false , WithUniqueKeyIndex (uniqueKeyIndex ),
977
- )
978
- return key .FinalKey
979
- }
980
-
981
954
// testMultiPartySign executes a multi-party signing context w/ 100 signers.
982
955
func testMultiPartySign (t * testing.T , taprootTweak []byte ,
983
956
tweaks ... KeyTweakDesc ) {
0 commit comments