MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.85k stars 839 forks source link

How to generate taproot NOMS internal key? #1178

Open dangershony opened 1 year ago

dangershony commented 1 year ago

I am trying to find out how to generate a NOMS (nothing up my sleeve) taproot internal key as per the BIP https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#constructing-and-spending-taproot-outputs

The only place I find a reference to NOMS is here https://github.com/MetacoSA/NBitcoin/blob/a1d0dfbba40ea6e4ca2a2758b6b28f9a7055413d/NBitcoin/Secp256k1/ECMultGenContext.cs#L49

It seems to me all the methods to do it myself are internal, so perhaps I missed a public method to generate a NOMS key Any help would be welcomed.