MetacoSA / NBitcoin

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

[Question] Eliptic curve implementation question #1104

Open amirghayes opened 2 years ago

amirghayes commented 2 years ago

Can someone tell me the reason of why we have like million classes and million methods to do Elliptic Curve Mathematics here and on the original bitcoin implementation using the c library, while in the same time I see a Ruby example with less than 200 lines of code that produces same result (public from private) ?

Link to the code I'm referring to

NicolasDorier commented 1 year ago

This library isn't a math library, so we hide the math aspect, here how you do with NBitcoin.

var key = new Key();
var pubkey = key.PubKey;