input: restore usage of NUMS key for to_remote output

In this commit, we restore usage of the NUMS key for the to remote
output, as this allows a remote party to scan the chain in order to find
their remote output that in emergency recovery scenarios.
This commit is contained in:
Olaoluwa Osuntokun
2023-05-23 16:49:26 -07:00
parent 5e921376c4
commit 7f05c765c3
2 changed files with 47 additions and 18 deletions

View File

@@ -927,7 +927,7 @@ func newTestCommitScriptTree(local bool) (*testCommitScriptTree, error) {
)
} else {
commitScriptTree, err = NewRemoteCommitScriptTree(
revokeKey.PubKey(), selfKey.PubKey(),
selfKey.PubKey(),
)
}
@@ -1210,7 +1210,6 @@ func remoteCommitSweepWitGen(sigHash txscript.SigHashType,
return TaprootCommitRemoteSpend(
signer, signDesc, spendTx,
commitScriptTree.revokeKey.PubKey(),
commitScriptTree.TapscriptTree,
)
}