diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 890a3c921..7651a6aa3 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1427,7 +1427,7 @@ func (lc *LightningChannel) createSignDesc() error { localKey := lc.localChanCfg.MultiSigKey.PubKey.SerializeCompressed() remoteKey := lc.remoteChanCfg.MultiSigKey.PubKey.SerializeCompressed() - multiSigScript, err := genMultiSigScript(localKey, remoteKey) + multiSigScript, err := GenMultiSigScript(localKey, remoteKey) if err != nil { return err } diff --git a/lnwallet/script_utils.go b/lnwallet/script_utils.go index 5afe28395..3c7e08f66 100644 --- a/lnwallet/script_utils.go +++ b/lnwallet/script_utils.go @@ -57,9 +57,9 @@ func WitnessScriptHash(witnessScript []byte) ([]byte, error) { return bldr.Script() } -// genMultiSigScript generates the non-p2sh'd multisig script for 2 of 2 +// GenMultiSigScript generates the non-p2sh'd multisig script for 2 of 2 // pubkeys. -func genMultiSigScript(aPub, bPub []byte) ([]byte, error) { +func GenMultiSigScript(aPub, bPub []byte) ([]byte, error) { if len(aPub) != 33 || len(bPub) != 33 { return nil, fmt.Errorf("Pubkey size error. Compressed pubkeys only") } @@ -91,7 +91,7 @@ func GenFundingPkScript(aPub, bPub []byte, amt int64) ([]byte, *wire.TxOut, erro } // First, create the 2-of-2 multi-sig script itself. - witnessScript, err := genMultiSigScript(aPub, bPub) + witnessScript, err := GenMultiSigScript(aPub, bPub) if err != nil { return nil, nil, err }