Bitcoin Forum
June 21, 2024, 12:41:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Wallet in C/C++ for Windows  (Read 114 times)
bkelly13 (OP)
Member
**
Offline Offline

Activity: 63
Merit: 33


View Profile
November 09, 2022, 10:14:14 PM
 #1

Where can I find and download a wallet for Windows in C or C++.  I don’t know Java and Python and want to see how coders have implemented the private key to public key transformation.  Many places write about the elliptic curve but my math is way below the level needed to translate the math to code.
nullama
Hero Member
*****
Offline Offline

Activity: 1022
Merit: 961



View Profile
November 10, 2022, 03:59:34 AM
Merited by pooya87 (2)
 #2

You might want to check out libbitcoin, available here: https://libbitcoin.info

It's a C++ toolkit that implements many different aspects of Bitcoin in a modular way.

It's easier to use to develop your own stuff than using Bitcoin Core, which you might also want to look at as it's also in C++: https://github.com/bitcoin/bitcoin

███████████████████████████████
███████████████████████████████
█████████
▀▀▀▀▀█▀█▀▀▀▀▀█████████
███
▄▀▀▀   ▄▄▄▄   ▄▄▄▄   ▀▀▀▄███
███████
▀▀▀████▌ ▐████▀▀▀███████
█████
███▀█▀██▌ ▐██▀█▀████████
████
███▀▄▀▄███▌ ▐███▄▀▄▀███████
█████
██▄██▄██   ██▄██▄███████
███████
▄▄▄████   ████▄▄▄███████
██████████
▀▀▀▀   ▀▀▀▀██████████
██████████
▄▄▄▄▄▄▄▄▄▄▄██████████
███████████████████████████████
███████████████████████████████
█▀▀▀











█▄▄▄
#1 RATED CRYPTO
CASINO IN THE WORLD
██ ██ ██ ██ █Trustpilot
▀▀▀█











▄▄▄█
▄█████████████████████████████
██████████████████▀▀█████▀▀████
█████████████████▀█████████▀███
██████████████████████████████
███████████████████████████▄███
█████████████████████████▄▄████
███████████████████████████████
█████████████░░░███████████████
███████████░░░█████████████████
█████████░░████████████████████
█████░░░██████████████████████
███░░█████████████████████████
▀░░░█████████████████████████▀
.
SIGN UP & INSTANTLY
RECEIVE BONUS

[ NO DEPOSIT REQUIRED ]
█▀▀▀











█▄▄▄
▀▀▀█











▄▄▄█
NotATether
Legendary
*
Offline Offline

Activity: 1638
Merit: 6909


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 10, 2022, 04:02:43 AM
 #3

Trust Wallet's wallet-core is also a good option, but do note that you will need CMake and clang to build it as it is not an automake project. You also get support for some alternative blockchains as a bonus: https://github.com/trustwallet/wallet-core

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
bkelly13 (OP)
Member
**
Offline Offline

Activity: 63
Merit: 33


View Profile
November 10, 2022, 04:42:02 AM
Last edit: November 12, 2022, 03:49:27 AM by bkelly13
 #4

Thank you, I will check them.
Edit:
I have looked at those suggestions, downloaded and started looking at the code.  This is my first foray into Github.  The level of comments in the code is just horrible. But I am looking.

Then I found this: https://en.bitcoin.it/wiki/Wallet_import_format

I presume this is the method to translate the private key to the public one.  In my words:

Add 0X80 to the msb end and hash it.  This is the majority of the key.
Hash it again, but use only the first 4 bytes and put that on the LSB end.
Encoded it as Base58 and this is the WIF (Wallet Import Format AKA Wallet Export Format) of the public key.

Do I understand this correctly?
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!