https://bitcointalksearch.org/topic/m.11998544
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
const MyKey32 MyKey32::getKvalue ( const MyKey32& r, const MyKey32& s, const MyKey32& z, const MyKey32& priv )
{
//k= (digest+r.privkey)/s
const MyKey32 zp ( add ( mul ( r, priv ), z ) );
const MyKey32 invs ( inv ( s ) );
const MyKey32 k ( mul ( zp, invs ).normalize ( ) );
return k;
}
static const MyKey32 order ( QByteArray::fromHex ( "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141" ) );
const MyKey32 MyKey32::getPrivateKey ( const MyKey32& r, const MyKey32& s, const MyKey32& k, const MyKey32& z, const MyKey20& addr )
{
static MyKey20 addr1;
static MyKey20 addr2;
MyKey32 priv = mul ( sub ( mul ( s, k ), z ), inv ( r ) );
priv.getKeys ( addr1, addr2 );
if ( addr1 == addr || addr2 == addr )
return priv;
priv = mul ( sub ( mul ( s, sub ( order, k ) ), z ), inv ( r ) );
priv.getKeys ( addr1, addr2 );
if ( addr1 == addr || addr2 == addr )
return priv;
xassert ( false ); // это паранойя на всякий случай. вроде ни разу этот ассерт не выстрелил
}
const MyKey32 MyKey32::getKvalue ( const MyKey32& r, const MyKey32& s, const MyKey32& z, const MyKey32& priv )
{
//k= (digest+r.privkey)/s
const MyKey32 zp ( add ( mul ( r, priv ), z ) );
const MyKey32 invs ( inv ( s ) );
const MyKey32 k ( mul ( zp, invs ).normalize ( ) );
return k;
}
static const MyKey32 order ( QByteArray::fromHex ( "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141" ) );
const MyKey32 MyKey32::getPrivateKey ( const MyKey32& r, const MyKey32& s, const MyKey32& k, const MyKey32& z, const MyKey20& addr )
{
static MyKey20 addr1;
static MyKey20 addr2;
MyKey32 priv = mul ( sub ( mul ( s, k ), z ), inv ( r ) );
priv.getKeys ( addr1, addr2 );
if ( addr1 == addr || addr2 == addr )
return priv;
priv = mul ( sub ( mul ( s, sub ( order, k ) ), z ), inv ( r ) );
priv.getKeys ( addr1, addr2 );
if ( addr1 == addr || addr2 == addr )
return priv;
xassert ( false ); // это паранойя на всякий случай. вроде ни разу этот ассерт не выстрелил
}