Bitcoin Forum
May 03, 2024, 03:16:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: GMP alternative but for GPUs  (Read 102 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 6726


bitcoincleanup.com / bitmixlist.org


View Profile WWW
October 20, 2023, 06:00:27 AM
Merited by ABCbits (1), garlonicon (1)
 #1

Guys, I have some C++ elliptic curve code that does things like point addition/subtraction and other stuff like that. The workload I'm running involves generating some public keys and saving them on the hard disk, in batches so as to not overwhelm the memory, but my friend told me it's too slow on CPU.

I think the performance will improve massively if I can get the elliptic curve codes converted to CUDA or OpenCL or something like that, but I'm having trouble finding a suitable library that won't force a full rewrite (and this is no help). Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
1714749402
Hero Member
*
Offline Offline

Posts: 1714749402

View Profile Personal Message (Offline)

Ignore
1714749402
Reply with quote  #2

1714749402
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714749402
Hero Member
*
Offline Offline

Posts: 1714749402

View Profile Personal Message (Offline)

Ignore
1714749402
Reply with quote  #2

1714749402
Report to moderator
1714749402
Hero Member
*
Offline Offline

Posts: 1714749402

View Profile Personal Message (Offline)

Ignore
1714749402
Reply with quote  #2

1714749402
Report to moderator
1714749402
Hero Member
*
Offline Offline

Posts: 1714749402

View Profile Personal Message (Offline)

Ignore
1714749402
Reply with quote  #2

1714749402
Report to moderator
garlonicon
Hero Member
*****
Offline Offline

Activity: 803
Merit: 1932


View Profile
October 20, 2023, 07:47:52 AM
 #2

Quote
Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also.
What about the code that is included into Bitcoin Core? https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 6726


bitcoincleanup.com / bitmixlist.org


View Profile WWW
October 22, 2023, 03:10:16 PM
 #3

Quote
Alternatively if there is already a 256-bit secp256k1 toolbox somewhere on the internet, that would be fine also.
What about the code that is included into Bitcoin Core? https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1

Somehow, the last time I made an implementation using libsecp256k1, I was getting incorrect keys. But maybe that was because I could've been using it wrong or something.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!