MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.86k stars 844 forks source link

Enhance PayToTaprootTemplate #1082

Closed onvej-sl closed 2 years ago

onvej-sl commented 2 years ago

This PR makes some enhancement in PayToTaprootTemplate:

yahiheb commented 2 years ago
  • It depracetes GenerateScriptPubKey in favour of GenerateWitScript.

It depracetes GenerateScriptSig.

NicolasDorier commented 2 years ago

Awesome, will merge that tomorrow after reviewing.

onvej-sl commented 2 years ago

In https://github.com/MetacoSA/NBitcoin/pull/1082/commits/ca008dae959b34bcb791459c77f173c863a076da I swap bodies of the functions GenerateScriptSig(TaprootSignature signature) and GenerateWitScript(TaprootSignature signature), so the obsolete function GenerateScriptSig(TaprootSignature signature) can be easily removed once you decide to do that.