Questions tagged [cryptocurrency]
Cryptocurrency is a digital asset designed to work as a medium of exchange that uses cryptography to secure its transactions, to control the creation of additional units, and to verify the transfer of assets.
33 questions
1 vote
3 answers
178 views
Sign a message with a Bitcoin private key
I am writing code in C, and I need to do various operations with Bitcoin, from generating key pairs, to sign messages to post transactions. I found libraries for C++, but nothing in C that does all ...
2 votes
2 answers
3k views
Print Bitcoin price by getting JSON data using CoinDesk API
In this code in Python, I used an API called CoinDesk to get the Bitcoin price as JSON. I'm trying to follow the best practices in coding, so, I've used logging and I'm using a code formatter in my ...
2 votes
0 answers
169 views
Bash bitcoin blockchain explorer
I wrote a little bash script that displays the transaction info in json: ...
4 votes
2 answers
250 views
Parsing Bitcoin binary data file with Python
The script parses Bitcoin database (blkXXXXX.dat) files directly from raw binary to txt human readable view. And I think about how to encrease the speed of processing. Can anyone suggest how to ...
9 votes
1 answer
2k views
Simple cryptocurrency portfolio rebalancer
EDIT: the code has been changed significantly since the OP based on the first posted answer and some refactoring. Feedback on the general design of the app itself is still more than welcome. The ...
8 votes
2 answers
338 views
Encrypted safebox
I am developing JSafebox, a portable safebox project written in Java. The goal is to provide a secured environment where the user can browse encrypted files without leaking data on the drive. The ...
1 vote
3 answers
255 views
Calculate cryptocurrency gains and losses using the Coinbase API
This class calculates the gains and losses (in USD) from the four leading cryptocurrencies using the Coinbase API. (The full repo can be found here) In addition to general feedback there are some ...
17 votes
4 answers
26k views
Bitcoin wallet address and private key generator
I wanted to learn how to create a Bitcoin wallet in code. I used as reference this guide which has code examples in JavaScript. I wrote my implementation in Python. Here is the resulting code: ...