Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: shahzad73 on September 20, 2018, 04:00:55 PM



Title: Searching for secp256k1 algo in C# that is fast
Post by: shahzad73 on September 20, 2018, 04:00:55 PM
I have 32 byte private key that i generate from a function. Now i need to convert into public key both compress and uncompress fast as i generate thousands of addresses in few seconds.

Currently using C# nBitcoin to convert these private keys to public but that library is to slow and only able to convert 1500 addresses in 5 or 6 seconds

looking for a C# code that can do the job faster to any degree    it will help me  


Can C++ code be faster within C# .NET core ?     is it possible to use C++ within Core ?


Shahzad


Title: Re: Searching for secp256k1 algo in C# that is fast
Post by: d34thkn3ll on September 21, 2018, 04:24:53 PM
Thousands of addresses which most likely will never be used.
Either you are trying to build a vanitygen, or bruteforce somebody's private key.
Take some vanitygen code, build it as a lib and use it in your project.


Title: Re: Searching for secp256k1 algo in C# that is fast
Post by: DevilOper on September 25, 2018, 12:30:06 PM
Why not simply to use existing (well-optimized) library like OpenSSL?