MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.87k stars 846 forks source link

Nullable on Script and WitScript, obsolete GetSigner #1152

Closed NicolasDorier closed 1 year ago

NicolasDorier commented 1 year ago

Add nullable annotations to Script and WitScript, and obsolete GetSigner methods which must not be used.

An attacker can make GetSigner returns what he wants be crafting a special script, as such it should not be used.