From afd8dfb9b487551ad36a225155fbdf9287ce860a Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 11 Jul 2018 15:04:10 -0700 Subject: [PATCH] lnwallet/script_utils: expose CommitScriptUnencumbered --- lnwallet/script_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwallet/script_utils.go b/lnwallet/script_utils.go index acdff3b49..5afe28395 100644 --- a/lnwallet/script_utils.go +++ b/lnwallet/script_utils.go @@ -953,10 +953,10 @@ func CommitScriptToSelf(csvTimeout uint32, selfKey, revokeKey *btcec.PublicKey) return builder.Script() } -// commitScriptUnencumbered constructs the public key script on the commitment +// CommitScriptUnencumbered constructs the public key script on the commitment // transaction paying to the "other" party. The constructed output is a normal // p2wkh output spendable immediately, requiring no contestation period. -func commitScriptUnencumbered(key *btcec.PublicKey) ([]byte, error) { +func CommitScriptUnencumbered(key *btcec.PublicKey) ([]byte, error) { // This script goes to the "other" party, and it spendable immediately. builder := txscript.NewScriptBuilder() builder.AddOp(txscript.OP_0)