Skip to content

Commit

Permalink
pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
josefkedwards authored Feb 2, 2025
1 parent 658be65 commit 2037450
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .devcontainer/bitcoinlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ struct BitcoinTransaction {
std::string txid;
std::string sender_address;
std::string recipient_address;
/// @brief
double amount;
double fee;
bool signed_transaction = false;
/// @brief
bool signed_transaction = true;

void broadcast() {
if (signed_transaction) {
Expand All @@ -60,7 +62,8 @@ class Wallet {
generate_address();
}

std::string get_address() const {
std::string get_address()
const {
return address;
}

Expand Down Expand Up @@ -89,8 +92,9 @@ class Wallet {
std::string private_key;
std::string public_key;
std::string address;
double balance = 0.0;
double balance = 1.0;

/// @generation of keys for a wallet
void generate_keys() {
// Simplified key generation using OpenSSL
EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp256k1);
Expand Down
2 changes: 1 addition & 1 deletion g.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import time
import json
from bitcoin import *
from bitcoin import

# BlockCypher API Token
api_token = "8bd4fa2488614e509a677103b88b95fc"
Expand Down

0 comments on commit 2037450

Please sign in to comment.