MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.88k stars 848 forks source link

Override Script Eval Context for Elements #1009

Open Kukks opened 3 years ago

Kukks commented 3 years ago

Adds: CHECKSIGFROMSTACK, CHECKSIGFROMSTACKVERIFY Re-enables: CAT

I haven't figured out a good way to plug this into the system painlessly though. I think I need to add CreateScriptEvaluationContext to ConsensusFactory but that requires I need to do method signature changes across the lib

NicolasDorier commented 3 years ago

@Kukks do we need this btw? I am not sure it makes sense to validate the scripts with NBitcoin, even if we support it. Probably better to rely on Bitcoin Core for this.