input+lnrpc: make key sorting optional in input pkg

To allow us to properly test all test vectors, we can't default to true
on key sorting. Instead we add a parameter to the input package and move
the default value to the RPC server.
This commit is contained in:
Oliver Gugger
2023-01-27 16:13:14 +01:00
parent 13789f5d95
commit cb9f2d0398
3 changed files with 30 additions and 10 deletions

View File

@@ -840,7 +840,9 @@ func (s *Server) MuSig2CombineKeys(_ context.Context,
}
// Combine the keys now without creating a session in memory.
combinedKey, err := input.MuSig2CombineKeys(allSignerPubKeys, tweaks)
combinedKey, err := input.MuSig2CombineKeys(
allSignerPubKeys, true, tweaks,
)
if err != nil {
return nil, fmt.Errorf("error combining keys: %v", err)
}