Categories
Bitcoin Cryptocurrency Mastering Development

How to do transactions to imported wallet address back to my wallet

I invested with this miner she asked for R6000 to confirm my transaction then again asked for other money in order for me to receive my money. Yes I do see the money on my wallet but it state non-spendable I saw imported address with is not mine when I try to do transactions with […]

Categories
Bitcoin Cryptocurrency Mastering Development

About mining bitcoins [closed]

Will bitcoin be able to self sustain itself especially the mining process if there is not enough of an incentive to invite the miners needed to mine bitcoin to keep transactions moving faster? Is the team always innovating and finding more ways to improve transaction speeds and or ways to keep bitcoin more rewarding enough […]

Categories
Bitcoin Cryptocurrency Mastering Development

ScriptSig in P2SH-P2WPKH BIP16

I have some doubts about P2SH-P2WPKH BIP16. I can read the witness program and I understand that a node is triggered when find 0 and 20 o 32 bytes in scriptSig or ScriptpubKey, more precisely: If is P2WPKH nested in BIP16 P2SH node check inside scriptSig and search 0-20 bytes (witness program). the witness program […]

Categories
Bitcoin Cryptocurrency Mastering Development

Transfer from old brainwallet to Trezor

I have an old Bitcoin brainwallet that I created a few years ago (before any forks) with almost 1 BTC in it. I know it’s not a lot, but I decided to get a Trezor as a safer storage method. I now want to move the BTC into my Trezor wallet, along with any of […]

Categories
Bitcoin Cryptocurrency Mastering Development

Problem connecting on Slush’s pool with GUIMiner, i tried many Host adress to connect, every time it says the target computer expressly reject it

I’m on Windows 10 with GUIminer, i want to mine on the slush’s pool but every time i enter every host adress i saw it didn’t work on slush pool. i entered the right login for my miner and on GUIminer it says that the target computer expressly refused it, i have Bitcoin core too […]

Categories
Bitcoin Cryptocurrency Mastering Development

Calculating fee rate of tx returned by fundrawtransaction

I’m passing a tx and feeRate param to fundrawtransaction which gives me back the hex of the signed tx and its fee. I pass the hex to decoderawtransaction which tells me the size of the signed tx. I’m trying to check the actual fee rate of the signed tx by calculating fee * 1000 / […]

Categories
Bitcoin Cryptocurrency Mastering Development

cgminer cldevicesnum returned error no gpus usable

[2020-04-03 20:10:11] Started cgminer 3.7.2 [2020-04-03 20:10:11] Loaded configuration file cgminer.conf [2020-04-03 20:10:11] clDevicesNum returned error, no GPUs usable [2020-04-03 20:10:11] No devices detected! [2020-04-03 20:10:11] Waiting for USB hotplug devices or press q to quit [2020-04-03 20:10:11] Probing for an alive pool [2020-04-03 20:10:11] Switching to pool 1 stratum+tcp://us-ltc.ss.btc.com:1800 – first alive pool [2020-04-03 […]

Categories
Bitcoin Cryptocurrency Mastering Development

How to spend the change in a BIP32 super account?

I am developing my own wallet in python for which I have already implemented BIP32 and BIP39. According to BIP32 documentation, change should be stored in different addresses as well as payments received. This is fine. However, how can I spend my bitcoins when they are stored in different addresses? Let’s suppose I have 1000000 […]

Categories
Bitcoin Cryptocurrency Mastering Development

How were the first coins spendable?

Apologies for my limited understanding, still learning. According to https://en.bitcoin.it/wiki/Genesis_block: The first 50 BTC block reward went to address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa,[1] though this reward can’t be spent due to a quirk in the way that the genesis block is expressed in the code. I understand this to mean that the reward for mining the genesis block […]

Categories
Bitcoin Cryptocurrency Mastering Development

Generate P2SH-P2WPKH

I want to replicate the same scenario of bitcoin-cli getnewaddress “” “p2sh-segwit”.To achieve my goal I’m following this guide My Wif is: cPc4kNYhmuEym2VuskuLbhvPnJwXZGKcR6eRQL4Rv3KCJKUsatmQ then my compressed public key is: 024aa21263ae0cb132cb0db16096bb4c9c475f53d476c8e83ec3a5586898a1a781 Generate my redeem script. Prepend 00 (OP_0) and create keyhash (ripemd160(sha256(Public key)) 00146672614baf71a8d9e06e11e22562e8f16fad60fa ScriptPubKey is ripemd160(sha256(redeem script)) 3f07def7d741bed449f76068422691c9cf2e2ec1 And create my address (regtest) C43f07def7d741bed449f76068422691c9cf2e2ec1 | […]