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 committed 2023-02-03 18:30:09 +01:00
1 parent 13789f5d95
commit cb9f2d0398
3 files changed
+30 -10

No files matched your search

+3 -1
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)
}