Release 2.0.0

This commit is contained in:
Santiago Lezica
2021-01-29 18:51:08 -03:00
parent 8107c4478b
commit cef49eff22
209 changed files with 70157 additions and 926 deletions

View File

@@ -1,11 +1,13 @@
package libwallet
import (
"errors"
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/muun/libwallet/swaps"
"github.com/pkg/errors"
)
type coinSubmarineSwapV2 struct {
@@ -26,11 +28,11 @@ func (c *coinSubmarineSwapV2) SignInput(index int, tx *wire.MsgTx, userKey *HDPr
userKey, err := userKey.DeriveTo(c.KeyPath)
if err != nil {
return errors.Wrapf(err, "failed to derive user key")
return fmt.Errorf("failed to derive user key: %w", err)
}
if len(c.ServerSignature) == 0 {
return errors.Errorf("Swap server must provide signature")
return errors.New("swap server must provide signature")
}
witnessScript, err := swaps.CreateWitnessScriptSubmarineSwapV2(