Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: sector-32 on August 19, 2020, 01:40:11 AM



Title: Still Open -- $100 Bounty || Help needed on basic EC operations
Post by: sector-32 on August 19, 2020, 01:40:11 AM
Hello,

There's a C implementation at https://github.com/bitcoin-core/secp256k1 . I need help on code to compute basic operations i.e point addition, double and multiplication in C language.

The inputs / outputs must be in the form of hex. A little performance drop is acceptable.

Bounty at 12345E6kXHSKsrWJ3VLa4QBRF6UWraawU4 .
Thank you.


Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: sector-32 on August 19, 2020, 02:49:52 AM
example double operation:
-------------------------------

input x : 0xa598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5
input y : 0x204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b

result :
----------

output x : 0x136933174bc388a74ebd6746e13afe0eef5d66580c8e23d33464c342dc0080
output y : 0x27015dc47dbfe781689f232541c0410560ac69c82044e8e5906e54680127ff92



Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: DonBirb on August 19, 2020, 05:23:41 AM
I will look into this tomorrow, currently 5am here in Iceland. You want all inputs/outputs in hex format? and by the way no need to send me the money if I am able to get this done.


Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: sector-32 on August 19, 2020, 05:27:54 AM
I will look into this tomorrow, currently 5am here in Iceland. You want all inputs/outputs in hex format? and by the way no need to send me the money if I am able to get this done.

Thank you. yes in hex format.


Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: BASE16 on August 19, 2020, 06:25:11 AM
Hi do you mean you need help in understanding the calculation itself of help with the code ?
You can see here for an example https://github.com/samr7/vanitygen/blob/master/vanitygen.c (https://github.com/samr7/vanitygen/blob/master/vanitygen.c)


Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: sector-32 on August 19, 2020, 06:57:38 AM
Hi do you mean you need help in understanding the calculation itself of help with the code ?
You can see here for an example https://github.com/samr7/vanitygen/blob/master/vanitygen.c (https://github.com/samr7/vanitygen/blob/master/vanitygen.c)

Basically i need an API kind of thing in which i can directly call each add,double,multiply operations just by single code of line.


Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: PawGo on August 19, 2020, 07:25:57 AM
Hello,

There's a C implementation at https://github.com/bitcoin-core/secp256k1 . I need help on code to compute basic operations i.e point addition, double and multiplication in C language.

The inputs / outputs must be in the form of hex. A little performance drop is acceptable.

Bounty at 12345E6kXHSKsrWJ3VLa4QBRF6UWraawU4 .
Thank you.

Maybe take a look at this project, in this class you have everything needed:
https://github.com/JeanLucPons/Kangaroo/blob/master/SECPK1/SECP256k1.h


Title: Re: $100 Bounty || Help needed on basic EC operations
Post by: sector-32 on August 19, 2020, 07:35:57 AM
Hello,

There's a C implementation at https://github.com/bitcoin-core/secp256k1 . I need help on code to compute basic operations i.e point addition, double and multiplication in C language.

The inputs / outputs must be in the form of hex. A little performance drop is acceptable.

Bounty at 12345E6kXHSKsrWJ3VLa4QBRF6UWraawU4 .
Thank you.

Maybe take a look at this project, in this class you have everything needed:
https://github.com/JeanLucPons/Kangaroo/blob/master/SECPK1/SECP256k1.h


thank you. But honestly i got zero knowledge on C programming syntax. I already have code in Python but its very slow. I am simply expecting a simple C file in which i can just input "points and operation" and get the result.