texts: Doesnt get Testnet Bitcoins to my Bitcoin Core address

texts:
I just made a TestNet transaction and its confirmed but i dont get the TestNet Bitcoins in my BitcoinCore address.
This is my BitcoinCore conf file:
testnet=1

[test]
server=1

rpcuser=username

rpcpassword=pw

rpcport=8332

I started the server with ./bitcoind -conf=bitcoin.conf -daemon
And i created a new address with getnewaddress.Then i copied the address and made a testnet "transaction" but if i type getreceivedbyaddress and then my address it shows me 0.00000.
Oh and on blockcypher it shows me 6+ confirmed and it also shows my amount for my address
I hope you can help me.


texts: Is the "recovery phrase" generated by a wallet app platform independent?

texts:
I recently started a wallet with Coinbase Wallet, and I was asked to backup a 12 word "recovery phrase" that is supposed to be able to recover my wallet in the event that I delete the app from my phone. I have previously used other wallet apps, which often give "recovery phrases" of varying word count. I read online that the phrase is passed through an algorithm and used to recover a key or a group of keys.

I am now curious if these recovery phrases are platform independent (meaning you can recover your keys just by way of knowing the phrase), or if the app must exist with a specific algorithm in order to recover keys (your keys are lost if the recovery implementation is destroyed, e.g. Coinbase shuts down operation and removes their app).


texts:
I sent a small amount of bitcoins from my electrum wallet. I control both addresses either side.

the transaction can be viewed here

https://blockchain.info/tx/a80f1ef7e4f2fdda8ca3fe2948bbad6a316976e9d91a6deacd56d3346f76d652

It's been unconfirmed for around 16 hours now, what can I do about this and how I do get my bitcoins back?


texts: On many mining pools/bonds I see things listed as 105% PPS / 110% PPS weekly payout.  What does PPS actually mean?


texts: Mastering Bitcoin: Advanced Scripting Question

texts:
At the end of Mastering Bitcoin Chapter 7. https://github.com/bitcoinbook/bitcoinbook/blob/second_edition/ch07.asciidoc#complex-script-example

They ask this question in regards to the script:

How do the partners "reset" the clock every 29 or 89 days to prevent the lawyer from accessing the funds?

Does anyone have a good explanation for this? I feel like I missed something in the timelock section that might have explained this but I'm not seeing it.


texts: What do they mean by "Make sure to send enough to cover any coin transaction fees!"?

texts:
When I paid a Bitcoin bill yesterday to Coinpayments.net (that's what they used), which had no problems, I spotted this text:

Make sure to send enough to cover any coin transaction fees!

What exactly do they mean by this?
I used their bitcoin: hyperlink in Bitcoin Core so I got the "pay form" filled in just as they wanted it, and again, I had zero problems. I just wonder what they could possibly be meaning by this? "Send enough"? Cover "any coin transaction fees"?


texts: I originally suspected this website was to good to be true but now it has been officially confirmed. How can I begin the campaign to warn others that this site is a scam and work to get is shut down?


texts: Is it possible to identify a wallet from an address?

texts:
I want to know is there anyway to identify a particular wallet (its username or email address) on the basis of a Bitcoin receiving address which is generated from that wallet. I am posting that address below:

1F5b254fXvpVqCKPMwF3tL1aKzCQSf4koe


texts: Are there any attacks with a plurality of computing power?

texts:
There has been some discussion about possible attacks if one has the majority (over 50%) of the computing power of the bitcoin network. What happens if an attacker (or coordinated group of attackers) has more computing power than any other user (or coordinated group of users), but not necessarily the majority of all computing power?
Toy example
As a toy example, consider we have 3 users: Alice, Bob, and Steve.
Alice and Bob are both honest users that are fine using the protocol as specified. However, they will not go above-and-beyond the protocol to help each other (in fact, they would be happy to make money off the disadvantage of the other, as long as they are still complying with the protocol).
Steve is an attacker and is willing to perform actions outside of the protocol in order to either gain profit or just destroy the network. If Steve has 41% of the computing power, Bob has 34%, and Alice has 25% then are there attacks Steve could launch?
The toy example is included to just make it clear what I mean by plurality vs. majority, and what I mean by honest but uncoordinated users. I am obviously more interested in an answer to the general question than this specific toy model.


texts: How to generate keypair completely offline?

texts: Is it possible to generate address and private key pair completely offline, using only dice / other random number generators, calculators, paper and pen? If yes, whats the procedure and formulas used?


texts:
Zcash implements the slow start strategy, as described here.

The reward for mining a block is meant to ramp up linearly and reach it's maximum value around block 5000.

How do I check the current reward value per block?


texts: Automate Bitcoin Sell Transaction within a website

texts:
I recently built a web application for a client where users can buy and sell BTC, I have integrated the wallet but am having still trying to figure out the best way to automate the buy orders and sell. That is when customers place a buy order and the USD wallet is debit, we want the system to automatically credit the BTC wallet the same value of the dollar in BTC.
Thanks, I look forward to your response.


texts: What happens to my bitcoins if there's a permanent fork in the chain?

texts:
Let's say the year is 2034 (optimistic?) and the New New World has adopted Bitcoin as its currency, and now there's a civil war, and naturally the two sides want to have their own version of Bitcoin ... hence a fork.

A permanent fork as far as anyone can tell.

What happens to my bitcoins in such an event?

If originally I owned BTC 1,000, do I now own BTC 1,000 and BTC2 1,000 separately after the fork, or is it just BTC 1,000, or do I have to choose between the two chains (i.e. I get either BTC 1,000 or BTC2 1,000 but not both), or do I lose all my BTC unless I redeem them for either BTC1 or BTC2 ... or what?

I understand that forking Bitcoin into two or more currencies might reduce its value more than proportionately against real goods and services, which is to say that BTC2 10,000 might not buy you what you could have got for BTC 1,000 before the fork event, and we could get into the economics of that, but that's not my question. My question is specifically about the nominal and not the real, i.e. how many bitcoins I now own as opposed to what my bitcoins can now buy.


texts:
I like to doing to submit every new transaction with user specific fee. I don't see any valid documentation for achieve it using RPC call. Give any suggestion.

Thankyou


texts: How do I export an xpub from Bitcoin Core for use in BTCPayServer?

texts:
I'm using Bitcoin Core 0.17, and using bitcoin-cli getaddressinfo method to extract xpub for a given address.

This xpub is 66 characters long, and I'm using BTCPayServer which needs this xpub and I've to select one of the following address type corresponding to this:

P2WPKH
P2SH-P2WPKH
P2PKH

What I'm trying to do : I'm trying to link my wallet to BTCPayServer, in order to do so their admin panel needs an input for xpub and it also asks to specify the exact format of that xpub/derivation scheme. I don't want to use a wallet like electrum so I'm creating my own private keys through bitcoin-cli


texts:
So I made the transfer from my wallet’ address to other wallet. I use Bitcoin Core 0.14.2. And I read "Would replace by fee increase the fee on my transaction?"

I apologize, was mistaken and appointed the small commission. Transaction hangs as unconfirmed the fourth day. How many will hang and it will be forgotten for backward God only knows.

Thus, my small mistake can lead to dramatic loss of time. The key of command line "- walletrbf" (for use further "bumpfee") is incompatible with a key "- prune".  In general this key  does many useful keys useless. But I use
 "- prune" for easy obvious reasons.

Can somebody explain, as it is possible to increase the fee of the outed transaction. Or to accelerate time of removal of transaction from network memory, spent it and a refund back to my wallet' address. I did not find any services for these actions in the Internet.


texts: For SIGHASH_SINGLE do the outputs other than at the input index, have 8 bytes or 9 bytes including a VarInt?

texts:
The bitcoin wiki says:

  All other txCopy outputs aside from the output that is the same as the
  current input index are set to a blank script and a value of (long)
  -1.

https://en.bitcoin.it/wiki/OP_CHECKSIG#Hashtype_SIGHASH_SINGLE

It's hard finding what this means in the C++ client. Does it mean that the outputs, other than the output with the same index as the input being signed for, only have 8 bytes for the value or does it mean they also have another byte for the VarInt set to zero; 9 bytes in total?

Thanks.


texts: bitcoin files mysteriously show up in trash

texts:
I'm usually pretty good at figuring things out, but this one has me stumped. Yesterday I saw 5 or so (don't remember exactly) bitcoin-qt(something).gz files in my trash that i had NOT sent there. It was late and I was tired so left it for the morning. This morning upon starting up, they were gone. I checked through most logs including apt, dmesg, changelog, etc. for clues, but found nothing.

My coins are still in the wallet now and it is encrypted. Should I worry?

Any ideas?

Thanks

Edit:
Maybe there was some update and the files were moved to the trash to be purged upon restart...? I find no evidence of an update yesterday. Maybe I missed something. Bitcoin-qt is in my sources.list. However, I find no such info in the changelog...


texts: Block chain receive payment api not working

texts:
I am building a little online app to accept bitcoin payments in my website. I have a blockchain.info wallet and I am following their Receive Payments Api, which can be visited here: http://blockchain.info/api/api_receive

The monetary part works great, but the HTTP Callback Notification does not take place and my online store is not notified of the payment. However, the TEST callback does work.

I think it is a problem on his application.

Has anyone implemented the "Receive Money API" successfully?
Is there any other alternative for received instant payment notifications? (To several different addresses)
A friend of mine reports the same issue. We need a little help :)


texts: So I have a bitcoin core wallet. And I bought bitcoins and filled out the address under, I think the english word for it is: reception addresses.  see picture. I assumed this was my wallet address. Everything went well with the transaction. I can see there is send money to this address. But my wallet is still empty after 4 hours. Can someone help me with this?


texts: Bitcoin Core - autogen.sh failing on Mac

texts:
I'm working on installing Bitcoin Core for the mac. I've cloned the repo and installed the dependencies via brew. I'm trying to run autogen.sh but it is failing:

$ ./autogen.sh
/usr/local/bin/glibtoolize: line 406: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3601: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3845: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 861: /usr/local/Library/ENV/4.3/sed: No such file or directory
: putting auxiliary files in '.'.
: copying file './ltmain.sh'
/usr/local/bin/glibtoolize: line 3771: /usr/local/Library/ENV/4.3/sed: No such file or directory
configure.ac:45: error: required file 'build-aux/ltmain.sh' not found
autoreconf: automake failed with exit status: 1

I'm not sure what is failing. brew doctor is clean. glibtoolize and sed can both be found. There is no .../Library/ENV directory, so I'm not sure why that isn't automatically getting created.

Any help would be greatly appreciated.

Mac 10.12.6
Bitcoin (7b57bc9) - v0.15.1


texts: I've downloaded a Bitcoin Core, why it's recommended to use a new address for a new transaction?

texts:
I'm a bit new to Bitcoin.

I just downloaded a Bitcoin wallet "bitcoin core". And I have downloaded all the nodes (a lot of data, I believe it's the complete one).

When I click the "Receive", I can request money.

But I noticed that every request, I'm assigned a different address. Then I noticed that it's an official recommendation by the software.

Is there any reason for that? How many addresses can I have? What do I need to be prepared if I have a lot of address? (for instance, to backup something)


texts: Arithmetic operations in Bitcoin (OP_ADD, etc)

texts:
How do arithmetic operations work in Bitcoin? If I have:

 5
 OP_1ADD

it is obvious that I will get 6 on stack. But what if I have to make OP_1ADD on "02c34538fc933799d972f55752d318c0328ca2bacccd5c7482119ea9da2df70a2f"?

 "02c34538fc933799d972f55752d318c0328ca2bacccd5c7482119ea9da2df70a2f"
 OP_1ADD


texts: Could the BGP attack be used to split the Bitcoin network?

texts:
I just learnt about the BGP attack:

http://www.wired.com/2014/08/isp-bitcoin-theft/

http://www.secureworks.com/cyber-threat-intelligence/threats/bgp-hijacking-for-cryptocurrency-profit/

The attacker was able to redirect the miners to its own pool to effectively "steal" (defraud them of) their mining rewards.

I don't know enough about the Border Gateway Protocol, but I'm wondering if this sort of an attack could be used to split the Bitcoin network itself, essentially by hijacking the node discovery process. If an attacker could hold the split for a few hours (assuming enough hash power), it could successfully execute a double-spend on its target.

Does the client use any kind of authentication with its peers?

P.S. Of course, there would have to be enough economic or political motivation to carry out such an expensive attack (such as to bring down a popular exchange and create media panic).


texts: I am looking to do some research on the blockchain, is there anyway to easily the size of each block while i download it - i have seen graphs from coinbase etc, but these are not accurate for me as for the first 12 months they put the blockchain size as 0MB - Any ideas welcome, i have looked through the log file of bitcoin during the download and while it gives me data about the number of tx in the block etc it doesn't contain the size


texts: Is there a way to monitor what bitcoin-qt is doing on a mac os x?

texts: Using 0.6.6.2 on a mac mini; has been running for 56 hours now, still not fully synchronised; is there a way to monitor whether the program is actually doing something or just stuck? would the 0.8.x be faster?


texts: How do I get my funds from bitstamp into my wallet?

texts:
Hi I am using multibit as my bitcoin wallet.  I will be using money gram to put money into my account.  I dont know how to buy bitcoins for myself.

On multibit it says you can send coins to someone or request them but it doesn't say to yourself.  I don't want to send them to anyone else, just me.  I am using bitinstant to transfer funds into bitstamp, but where do I get the wallet address?

Where do I enter the amount I want in bitcoins on bitinstant? And how do I get my funds from bitstamp into my wallet?  Which one do I use first and what is the address I type into the website I am buying items off of so they can withdraw them from my account?

I really need help with buying bitcoins for myself and where I find the address and that I do when I go to the money gram?  Where is the address found?  And do I need to use bitstamp?

Is there an easier way to do this because I'm finding it really hard.  If there is a quicker easier software or website or wallet to use please let me know!

Edit:
Also, where do I enter the amount of funds I'm going to put into the moneygram on Bitstamp, do I use Bitinstant for that? What do I do when I get to the moneygram? Do I enter the address? Can someone tell me an easier process including whichever websites you all use and in what order and how you actually retrieve the money to use online?


texts: How are Bitcoin Addresses generated when using bitaddress.org?

texts:
I am trying to figure out in the the source code of bitaddress.org which files and functions that correspond to the generation of bitcoin addresses.

Link: https://github.com/pointbiz/bitaddress.org/tree/master/src

Can someone point me to which files and functions that generate the bitcoin addresses?

I would like to audit the code and also see how this all works since this can be done offline.


texts:
It may seem like a vague question, but what I understand so far is, you have a public key (address) which people can send coins too, and then you have the private key which you need to send coins to someone else.
My question is, how does the program itself work?
Does it create a public key based of private? maybe on the wallet.dat file? How would you be prevented from getting a private key if you have the public key? and what stops someone from looping over a bunch of private keys to find one with some coins in?


texts: How do I get my Bitcoin Core to rescan for a different wallet.dat file on OSX?

texts: I have an old wallet.dat file that I have backed up and I have already replaced the new wallet.dat, which had no btc on it with the old one, which does. I have tried to enter the command for the rescan function to adapt to the different wallet information without success. Do I do this through the QT terminal or through the debug console command line? And can this be done before the bitcoin core wallet is completely synced with the entire network? Thanks.


texts: How do I double SHA-256 the header of block #59,500?

texts:
I'm not sure how to combine all of this information.
https://blockchain.info/block/00000000096af43105123c499521e1d131d172e7e1bf2ed0843290a921f1f6a7

Version
1

Time Bits
470771548 (is this the right number to use for Time Bits?)

Merkle Root
 ff682ef66cd1b56213fd4db9462fb138f6d8c16d706d41969a7eacc819528038

Nonce
16641419

Hash of Current Block
00000000096af43105123c499521e1d131d172e7e1bf2ed0843290a921f1f6a7

Hash of Previous Block
00000000023bbab0e78a22d27fbd2d0cd13f8302fb3f560138e0e81d087ac7a1


texts:
I am checking bitcoin source code to learn forking a coin better,

in this link

https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp

Line 52 has scratched my mind, what is that for? Should that be changed while forking a coin?

I know lines 124 and 125 are set after the first genesis block is mined, can someone explain me what line 52 does, and how it affects the blockchain?


texts: Get "Value at time of transaction" from blockchain.info api

texts:
I need to get the value displayed in usd on the transaction details page of blockchain.info, if you hover the btc sent you can see a "value at time of transaction".

How I can get this data programmatically so I can use it to track history of transaction prices on an address? I've searched all over but can't find where to get the price shown in blockchain.info for my tx.

This is an example:
For transaction: https://blockchain.info/tx/a11d6b6de30b5f1a5090c0f9d4b91fcf0e1384b86dd78614301bc46080d74366

If my address is 158n3kPsg822Ci5131ToyYsM66gnwcCzKm,
I need to be able to retrieve programmatically the 2079.7 value as shown on the transaction page.


texts: Will upgrading from 0.10.2 fix read block errors?

texts:
I have a relatively old version of Bitcoin Core (0.10.2) aka Bitcoin-QT.app, installed in 2015. Bitcoin Core won't open anymore. I'm on MacOS Mohave, v10.14.6. and I have just 60Gb of free hard drive space now. Below is what I've tried and my questions.
What I've tried

Tried to open Bitcoin-Qt.app, either through the terminal or the GUI. I goes through the verifying blocks stage. Then it says Loading wallet... and there is an error message, Error: A fatal internal error occured, see debug.log for details
In ~/Library/Application Support/Bitcoin/, I can see various files including my wallet.dat
At the bottom of the debug.log file I see the following:
2021-03-07 14:15:02 ERROR: CheckProofOfWork() : nBits below minimum work
2021-03-07 14:15:02 ERROR: ReadBlockFromDisk : Errors in block header
2021-03-07 14:15:02 *** Failed to read block

Questions

What's going on here? Will this be fixed if I update to Bitcoin Core v0.21.0 (the latest version) given that I'm coming from such an old version (0.10.2)?
Given I don't have enough hard drive space for the full blockchain size, would I be able to use an external hard rive in the process of upgrading? Bitcoin-Qt.app was initially installed on my MacBook, not an external HD. I know you can use an external drive on install.. but I'm not sure if it's different in an upgrading situation like mine?
Apart from backing up my wallet.dat, is there anything else I should take into consideration.


texts: sent bitcoin with a low fee to an address i cant access anymore

texts:
whats up, as the title says, i sent bitcoin with a super low fee, after a couple of days I lost access to the account with the wallet i was sending to, and the bitcoin is still unconfirmed.

i was wondering if there was a way to cancel the unconfirmed transaction without having access to the wallet it is being sent to


texts:
I am trying to use secp256k1 for a toy project that I am working on for learning purposes. I am using Ubuntu 20.04 and I can clone and compile the library just fine. I have tried to include it in a simple hello world c file and I get the following error: secp256k1/src/num.h:19:2: error: #error "Please select num implementation" 19 | #error "Please select num implementation"
I have tried googling this but I can't seem to find anything (only https://github.com/breadwallet/breadwallet-ios/issues/60 but not sure how it applies to my situation). All I did was use this line #include "src/secp256k1.c" in my toy C code. I can't seem to find any documentation or walkthrough guide on simple usage of the library such as generating private keys and addresses (besides secp256k1.h). Any help would be appreciated!


texts: How to retrieve all transactions from bitcoind?

texts:
I am working on a project that need to parse all transactions from bitcoind. I have been using bitcoind which the option txindex=1 and pulling transactions using RPC call getRawTransaction. It work, but is very slow.

Is there any fast way to pull all transactions from bitcoind? (I dont need to pull them in order).

I tried to read then directly from bitcoind DB, but according to What is the database for? transactions are not stored in levelDB, there are only at blockXXX.dat, in network format, so I would need to parse the block to extract them, which doesnt seem OK (I guess that orphan blocks are also there, so that will generate problems).


texts: CLI tool to sign a transaction using a private key in an offline computer

texts:
My Problem
Consider an offline computer that has a list of private keys for bitcoin addresses. The computer has some flavor of Linux installed on it, so it can run common CLI tools and Python scripts.
I would like to create a transaction from one of these private keys into a given bitcoin address, sign it, and securely transfer it to an online computer, possibly using a QR code and a phone QR reader that can publish the signed transaction.
What Have I Tried

Searching the site, but I only found old answers
STFW, giving me non-CLI tools or obsolete answers
Playing with bitcoin-cli sendtoaddress, but it does not seem to support any given private key, just its own wallet.

My Question
How can I securely create a signed transaction with a private key, a destination address, and an amount, from an offline computer using CLI tools?


texts: Disable Downloading the entire blockchain using Bitcoin core?

texts: I know bitcoin core by default downloads the entire blockchain, but is there a stripped down version that isn't 60+gb big? I need to be able to create addresses and label each one for specific usage such as savings, spending 1, spending 2, etc.


texts:
i noticed that from the 13th of feb 2015 the bitcoin price becomes a lot more "noisy" on bitcoinaverage.com:

does anybody know whether this is actually due to bitcoin price movements becoming more rapid, or whether its just that bitcoinaverage.com increased their sampling frequency?


texts: Which program is suitable to server mining of Feathercoin?

texts:
I have web hosting virtualized Windows 2012 Server without GPU and with one core of Intel Xeon 5520.

I pay it anyway and I use about 10% CPU. I would like to use the rest for CPU mining feathercoin.

Gui miner does not work, probably because the server has no Graphic Adapter (I use remote desktop). It crash on start.

Which program should I use for such mining?


texts: It seems like a very cool way to decentralize a DNS table (name -> IP address, right?) But I don't get why it has an exchange value to BTC or USD... Is there a fixed NMC price to register a domain name? Is Casascius going to stamp NMC keys onto brass coins too?


texts:
About 11 days ago, I updated to v0.20.1 of Bitcoin Core from their "official" website (https://bitcoin.org/en/download).
Ever since, it's been syncing every day but just keeps lagging behind. Now it had reached 11 days, so I went to the same website to check if there's a new version which fixes the bug (which I assume is present in this version).
I was shocked to see not a v0.20.2, but rather: bitcoin-0.20.0-win64-setup.exe
It's gone back to v0.20.0... I felt a cold sensation down my spine, fanatically checking the GitHub issues for any clue that v0.20.1 was a "dud" or something, but found not one mention of it.
Now I'm starting to wonder if what I got was actually malware or something. Why would they just revert to an old version and pretend as if the v0.20.1 one never happened? It makes me feel uneasy to say the least. I installed the old version now, but so far, it still says the same thing:

Processing blocks on disk... 11 days behind...

This kind of thing is what makes me very worried about Bitcoin's future. With all the scams and scumbags everywhere, constantly trying to steal Bitcoins and/or give Bitcoin a bad name, the last thing we need is for the "official" project/client to be this flimsy and unstable. If I, a Bitcoin fanatic, gets this worried, what would an old granny be? She probably would never recover from this state, perpetually unable to make Bitcoin payments because Bitcoin Core has "locked" somehow.
I frankly don't know what to do now other than wait and hope for it to finish doing whatever it's doing. It seems locked/frozen again. I don't dare to click anything inside its GUI window because that tends to make it crash.
Update: At least it now, with the old version, slowly climbs down in the number of days left.


texts: Recover Electron wallet with bad seed phrase

texts:
I once created a bitcoin wallet with Electron using a hand crafted seed phrase (using the words of the valid word list that time).

I now figured it was a bad idea, while it is possible to create wallets for abitrary seeds, a version number is encoded inside the seed, and thus it has some kind of format.

Now I just recovered the wallet from my seed phrase just to found it empty, no transactions inside.

I guess changes to the Electron code base broke the decoding of this hand crafted invalid seed so it now points to some other private key not matching my old wallet.

Is there any condensed documentation, how the usage of the seed phrase changed over time? How can I convert the old seed phrase to a working wallet?


texts:
i have one big problem in bitcoin core internal transfer. to understand my question, please read my problem clearly.

1) Let me explain you by providing example.

My one of the core account let's say "xyz" has 0.05 bitcoin balance. This is real balance.
Now i am creating another two core account. "freebalance" & "dummy"
now i am going to run this command move "freebalance" "dummy" 10000
it will transfer 10000 btc to my new dummy account and freebalance account will have -10000
i know that my "dummy" account has dummy balance that is 10000 BTC. i can not spend it on blockchain transactions. No issue for now.
Now my xyz has 0.05 real bitcoin balance as i said earlier. and next i am transferring 5 BTC to my "xyz" account from "dummy" using internal transfer move command of bitcoin core.
It will make my "xyz" account balance (0.05 real balance + 5 BTC dummy balance = 5.05 mixed balance)

  Now the situation changes from here
  - whenever my internal transfer goes for "xyz" account to another account it will work good. but assume that i want to transfer 1 BTC
  from that 5.05 BTC balance to any other blockchain address. I mean i
  want to convert that "dummy" account generate balance to real one. So
  we can send that transaction to our users directly.

2) Another method or idea i have:

I have used json rpc api of bitcoin core.
let's assume i have "abc" account with 0.10 balance. So is there any possibility in move api or sending api to stop balance part. like whenever i try to transfer amount 0.50 from "abc" to "xyz" account it should work.
like this way-
first of all when sending api calls in, we will send 0.50 btc to xyz, but before that process we want to stop balance part of bitcoin core that is checking & deducting 0.50 from "abc" account. This way i want to keep my 0.10 balance in "abc" as it is. and also want to deposit "xyz" account with 0.50 btc.

  In short words, i want to stop bitcoin core to run deduct task from my
  core wallet account but run task of deposit or transfer easily without
  any error. So i can send profit to my customers easily.

Anyone please help me to solve out 1) or 2) problem. at-least one. i'm hoping to get good helps from the community on this issue.


texts:
It's easy to see that currently 50% of the hashrate supports Segwit.

It's also simple to find that about 1000 nodes are supporting it. But I can't seem to figure out how significant that amount is, since all the total node counts are very rough estimates, and not all nodes are public.

So what is the best way to find out how solid the support under non-mining nodes is right now?


texts: Why would people buy bitcoin these days if its too expensive?

texts:
I'm curious on why would bitcoin rise in the near future since its not affordable anymore. It's actually but for wealthy people only. How could it even reach mass adoption because of its extreme price?

It seems reasonable that people will switch to alt-coins because of their lower prices hence that would cause bitcoin to loose its value over time since people will start to sell it..

How can people/experts make claims that we could see bitcoin over 100k etc. It's total nonsense or am I missing something?


texts: Wouldn't the blockchain size become a bottleneck if all payments happened on Bitcoin?

texts:
I am learning about Bitcoin. I understand that bitcoins are stored on a ledger, and the ledger itself is widely distributed and available to all parties. I also understand that the ledger stores all the previous bitcoin transactions for all the bitcoins.
Suppose in the hypothetical future, everybody moved to bitcoins, with no USD or other fiat currencies. What would be the ledger size in bytes due to all transactions that happened within a year? If you were to record all past transactions from the time bitcoins started, so you could track it, it seems to me it would quickly become a huge network bottleneck, as the ledger is updated over the network. Even the size of the ledger itself might become a big concern over a few years.
Has anybody looked into this aspect of bitcoins?


texts: Installation problem with Bitcore.io on Mac

texts:
I'm normally not too brain-dead about this stuff, but I've been unable to force this one through.  I'm trying to install Bitcore (per their instructions here) but and have set nvm to the LTS version 4, as directed (v4.9.1), but when I run npm install -g bitcore it pukes at me:
/Users/evilg/.nvm/versions/node/v4.9.1/lib/node_modules/npm/bin/npm-cli.js:85
      let notifier = require('update-notifier')({pkg})
      ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:140:18)
    at node.js:1043:3

For what it's worth, my npm version is 6.2.0.
Any help much appreciated!


texts: Retaining Ownership of an 'Approval' Indicator Coin

texts:
I want to use some form of crypto-currency/blockchain algorithm to represent the notion of "endorsement", in the sense of approval.  One approach is to have a coin that you can give to a recipient, while retaining ownership and control of the coin, so that you can withdraw it at any time and give it to someone else.

Is there such a thing? Is there any reason why you can't do this with a blockchain?  What are the issues?


texts: How fast can Ripple transfer money from bank to bank?

texts:
I had a debate last night on how fast Ripple is.
If I am moving money from bank account a to bank account b, how long would it take?
I was told by one person that adding a block takes 8 secs. Another person said money can be moved cross border from any bank account to any bank account in 6 secs.


texts: Is there a web service that does reverse FirstBits lookup?

texts:
Input: any old Bitcoin address e.g.

1BCNEPySL4gzzjg8NNyNsQYJWYmZwpgaPF

Output: the FirstBits, in this case 1BCN1u


texts: Modify the number of confirmations for an utxo to be ```safe == true``` in Bitcoin Core

texts:
I noticed that when I call listunspent on Bitcoin Core, UTXO with 0 confirmation are labeled unsafe, and thus prevented from being spent with sendtoaddress or fundrawtransaction. As soon as there's one confirmation the tx is safe and I can spend it.

Being able to modify the target for a tx to be considered safe, for example set it to 3 or 6 confirmations instead of just 1, would make my life easier, but I can't find an option for it. Is there some way to do it?


texts:
Sure this asked many times before and is available but I cannot find it!
I understand that all that is stored on a hardware wallet is private and public keys etc.
My lack of understanding arises when the need to recover a lost hardware wallet occurs. How is it that entering my seed words on a new device regenerates the essential data which was on the original. Is it encoded in the seed sequence? Seems like a simple question but I cannot see it anywhere explicitly stated. Been through Trezor manual and nothing!
Much obliged if you have been able to bear with my ignorance (stupidity) and can stand to reply

I am now aware that data reconstructed from seed. Where else? Sorry to have had to ask the obvious. Got this off your forum.


texts: Explain the math behind mining profitability calculators

texts:
Can anyone explain the math behind the mining calculators like:

http://www.bitcoinx.com/profit/

I'm trying to build a Google spreadsheet that does the same thing.


texts:
I am exploring this Bitcoin thing and yesterday installed the Bitcoin-Qt.
The first thing that I noted, is that the after syncing with the network that took me 12 hours, the database grew to 13GB. I know that these are all the blocks in a chain from the beginning of time.
My question is what is the sense and the theoretical practicality behind this approach? Imagine if all the world will start to use bitcoins, the blockchain will grow to terabytes and   will multiply exponentially on a daily basis.
Imagine if USA will embrace Bitcoin as its official currency, the size of blockchain will grow few Petabytes daily.
The bottom line is that at these sizes it will become impossible to validate transactions and even simply store or use the blockchain.

My question is if I am missing something here, because I don't see any long term and general usage capabilities here?


texts: Are There Examples of Asset Backed Virtual Currencies?

texts:
Here is a very natural idea: an entity creates a new virtual currency with the following properties:

Only that entity has the capability to issue new quantities of that currency
That entity makes some type of legally binding promise to always buy and sell units of that currency at prices fixed to some underlying commodity. For example, it will always sell for 1.00 USD / unit and buy for 0.99 EUR/ unit.
Transactions in the  virtual currency are transacted in a Bitcoin-style network that is not centralized and not controlled by the issuer.

This is, of course, a very old and often implemented idea. Paper notes were originally issued and thought of as government backed, tradable IOUs. And gold-backed paper currency is pretty much what I've described here. This is the digital, virtualized variant of a very old idea.

This idea is alluded to here on the Contracts page in the BTC wiki. It's called EURcoins on that page.

My question:

  Are there any existing or serious proposals for alternative virtual currencies backed by commodities?

Obviously, there are advantages and disadvantages to this setup. I'm not asking for a recital of disadvantages. If you are wondering, I see the main advantage of such a proposal as the ability to "send" the underlying commodity point-to-point with relatively low transaction costs. For example, one could pay the equivalent of USD while bypassing the existing credit card and debit payment systems in the US. Whether this is something people really want to do is another question altogether.


texts:
I am wondering whether each bitcoin address is unique. I would assume yes. Then, how is this enforced given the distributed address generation?
As I understand it, each time an address is generated, a new key-pair is also generated. On what basis is this done? Since the address is the hash of the public half of the key-pair that would also allow (at least theoretically) multiple public keys to have the same hash.


texts:
What are the advantages and disadvantages of keeping bitcoins in an exchange versus a private wallet?

Exchange advantages:

Liquidity - you can quickly trade bitcoins for dollars, and vice versa.
Can hold dollars directly

Wallet advantages:

No reporting requirements
Can quickly get at your bitcoins


texts: GUIMiner does not connect on Slush's pool

texts:
I checked my firewall, and I tried the solution in Bitcoin question GUIMiner won't start mining on Slush's pool.

It is still saying connecting forever.


texts: Inconsistent mining profitability calculations

texts:
I am gathering some btc details from coinwarz api as follows

Bitcoin difficulty: 711697198174

Bitcoin reward: 12.5

My personal hash rate: 1.425 TH/s

I then try to calculate  amount of seconds it would take me to mine 1 coin, so

(711697198174 / 100) / 1.425 = 499436630297

The reason I am dividing difficulty by 100 above is so I can keep using my hashing power in TH/s

After this I try to calculate how many coins I can mine per day:

86400 / 499436630297 * 12.5 = 0.0002162436502

where 86400 is number of seconds in 24h. I get 0.0002162436502 coins per day, however every calculator I used online returns value similar to 0.00050348 coins per day.

I think this 0.00050348 is correct value, but I don't understand where my calculation is wrong


texts: Why do miners need a nonce if the timestamp changes the hash of the block?

texts:
As the title says.

If the timestamp is constantly changing with every guess, why does the miner also include the nonce? Is it because they're mining too fast for the timestamp to change?


texts: I am new to bitcoin and made a beginner mistake. I sent bitcoin from Mycelium wallet to coinbase wallet. Mycelium offered some rely small fees without warning, they only warned that if you pick 0 it might not happen. I picked a small fee as I considered that I am not in hurry. Now the Mycellium says transaction its confirmed and coinbase says its pending. If I understand Blockcypher correctly it says my BTC is received but no send. Is there anything I can do but hope that someone mines the rest of the block? If yes can you please tell me what in a simple way? amount is like 0.08... BTC so its relatively high for a student...


texts: How to move blockchain.info api created wallet to be used by bitcoin core

texts:
I originally created my wallet through the blockchain.info api.  I have since downloaded the bitcoin core and it's finishing downloading all the blocks now.  What is the process to access this wallet directly?  Also, is this a one way transfer, or will it still be usable through the blockchain.info api?

Thanks.


texts:
I have a question about using cpuminer to mine bitcoins. I know that it's not efficient, but I'm not about making any money from it (obviously), I just want to mine some fractions of a bitcoin.

Now, I have downloaded and compiled it on Ubuntu and then started the program as seen in the output:

 ./minerd --url=stratum+tcp://<server>:3333 --userpass=<username.worker>:<password> --algo=sha256d

[2015-04-26 20:22:45] Starting Stratum on stratum+tcp://<server>:3333
[2015-04-26 20:22:45] Binding thread 2 to cpu 2
[2015-04-26 20:22:45] Binding thread 1 to cpu 1
[2015-04-26 20:22:45] 4 miner threads started, using 'sha256d' algorithm.
[2015-04-26 20:22:45] Binding thread 0 to cpu 0
[2015-04-26 20:22:45] Binding thread 3 to cpu 3
[2015-04-26 20:22:48] thread 3: 2097152 hashes, 1814 khash/s
[2015-04-26 20:22:48] thread 0: 2097152 hashes, 1774 khash/s
[2015-04-26 20:22:48] thread 1: 2097152 hashes, 1742 khash/s
[2015-04-26 20:22:48] thread 2: 2097152 hashes, 1355 khash/s
[2015-04-26 20:23:54] thread 2: 81299404 hashes, 1230 khash/s
[2015-04-26 20:24:05] thread 1: 104547880 hashes, 1354 khash/s
[2015-04-26 20:24:13] thread 3: 108821800 hashes, 1272 khash/s
[2015-04-26 20:24:25] thread 0: 106421736 hashes, 1095 khash/s
[2015-04-26 20:25:01] thread 2: 73787712 hashes, 1102 khash/s
[2015-04-26 20:25:07] thread 1: 81252652 hashes, 1312 khash/s
[2015-04-26 20:25:14] thread 3: 76317796 hashes, 1256 khash/s
[2015-04-26 20:25:27] thread 0: 65677172 hashes, 1051 khash/s
[2015-04-26 20:25:52] thread 2: 66108472 hashes, 1305 khash/s
[2015-04-26 20:26:12] thread 3: 75386708 hashes, 1307 khash/s
[2015-04-26 20:26:15] thread 1: 78701868 hashes, 1152 khash/s
[2015-04-26 20:26:28] thread 0: 63037412 hashes, 1031 khash/s

The problem I have now, is that I never get any output like this:

[<Date>, <Time>] accepted: x/y (x/y%), <bla>khash/s (yay!!!)

and in the mining pool, I dont see my worker online.

I wonder now, if my computer does any work at all, or if it is just too slow and all the work it puts into mining goes to waste.


texts: What keeps mining pools from creating wallets that send transactions only to pool members?

texts: Suppose one of the big mining pools, that holds e.g. 20% of the mining power, creates a wallet software that, by design, sends all transactions only to pool members - and does not relay it to nodes outside the ppol. Will this give them an advantage in getting mining fees? What keeps the big mining pools from doing this?


texts: Possible optimisation to bitcoin propagation

texts:
One of the main arguments for not raising the block size in Bitcoin is the fact that larger block size means slower propagation.

The most space consuming section of the Bitcoin block is the data of the transactions. Assuming a large portion of the nodes is full nodes, there is a large redundancy in the block data.

When a miner successfully mines a block, he needs to send it to the other nodes in the network. Many of those nodes already possess most of the transactions data that is included in the block.

Maybe it is better to send a hash of each transaction instead of the data itself. In case the receiving node doesn't have this data, it can request it from the sending node.

This might compress the size of a block by 5-10 times (depending on the size of the hash) and allow significantly larger block size.


texts: Should I keep my RPC credentials private?

texts:
I am wondering if there are any security issues with other's knowing my RPC credentials. I'm not familiar with RPC and how it works or anything.

Reason I'm asking... I make youtube videos. Right now I'm editing one where I am using the Lightning Network. Everything in the video is on the testnet. So I'm not at risk of any real damage being done to me. Most I'll lose is the progress I made setting up the testnet and lightning network on this machine. However, if my RPC credentials don't matter, it would save me a lot of time having to blur them out in my video.

Thank you.


texts: How long are orphaned or stale blocks kept in bitcoin core nodes memory?

texts:
If there was a chain reorg, for example:

Blockchain:

0a---1a---2a---3a

becomes...

0a---1a---2b---3b

How long are blocks 2b and 3b kept in memory on the node?

If I query the node for block 2b later (getblock(2aBlockHash, VERBOSITY_LEVEL = 2)), will it still return it to me?

Thanks!


texts: What technologies one should learn to become mature in cryptocurrency

texts:
I am a web developer. I've been reading a book about BitCoin, decentralization, and the blockchain, which has blown my mind and piqued my curiosity. I am now thinking about taking the CryptoCurrency train.

My goal is to have a full understanding of the Blockchain technology in the future, and all the technologies linked to it; to be able to understand problems and find solutions, and contribute to open source software.

I am aware that this field includes cryptography, security, programming, and networking, although my experience is very limited in these areas.

I'd appreciate it if someone could point me to the most central and specific things I need to learn first in order to move faster in my learning of these topics.


texts: How to view addresses previously shown by Bitcoin QT console

texts:
I want to be able to compare receive and change addresses that are provided by watch-only wallet providers like Specter and Electrum with Bitcoin Core (not something like Ian Coleman's tool). I already used the "getnewaddress" RPC a bunch of times when playing around, and I would like to start over so that there's not a huge gap between unused addresses. I would love to be able to either 1) start over at index 0, 2) get an address for a specific index, or 3) get a list of, say, 10 addresses for a wallet even if the address has no transactions associated with it yet.
I'm guessing that one solution could be related to the "deriveaddresses" command. I've had troubles with this command though; so if there's an answer to avoid this method, I'd prefer to go that route. If "deriveaddresses" is the only way, then I'll open up a separate question and close this one.
Thank you


texts: API Bitfinex question: "key amount should be a decimal string"?

texts:
I started writing code for the Bitfinex api yesterday and I've been struggling quite a lot with this.
I am using jndok's python implementation.

I added my pyblic and secret keys and wrote this line of code at the end with python 2.7 on Windows 8:

rep = place_order(0.001, 589.0, 'sell', 'limit', exchange='bitfinex')

And I thought that would do it but the reply I get 'Key amount should be a decimal string' and the order is not placed.
I also tried to print the reply code I get from the server and it is 400.

How can this be resolved?


texts: Bitcoin Blockchain - Verification process

texts:
As the title states, basically my question is about the blockchain verification. I know whats a block chain and basically understood how mining is working, except once simple thing.

Let's say we have 2 guys, Bob and Adam.

Blockchain:

    |1|-|2|-|3|-{4}   - Bob Chain
    |1|-|2|-|3|-{4}   - Adam Chain

Assume both Bob and Adam found a new block, but it will not be verified until someone finds a next block. So my questions is whats is happening in a situation if Adam will find a block |5| first. Will Bob get his reward for finding a block? Or it means if Adam found one block, he has to find the next one which is extremely difficult without a huge network of computational resources in order to verify his previous block |4| and get reward for block 4 of 12.5 bitcoins, because the nodes will only accept the longest blockchain? I hope I clearly illustrated the picture. I've tried to find the answer in different videos and materials but somehow this aspect was put aside. If my assumption is true, it means there is no way how can a single person to earn anything from mining without a huge network ?


texts:
It takes a while to download and process the transaction log.
Doing that for dozens of wallets would be a big waste.
I want to run just one client full time as a log processor.
Then for each wallet, symlink the log processor's data
files into each wallet's homedir.
Even if I can't tell each client to NOT pull down new
logs and process them, I can still copy the processor's ones
in as needed and then start the client.

So what files in the homedir are wallet specific, wallet signed,
or in ANY way linked to your wallet and keys/ids, etc?

And what files are completely safe/anonymous to redistribute, crossplant,
etc.

How do I separate the identity files from the network data files?

What files are, and do, exactly what?
Thanks :)


texts: what is the significance (if any) of "ACKs for top commit:" in the git commit messages of bitcoin core?

texts:
There seems to be a reasonably standardized format for some, but not all, commit messages in bitcoin's git repository. For example, in addition to the usual expository commit message, this commit (https://github.com/bitcoin/bitcoin/commit/270616228bc9a3856a0a82dea26ac3480b7585cd) also includes:

ACKs for top commit:
  MarcoFalke:
    ACK 0e7c90e crocodile
  fanquake:
    ACK 0e7c90e

Tree-SHA512: 6d954a0aaf402c9594201626b59d29263479059e68fa5155bb44ed973cd0c3347729dd78b78b4d5a2275e45da365dc1afb4cc7e3293dea33fcc2e3e83a39faf5

There are many commit messages with similar structure. As these commits get buried under other commits, this is quite reminiscent of aspects of the consensus mechanism that the bitcoin protocol itself uses.

In other words, if we squint hard enough, it seems like the commit messages themselves partially encode a slow-enough-for-humans-to-interpret blockchain.

For reference, here are some issues (https://github.com/bitcoin/bitcoin/issues/16200
and https://github.com/bitcoin/bitcoin/pull/16223) where some discussion about the content of these messages is taking place, but unless one is already a core contributor, it is difficult to pick up what is going on from context here.

Is there any documentation, informal or otherwise, about how/if these messages might encode aspects of consensus among the contributors?


texts: Do extra hop channels in a BOLT#11 invoice need to exist on chain?

texts:
According to the BOLT#11 specification, a node may add extra routing information for private channels to an invoice, where they specify the public key of the penultimate hop, along with the short_channel_id.

  r (3): data_length variable. One or more entries containing extra routing information for a private route; there may be more than one r field

  pubkey (264 bits)
  short_channel_id (64 bits)
  ...

However, unlike channels announced through a channel_announcement message, there are no signatures to prove that the invoice payee actually owns that channel, or even that it really exists. Technically, it appears that the invoice creator could point to any valid 2-of-2 UTXO on the chain and claim it to be their private channel.

Do existing implementations check whether the transaction referred to by the r field's short_channel_id actually exists on the blockchain and that they are valid 2-of-2 multisig transactions?

If not, could short_channel_id in the invoice r field be re-purposed to refer to some abstract account which the pubkey in the hop information has custody of (Such that the pubkey node unwraps the last onion packet himself and signs any messages with the private key associated with the account)?

A user sending a payment should not need to worry about whether the channel really exists, as long as they receive the payment from the node who owns pubkey.

Otherwise, if there are any potential risks, should the BOLT#11 specification also be modified to include a pair of signatures for the funding transaction which short_channel_id refers to?


texts: Is there a way to know the type of dogecoin wallet through the receiver address?

texts:
I am confused right now! I mistakenly withdrew my dogecoins to an old wallet that I have no memory of. So I want to know if there is a way one can guess a wallet type through the receiver address.

This is my receiver address:
D6zUZ42K8bo7qwbHXsMEerjuEYbdqvFAHK


texts: Why is BIP133 listed as 'Draft' when it has been implemented for years?

texts:
BIP133 is listed as 'Draft' but it has been implemented since v.0.13.0
https://github.com/bitcoin/bips/blob/master/bip-0133.mediawiki
Is there anything preventing it from being labelled as 'Final'?


texts: Why is the blockchain called Distributed Public "Ledger" and not "Journal"?

texts:
Bitcoin (or more generally, blockchain) is a Distributed Public Ledger and as we know:

The Journal is a book where all the transactions are recorded immediately when they take place which is then classified and transferred into concerned account known as Ledger.
Source: keydifferences.com

This means that it's a "Ledger" that keeps classified and cleared transactions instead of a "Journal".
We know Bitcoin stores all transactions (UTXO - Unspent Transactions Output - is optional) so why do we call it Ledger instead of Journal?
Please add references to your answers!


texts: Chain Race: How to know chain-length of competing chain?

texts:
If a fork happens, miners mine on the block they receive at first.
Further, they only forward the block they received first (so the block they will use to mine)!

So it can happen that 10% of the network will mine on the chain A. The other 90% will mine on chain B. So only 10% know about chain A and 90% know about chain B. And some edge node will know about chain A and chain B... Depends on how the overlay structure looks like.

What happens if now the 10% fork (chain A) will mine a block and send it to the network? Why won't the other nodes discard the block from chain A? How do they know that this chain is longer? How do they know that the block is not just some part of DDOS attack?

If someone could give me a detailed describtion how the conflict is solved, I would be very happy.


texts: Irrespective of the length of time required to calculate one hash, how many hash operations are required to produce one Bitcoin?


texts:
I have a private key (raw + WIF) and I want to send all funds from that address - fee to another address.

Is there a raw python function that can do that for me ? I will broadcast the tx manually.

I tried to look into electrum source code but I find it to complicated for this task please help.


texts: Bitcoin Signatures are susceptible to quantum attacks - how exactly and with what practical impact?

texts:
@PieterWuille  wrote in another thread:

""
The hashing algorithm is probably the most quantum-resistant piece of cryptography right now in Bitcoin. Barring any specific breaks, SHA256 and RIPEMD160 are as quantum-resistant as hash functions can be (there is an inevitable square-root speedup that applies to any hash function). Much more can be said about the quantum resistance of digital signatures. – Pieter Wuille Mar 5 at 0:03
""

I would like to ask for more precise information if possible:

Which precise parameters of bitcoins blockchain would be susceptible to quantum attacks (Pieter mentioned "signatures", but what else)? And what could be the potential impact  if those parameters (signature, etc.) were successfully attacked?  (one transaction could be blocked, the entire blockchain controlled, etc...which practical effects?)

-And what could be ways to prevent attacks on those parameters? Any ideas circulating among btc dev community on how to "adjust" those parameters?

Or is the current consensus among the community to rather wait for the world till they provide new crypto schemes which are quantum proof (for example waiting for the NIST Post-Quantum Crypto Competition) ...

thank u!


texts: Sending less than 0.001 BTC from my Bitcoin Core Wallet not in memory pool

texts:
I recently managed to recover my wallet.dat and passphrase and have been trying to send the 0.00126913 BTC balance from my Bitcoin Core wallet into my Binance account, however the transactions stay unconfirmed, not in memory pool for several days with no luck.
I've tried enabling 'coin control features' and sending 1-3 amounts at a time, however still no luck.
Is there anything I could do to increase the chance of my transactions being included into a block?


texts: Generate addresses from Trezor's xPub using Python

texts:
I am trying to generate BIP32 HD addresses from my Trezors xPub key.
I keep getting errors with most of the libs our there. What am I missing?

pywallet:

from pywallet import wallet
xpub = 'ypub6Y9NsCaunfAtedv6VX7UTfuvQGLu1TgMtLtjnRydESqWwUSkJnAzATyCzscezpcfoXtgJhAfUTauEQWWt8xvbLxo7qXToCDkJi1Nb1b7wZB'
wallet.create_address(network="BTC", xpub=pub, child=0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/pywallet/wallet.py", line 48, in create_address
    wallet_obj = Wallet.deserialize(xpub, network=network.upper())
  File "/usr/local/lib/python3.5/dist-packages/pywallet/utils/bip32.py", line 557, in deserialize
    version)
pywallet.utils.keys.IncompatibleNetworkException: Incorrect network. Bitcoin Main Net expects a byte prefix of 76067358, but you supplied b'\x04\x9d|\xb2'

The pybitcointools do generate an address, but they do not match the one Trezor generates.

Essentially I need code which replicated Trezor address generation from xPub. Any ideas?


texts: Can the Antminer S3 mine Bitcoin using Blake2s algorithm?

texts: If so, how? Nicehash can also do this, so what I'm trying to do is point my Antminer S3 to Nicehash's Blake2s stratum. But will changing the stratum URL be enough? Do I have to set up Blake2s first?


texts:
I recently bought some Bitcoins(around 0.5) and sent some to a friend. He got them direct. Today I wanted to transfer some more but it didn't work. Every transaction was an error, besides one very small one(0.001 BTC).
All transactions are marked with a questionmark, so they are not confirmed for whatever reason.
After I restarted my bitcoin client, most of the transactions were marked with an exclamation mark.
I have no idea why I can not send money any more. Anyone having similiar problems and got a solution?

Thank you!

Here is a screenshot btw:


texts: Upgrading/converting bitcoin core wallet between platforms

texts:
After 2 years of being shut down, I am trying to revive my bitcoin full node, while both switching platforms and upgrading to the current version in the process. Everything works but the wallet. The presence of the wallet causes the new node to crash (segfault). The node works when either wallet.dat is missing or when -disablewallet is provided. I do not really need that wallet to be fully imported, just to get the bitcoin associated with it into the an address controlled by the new node.
I read this issue report that blames the version of the berkley db lib files. I compiled bitcoin core locally with the older BDB libs provided via bitcoin/contrib/install_db4.sh per that issue report, and got the same result. The thing is, since (afaik) the windows platform does not provide an implementation of BDB, I have no idea what headers are correct for the wallet file generated by windows bitcoin core.
I want to avoid deleting and re-downloading the entire blockchain. I did run once with -disablewallet -assumevalid=0 to verify the entire blockchain. I retain backups of all pre-upgrade files, if it helps.
gdb backtrace pastebin. Note that this run was only a subset of the cli options I normally run with, specifically missing rpc info.
Old setup:

Windows 7 pro x64 sp1
bitcoin core gui (qt) 0.16.0
last synced early December 2018
BDB version unknown
datadir sat on slow external hdd (ntfs)

New node:

Debian Buster stable
bitcoin core daemon 0.21, compiled locally
syncing now, currently late March 2019
BDB 4.8.30.NC compiled via included script and detected by configure
datadir on slow internal sata hdd (ext4)

Is there any way to import an old/differently formatted wallet.dat file into a newer node? Is there perhaps a way to extract the private key info from said old file, so it can be manually imported? Could the old node software possibly create and send a transaction with the entire contents of the old wallet to a new address without fully syncing first? Is it possible the old version of bitcoinn core could fully sync with the modern blockchain?
e: forgot to mention: the db err logfile /mnt/data/blockchains/btc/blockchain/db.log is empty and retains the last modified date from the first startup of the original node in mid 2017.
e2: after translating the wallet to db version 4.8 as @PieterWuille suggested, the node reindexed and printed a number of lines like
2021-02-18T23:58:08Z [default wallet] Submitting wtx f7b5 to mempool for relay

but after running for a few days, it indexed up to block height just under 500000 and then segfaulted again.


texts: How does exchanges, such as coinbase handle off-chain transaction?

texts:
Does coinbase create a channel between each customer and coinbase itself?

If i buy 10 USD of bitcoin from coinbase, where does the 10 USD worth of bitcoin come from? Does coinbase maintain a huge wallet that belongs to itself, and creates a payment channel with each individual customers?


texts: I'm new at this. I opened a wallet on my computer, I  have a physical wallet I'm trying to get the coins from my physical wallet to my computer. I went into my wallet, clicked help, selected the debug window option, clicked on the console tap typed in my importprivkey  then what do I do?


texts: JSON/RPC works fine for bitcoind but not for litecoind

texts:
I have managed to set up bitcoind, connect to its JSON/RPC API and run the getinfo command.

I followed exactly the same steps and configuration for litecoind (bitcoin.conf and litecoin.conf contain exactly the same settings) and set my client to connect to litecoind but I keep on hitting on a HTTP 504 error.

Both bitcoind instances are in testnet mode and I succesfully connect to port 18332 for bitcoind and also connect to port 19333 for litecoind but this is as far as it gets, I can't seem to be able to get any reply from litecoind.

This is my configuration for both .conf files:

rpcuser = xxxxxxxxxxxxxxxxx
rpcpassword = xxxxxxxxxxxxxxxxx
testnet=1
daemon=1
rpcallowip=*

Any ideas?


texts: My Blockchain Payment Has Been Unconfirmed For 3 Days Now Please Help

texts:
https://blockchain.info/tx/342ca53d9a5dea2f63e81be6c4e39b4b3c61d6dae8b69e7e71f8c802f61da415

That’s the link it has been unconfirmed for a long time now can anyone help me please.


texts: What is the difference between PoW and PoS regarding computations when determining a new block?

texts:
According to Buterin there are 600 trillion computations done per second using SHA256. He and other sources say that PoS solves the issue of not requiring so many computations but I do not completely understand why.

From what I understand, PoS also requires the participants or forgers to compute a hash value (which is always the same though), which is lower than a certain target value (which varies with time in seconds, a random factor depending on the current block and the balance). But this also requires some computations, so is it just that due to the more or less fixed time and balance factor PoS requires way less computations than PoW, or is there more to that?


texts: From multibit to electrum : low fee and unconfirmed parent

texts:
I made 3 btc transfer from my old Multibit classic wallet a few weeks ago (dec. 11), then I discovered that the fee was far too low for the transfers to be confirmed.

I then restored my original wallet into Electrum, and it shows me these 3 transactions with different status :

Low Fee (44 sat/byte) - 0.0068 btc
unconfirmed parent (52 sat/byte) - 0.04497458 btc
unconfirmed parent (19 sat/byte) - 0.1221 btc

Unfortunately I cannot adjust fee on these transactions, so I tried a CPFP when making a new transfer from another wallet I created in electrum to my original wallet, but no result.

I tried to reproduce the 1st transfer, from the original wallet, same src/dest and amount but with Higher Fee (598 sat/byte)... no result.

I'm afraid to be stuck at this stage, I don't know what to do to unlock these transactions :( any detailed advice is welcome ! (i'm on OSX if asked).


texts: Disclaimer new to bitcoin: Do I need to make a transaction with an existing account before receiving first time payments to legitimate verify my account ?


texts: How to create a P2SH address with bitcore-lib

texts:
I was looking to create custom P2SH addresses from redeemScripts ( they start with 3...) using bictore-lib.

If anyone can direct me to the right code in their module, I can't find it.


texts: How do I trace a bitcoin transaction to find its location in the world

texts: I need to trace a bitcoin transaction to find out roughly  where in the world the wallet is located. Is it possible to use a program, or manual-method, to trace/track a bitcoin transaction to find the recipients IP address or which area in in world they are in? If so, roughly how accurate is it?


texts:
This is the log
0 confirmed/ in memory pool
1NJBNxv5c7oB6risrN7Zrh4J5bomjrsrNM
Debit: -0.56748446 BTC
Transaction fee: -0.00098910 BTC
Net amount: -0.56847356 BTC
Transaction ID: bc28bfac6984ddeaab814cc73a71fd9f8fb49780997beb39d0f9a8bce519f242
Transaction total size: 98570

Any ideas on what is keeping it from arriving.
I have sent to this address before with no problems.

Thank you

Frank


texts: Understanding Nano Ledger S concept + Full Node

texts:
Nano Ledger S is often referred to as a cold storage hardware wallet. If my understanding is correct, this device is kind of like a little transaction signing machine to be used in conjunction with other bitcoin client software. The device has "apps" (which I don't really understand) but I think the "app" is just specifying different cryptocurrencies. Here is my understanding - please let me know if any-step is incorrect.

In order to use the device I need to link it with an actual bitcoin client or wallet service
I have seen that they recommend using Ledger Live which appears to be a wallet service and an exchange, but the website says you could also link to electrum wallet.
So I will use my desktop interface for some wallet / client software to input some details of a transaction (address to send to, amount of btc) and then it will prompt me to confirm the transaction from the device.
The actual signing (or unlocking of my UTXO's, the part that requires my private keys) happens on the nano ledger device.
When it is done preparing the entire tx message it sends this data back to my desktop, which is now safe since it has been signed already.
The client / wallet software sends the tx data off to the network to get validated and mined.
I can further use the wallet software on desktop to view valuable information like the aggregated value in USD (my native currency) of the UTXO's associated to the keys held on my ledger device, etc.

Some questions:

Since my computer is not a node, how does my client software "send the message to the network". I presume I need to be connected to wifi. Then what?
If ledger live is not a full node wallet, what is it querying to produce the information like my "account values".
I have read that full node wallets are better because they don't require me to trust a third party. Can I link bitcoin core wallet to my ledger device?
Is the idea here that when I view valuable information on my interface (like number of confirmations on a transaction, or value of my UTXO's), it is querying the full blockchain stored on my node instead of gathering information from someone else?
Is ledger wallet or bitcoin core wallet coin selection algorithms known to public?


texts: How do Bitcoin devs make sure that their modifications do not affect the consensus rules or the running network protocol?

texts:
I understand that Bitcoin consensus rules are enforced by every single node individually.
However, most people run the default version of Bitcoin Core, which makes the implementations done by Bitcoin devs uttermost important.
So my question is in the title: how do they guarantee the implementations do not affect the consensus rules or network protocol?
While I also understand that each Bitcoin version is released with extreme care and extensive testing, I keep wondering whether there exists a systematic practice for this.
Any pointer would be highly appreciated.


texts: ccminer JSON-RPC call failed: Method not found

texts:
I am having issue with running ccminer with bitcoin-qt.exe (Solo mining)

I am receiving error below upon start:

[2017-01-26 14:23:57] 1 miner thread started, using 'bitcoin' algorithm
[2017-01-26 14:23:57] Binding thread 0 to cpu 0 (mask 1)
[2017-01-26 14:23:57] JSON-RPC call failed: Method not found
[2017-01-26 14:23:57] json_rpc_call failed, retry after 5 seconds

How to resolve this issue?

What I did:

my ccminer running parameters:

ccminer -a bitcoin -o http://127.0.0.1:8332 -u USER -p 123456789 -R 5 -D

my bitcoin.conf file:

rpcuser=USER
rpcpassword=123456789
server=1
daemon=1
listen=1
#rpcallowip=127.0.0.1
rpcport=8332

I have tried to add -P into ccminer running parameters, and the result is

* Rebuilt URL to: http://127.0.0.1:8332/
* Hostname 127.0.0.1 was found in DNS cache
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8332 (#1)
* Server auth using Basic with user 'USER'
> POST / HTTP/1.1
Host: 127.0.0.1:8332
Authorization: Basic xxxxxxSOME_BASE64xxx
Accept-Encoding: identity
Content-Type: application/json
Content-Length: 45
User-Agent: ccminer/8.05-KlausT
X-Mining-Extensions: longpoll noncerange reject-reason
X-Mining-Hashrate: 0

< HTTP/1.1 404 Not Found
< Content-Type: application/json
< Date: Thu, 26 Jan 2017 11:19:41 GMT
< Content-Length: 76
* HTTP error before end of send, stop sending
<
* Curl_http_done: called premature == 0
* Closing connection 1
[2017-01-26 16:19:41] JSON protocol response:
{
   "error": {
      "code": -32601,
      "message": "Method not found"
   },
   "result": null,
   "id": 0
}

[2017-01-26 16:19:41] JSON-RPC call failed: Method not found
[2017-01-26 16:19:41] json_rpc_call failed, retry after 30 seconds

I thought, maybe bitcoin-qt.exe does not accepting any connections, but when I run bfgminer with parameters:

bfgminer -S opencl:auto -o http://127.0.0.1:8332 -u USER -p 123456789 2>logfile.txt

everything works fine...

P.S. everything is up to date:

Bitcoin v0.13.2 (64 bit)
ccminer v8.05-KlausT
pthreads static 2, 9, 1, 0
libcurl/7.50.3 WinSSL WinIDN

Thanks in advance


texts:
The segregated witness soft fork of August 2017 included a versioning field which would allow for future incrementation. Anthony Towns has recently posted an early draft of the proposal for the SegWit v1 upgrade to the mailing list.

Although the devil is of course in the details, what activation methods are available for future softforks?
What are the different upgrade mechanism for the major [v1 - v16] and
minor [v1.0 - v1.127] version changes?
How is the soft fork signaled, taking the overt ASIC Boost with version bits into account?
How is the consensus change enforced?
Is the v1 change as "contentious" and time consuming as v0 was?
What are the tasks of node operators and miners?

Thank you in advance for the answer!


texts: Is it possible to forward signed transaction using bitcoind prune mode?

texts:
Summary:
Is it possible to perform createrawtranscation , signrawtransaction and sendrawtransaction rpc call using bitcoin in prune mode?
Detail :
I want to implement an API that performs p2p BTC transfer, and for this purpose, I don't want to run a full node in my AWS server as I have to buy extra space for this. I was exploring third-party applications but all of them are out of my budget. So I was curious if I could run prune mode BTC core to perform above mention RPC call?
I would be very thankful if you guys can give some advice as per my requirement.


texts: How does total cost of mining affect the price of coins?

texts:
The goal of this question is to explore what the correlation is between the cost of the total energy consumption behind a PoW-based cryptocurrency and its price.
Obviously, the cost of mining cannot be lower (in the long run) than the price of the coin, because more and more miners would join.
But is the converse (empirically) also true?

Has the price of coins been historically bounded from below by the cost of mining?

Of course, the cost of mining is hard to compute, because of differences in hardware, electricity price and cryptojacking.
Yet, one can find some nice charts here about Bitcoin, so some estimates can be made.
Has anyone looked at this?
For example, the market cap of Bitcoin is about twice the market cap of Ethereum.

Is it true that about twice as much energy is/has been spent on Bitcoin than on Ethereum?


texts: How to merged mine with getmemorypool RPC command?

texts:
The getmemorypool RPC command lists all transactions that are to be included in a block, with the exclusion of the generating transaction. In merged mining, one needs to add an extra transaction containing the hash of a Namecoin block to be generated.

If one uses the source code provided from the Namecoin wiki, how would one merged mine? Is the metmemorypool transaction be supported? Would the special Namecoin transaction be included in the listed transactions?


texts: Is it possible to withdraw other cryptocurrencies besides bitcoin (ex: etherum) into a Bitcoin paper wallet?

texts: I've been wanting to know if withdrawing other cryptocurrencies into a bitcoin paper wallet would be incompatible with that system.  I haven't tried it myself.


texts: what is referred as coin in bitcoin network?

texts:
I gathered information about bitcoin from various resources. All those resources said that when a transaction is done, the transaction get added to a block. So when Alice send 2 btc to Bob, network checks all transactions having Alice's wallet address to calculat balance Alice has. If he has 2 btc then transaction is happen.

So in this process, system just checks for total balance Alice has. There is no file or a record for each bitcoin. There's only blocks containing transaction data.

But I found about bitcoin mixers. Those mixers claims that they mix coins. That is, when you give them some coins, they will give you same btc amount back but you receive different coins than the ones you deposited. Also I found many websites using the term coin ("coins transfered", "coins recieved" etc.) But I could find what exactly the "coin" means. There are 'blocks' and 'transactions' but 'coins'?

So the question is, what a coin is? Is it something like block or transaction? Is it a seperate file, so that bitcoin mixers can mix them up?

What is referred as 'coin'?


texts: How to keep transaction generating time down?

texts: I have a wallet for a service that's getting bloated, and whenever I want to send transactions they notably get slow. How do I prevent stuff like this? Can I just send all the funds to an address to merge the unspent inputs?


texts: Sync of bitcoin main-net does not finished yet. Are there any ways to speed up it?

texts:
I'm downloading bitcoin main-net node to AWS instance. However it doesn't finished yet even though it has already passed four days.
My node's latest block is 321,744, and the latest block of Bitcoin main-net is 385,707.
Could you tell me how to hasten the speed of downloading?


texts: How does a share help in the discovery of a new block?

texts:
https://en.bitcoin.it/wiki/Pooled_mining:
A share is awarded by the mining pool to the clients who present a valid proof of work of the same type as the proof of work that is used for creating blocks, but of lesser difficulty, so that it requires less time on average to generate.

I would like to know how the proof of work with lesser difficulty will help in calculating the proof of work for a new block.

In other words, why would pools pay for shares? How do they help?


texts: Is the block header in stratum protocol double hashed?

texts:
I'm trying to understand how the block header is done when mining in a stratum pool. Should the block header be hashed once or double hashed ?
the block header consists of the version, previous hash, merkle root, ntime, nbit, and nonce. right?


texts: Hey looking at this transaction I'm confused why there are two outputs and why one of them is labelled with OP_RETURN


texts: Blockchain.info testnet websocket doesn't work

texts: When I try to connect testnet websocket provided by blockchain.info api. Connection doesn't establish, when i looked into the code. It says for testnet it uses "wss://ws.testnet.blockchain.info/inv" url. I guess that blockchain.info stops the service for testnet. Is there any other websocket api provider for bitcoin testnet?


texts: How to create a local bitcoin network with 2 peers?

texts:
I want to create a locally bitcoin network. I use testnet and testnet-in-box, both of them working well. but they use the testnet-blockchain, I want to test the real blockchain. so I use two PC, one is win7, and the other is ubuntu in vBox.
In the bitcoin.conf of win7:

testnet=0
irc=0
dnsseed=0
upnp=0
listen=0
checkpoints=0
connect=192.168.1.126:19000
gen=1
rpcuser=test
rpcpassword=123
port=19010
rpcport=19011
keypool=5

and in the bitcoin.conf in ubuntu:

 testnet=0
     irc=0
     dnsseed=0
     upnp=0
     listen=1
     checkpoints=0
     connect=192.168.1.124:19010
     rpcuser=test
     rpcpassword=123
     port=19000
     rpcport=19001
     keypool=5

In win7 :
     the bitcoin-qt show "No active connections to bitcoin network"

In ubuntu:
     the bitcoin-qt show "8 active connections to bitcoin network"

I think the status in ubuntu is not correct, because I want it only connect to the bitcoin-qt in win7.
and I also want to know how to mine in this local network?

OK... I found the bitcoin-qt under ubuntu doesn't configured by bitcoin.conf. So I use
bitcoind -datadir=~/.bitcoin -daemon to run the service. and this time, I got "1 active connections to bitcoin network". and I am sure they link to each other.


texts: Know its been busy but how long should a transaction be pending

texts:
Sorry for my ignorance..i'm completely new to bitcoin.
I sent small amount .£50 from blockchain to bitcoin 3 days ago .just to see how it works.it has shown in my bitcoin wallet as pending so i figure i've sent it correctly.
I realize its been a bit busy lately and im in no rush, but have i just lost £50 into thin air. !

https://blockchain.info/tx/c6848b6bad00d1150aee2c76bee045e074ba58862d0c864e53a826e4c84b188d


texts: Can I run 2 Bitcoin nodes with the same wallets?

texts:
We have a full Bitcoin node with its wallets on the server. The issue is that the majority of our wallets were synchronized long time ago. For us, it would seem that this synchronization task can take a significant amount of time in which the Bitcoin node will be unreachable for all other requests and our server will be unavailable for users.

We think about replicating the current Bitcoin node on the separate server and synchronize wallets there. After this process will be finished we will copy wallets back to the origin server.

Is it doable? Or we can't have the same wallets on two different Bitcoin nodes?


texts: how to get bitcoind to launch on startup/reboot? ubuntu 16.04

texts: Is there an easy way to ensure that bitcoind restarts on system reboot? I tried placing the systemd service file in /etc/systemd/system but that didn't seem to work... thanks in advance


texts: Enable dustRelayFee behavior on testnet to get error code 64: dust

texts:
Crafting and sending an utxo of 1 satoshi does works and get mined on testnet without error. However on mainnet the error code 64: dust arise.

I understand the basic idea that you are not able to broadcast a transaction containing an utxo with a value so low that spending it(the low utxo) would not be enough to pay its tx fees. What is meant by Bitcoin dust?

So naturally I'm looking for setting this behavior in testnet in order to implement a proper way to handle this case. To do so I start my testnet node with:

  bitcoind -datadir=/Volumes/EXT_SD/bitcoin -dustrelayfee=0.00003

I don't understand why it still allow me to send an utxo of 1 satoshi 1 sat ex as I expected to received an error code 64: dust instead of a successfull broadcast. The params dustrelayfee in the command line seems like recognised as the node start but looks like not working as I don't get an error when pushing a tx with an utxo of only 1 satoshi.  -> My goal is to have a testnet node which throw me an error related to dust output as testnet would do if a legacy output is below 546 satoshi


texts: How does the SuperNet NXT Multigateway Exchange work?

texts:
I'm still trying to figure out how the multigateway exchange works for nxt. i see you can put your bitcoins and other altcoins into the system and trade on top of the asset exchange using the nxt wallet creating a decentralized exchange. my concerns are:

Do my bitcoins / altcoins goto a centralized wallet like how typical exchanges work today?
Who controls the coin wallets and what if they need to be rebooted?
What prevents the multigateway admins from running away with our coins?
What are some major advantages to over typical exchanges today like cryptsy / poloniex / bter?


texts: How to obfuscate public IP of Mining pool?

texts:
How to obfuscate the public IP address of a mining pool, to protect it against DDOS attacks?

I have a yiimp mining pool running on a cloud server.

I would like to secure it with HTTPS and anti-DDOS by obfuscating the public ip using Cloudflare, while still retaining stratum mining functionality from the yiimp pool.

The domain of my website is mycoin.io and I have set up the DNS to point to cloudflare. So now the website has HTTPs and DDOS protection.

My yiimp pool server is hosted on the cloud at 149.55.55.55 and I have setup cloudflare to redirect subdomain pool.mycoin.io to that ip address.

Now my mining script can look like this:

-o stratum+tcp://149.55.55.55:3747 -u WALLET_ADDRESS -p c=BUEN

or like this:

-o stratum+tcp://pool.mycoin.io:3747 -u WALLET_ADDRESS -p c=BUEN

But this does not provide any https or anti-ddos protection.

How can I obfuscate the public IP of my pool so that:

-o stratum+tcp://pool.mycoin.io:3747 -u WALLET_ADDRESS -p c=BUEN

still works?


texts: Selling copies of blockchain database on disc

texts:
Is it ethical / legal / at all possible to burn a copy of the Bitcoin (or any cryptocurrency) blockchain to a disc, and then sell the disc? Would there be any additional issues if we included a copy of the client (and associated source code)?

The idea is to make it easy for people to get started using Bitcoin without having to download 6 or more years' worth of blockchain data. The content would essentially be the Bitcoin data directory (minus the wallet.dat of course), and, if possible, the client. Users could insert the disc, install the client, and have the entire blockchain as of the date the disc was published.

Is this legal under the terms of the MIT license? Is there another license covering the blockchain data itself? Would anyone actually be interested in something like this?

I was thinking that perhaps something like this could be published annually, with the profits going to support the Bitcoin developers.


texts: Missing Deposit in my bitcoin core account

texts: I downloaded Bitcoin core to my computer and after that I bought some bitcoins. I didn't realized that my bitcoin core was not synced, after 3 days waiting to finish now my deposit is not showing in my wallet. What can I do?


texts: Are there examples of scripthash transactions in the blockchain that do not use MultiSig destinations?

texts:
BIP 16 uses an example of a one signature required transaction as a scripthash example:

scriptSig: [signature] {[pubkey] OP_CHECKSIG}
scriptPubKey: OP_HASH160 [20-byte-hash of {[pubkey] OP_CHECKSIG} ] OP_EQUAL

Has this been used in the blockchain?  Additionally, what's an easy way for me to grep through the blockchain looking from scriptSigs or scriptPubKeys that meet strange conditions?


texts: How to build Bitcoin from source on Ubuntu 11.04 Natty Narwhal?

texts:
We have this detailed tutorial for Lucid Lynx, but somehow it doesn't work for Natty.

We also have a similar question but it is too broad and the solution there isn't complete enough to work.

I created this question asking for a tutorial that will work on any freshly installed Natty.


texts: Bitcoin-cli getbalance returning negative value

texts:
I am running: bitcoin-cli getbalance username 1

It is returning -37.01

How is it possible for an account to be negative? Is this a bug or do I need to add stricter security when performing a send to prevent accounts from going negative?

I am running this in daemon mode on debian.


texts: Transaction as been confirmed but has not reached receiver's wallet

texts:
Transaction 26e074dda878b78b122739b6dbe65d06472bb40ca3abd047a58910016cd5467a

Receiving Wallet address: 3J4Vwkd8KBzf7Np69KWkkvzED6HyRTpL1e

Amount: 0.04457308 BTC


texts: Say I want to use a Bitcoin expertise I have and turn that into a career. Is there any website listing job offers related to Bitcoin that I could use? Alternatively, if I am someone looking for Bitcoin-savvy people to employ, where should I start looking?


texts: How to get _integer_ satoshi values from JSON RPC?

texts:
It seems that RPC calls for getting JSON information on blocks return "value" fields in bitcoins, not in satoshis.
This means that there is a conversion from integer to float somewhere, which is disturbing since it may introduce rounding errors (see context below).
Is there any way to get the integer satoshi amounts directly in the JSON?
Otherwise, is it completely safe to just multiply the float value by 10^8 and take the integer part?
Is there a better way to directly obtain the integer satoshi value?
Thanks!

Let me give some context.
A typical concern is that, for instance, most systems have no float of value (exactly) 0.1; they generally have a (tiny) difference.
On my machine, I obtain:
python3.6 -c 'print("%.20f"%0.1)'
0.10000000000000000555

python3.6 -c 'print(0.1+0.1+0.1==0.3)'
False

This is generally safe, but in my context this raises messy issues, so dealing only with integers is appealing.


texts: Bitcoin addresses can be generated on this site https://www.bitaddress.org, but the test network needs m or n at the beginning of the address, where can those be generated？


texts: Does the block size issue also apply to Dogecoin?

texts:
Looking at https://bitinfocharts.com/ I see that Dogecoin has only 13% of the number of transactions per day that Bitcoin has (12,778 vs 94,166). I understand that makes block sizes less of an issue for Dogecoin.

Is that the only reason why I've never seen Dogecoiners partaking in debates about block sizes, or do they have some other reason for not worrying about this yet?


texts:
As per my understanding whenever someone sends a bitcoin it gets added to the transaction pool. The miner then take these transactions from the pool and add it to the block. However, I wanted understand
(a) how does the transactions by themselves get validated.
So if Bob sends 2 bitcoin but he doesn't have that many bitcoins then how is this transaction validated.
(b) If the transaction are validated by the wallets cant the wallets be hacked and manipulated.


texts: Bitcoinj Spend from a address directly without wallet

texts:
I am stuck trying to send coins from arbitary privateKey in bitcoinj. How can I make the following function work without using the Kit or Wallet classes?

@Override
public String transferCoin( ECKey sendingAdress, String destinationAddress, BigDecimal coins) throws Exception {
    return null;
}

Additionally I need to receive the notifications of coins being received on any address in the database, how can I achieve it without the wallet Class?


texts: Is there a point on the secp256k1 curve for any given X coordinate?

texts:
There function in libsecp256k1 that allows you to directly set the field element to 32 bytes of your choice. Does secp256k1 always return a valid group element for any 32 byte value?

secp256k1_fe_set_b32(&xpoint, bytes)
secp256k1_ge_set_xo_var(ge, &xpoint, 0)


texts: Invest 100USD in BTC and BTC went down by more than 100USD. How much I lose? Can I hold? how long?

texts:
If I invest 100usd in BTC and let's say BTC went down next down by 200. What will happen? Would I only lose my 100 usd? OR, I also owe another 100usd?
If anyone can explain. NOTE: Super new in investment world.
Thank you.


texts: How convert Bitcoin Privat Key Compression to public address?

texts:
This script gets the public address from the uncompressed private key.
import ecdsa
import hashlib
import base58

private_key = input("privatekey: ") # e41b45e722251672c01a28e4fada590471fea09f90d13b143033ed3a1107ef49

# Convert hex private key to bytes
private_key = bytes.fromhex(private_key)

# Derivation of the private key
signing_key = ecdsa.SigningKey.from_string(
    private_key, curve=ecdsa.SECP256k1)
verifying_key = signing_key.get_verifying_key()

public_key = bytes.fromhex("04") + verifying_key.to_string()

# Hashes of public key
sha256_1 = hashlib.sha256(public_key)
ripemd160 = hashlib.new("ripemd160")
ripemd160.update(sha256_1.digest())

# Adding prefix to identify Network
hashed_public_key = bytes.fromhex("00") + ripemd160.digest()

# Checksum calculation
checksum_full = hashlib.sha256(
    hashlib.sha256(hashed_public_key).digest()).digest()
checksum = checksum_full[:4]

# Adding checksum to hashpubkey
bin_addr = hashed_public_key + checksum

# Encoding to address
address = str(base58.b58encode(bin_addr))
final_address = address[2:-1]  # change 2

print(final_address)

Format (private keys):
        uncompressed: 0x80 + [32-byte secret] + [4 bytes of Hash() of previous 33 bytes], base58 encoded
        compressed: 0x80 + [32-byte secret] + 0x01 + [4 bytes of Hash() previous 34 bytes], base58 encoded

    case 1:

    secret (hex): 1111111111111111111111111111111111111111111111111111111111111111
    uncompressed:
        secret (base58): 5HwoXVkHoRM8sL2KmNRS217n1g8mPPBomrY7yehCuXC1115WWsh
        pubkey (hex): 044f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa385b6b1b8ead809ca67454d9683fcf2ba03456d6fe2c4abe2b07f0fbdbb2f1c1
        address (base58): 1MsHWS1BnwMc3tLE8G35UXsS58fKipzB7a
    compressed:
        secret (base58): L4xkFv5sbttQcsgnTjzqJuQdNfHC5gk9zsK5HmaV822qu79zJA7L
        pubkey (hex): 034f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa
        address (base58): 1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9

I need to get this code to work with two formats, but I don't understand what needs to be fixed. If I insert a compression private key 682cf5791be8d4526aacf63bb7ab201f5cd1d732c1f634e5839379191b02295925 , I get an error:

ecdsa.keys.MalformedPointError: Invalid length of private key,
received 33, expected 32

I understand that the bottom part of this code can be used, but I am failing to lack knowledge.
def __private_to_compressed_public(private_key):
        private_hex = codecs.decode(private_key, 'hex')
        # Get ECDSA public key
        key = ecdsa.SigningKey.from_string(private_hex, curve=ecdsa.SECP256k1).verifying_key
        key_bytes = key.to_string()
        key_hex = codecs.encode(key_bytes, 'hex')
        # Get X from the key (first half)
        key_string = key_hex.decode('utf-8')
        half_len = len(key_hex) // 2
        key_half = key_hex[:half_len]
        # Add bitcoin byte: 0x02 if the last digit is even, 0x03 if the last digit is odd
        last_byte = int(key_string[-1], 16)
        bitcoin_byte = b'02' if last_byte % 2 == 0 else b'03'
        public_key = bitcoin_byte + key_half
        return public_key

I've done a lot of tests, but I can't figure out what's wrong. Tell me how to modify the code correctly.
Thank you in advance for your help.


texts: easybitcoin.php get transactions with 0 confirmations

texts: i use easybitcoin.php (JSON RPC) script for generating and checking addresses, and i have a problem because i cant get incoming transaction with 0 confirmations, it is any way to show this using easybitcoin.php script?


texts:
Here's my bitcoin.conf:

server=1
rpcallowip=127.0.0.1
rpcuser=userrunningbitcoind
rpcpassword=passwordofuserrunningbitcoind
rpcport=7788
walletnotify=/home/userrunningbitcoind/transaction.sh %s

And here's my transaction.sh, which I've tried running manually already. This works without issue on its own:

#!/bin/sh
curl -d "txid=$1" http://127.0.0.1/api/process-payment

What else can I try to get walletnotify going?

EDIT:

I've additionally found this in my debug.log:

2018-01-19 05:49:22 Binding RPC on address 0.0.0.0 port 7788 failed.
2018-01-19 05:49:22 No rpcpassword set - using random cookie authentication
2018-01-19 05:49:22 Generated RPC authentication cookie /home/userrunningbitcoind/.bitcoin/.cookie


texts: Could any standard fee transaction be double spent by using a higher fee?

texts:
I realize that if somebody makes a transaction without any fees and there have not yet been any confirmations, then the transaction could be double spent by just spending the same inputs to a different address, but with a standard fee.

My question is, if somebody sends a transaction with a standard fee, and there have yet to be any confirmations, could that transaction be just as easily overridden by rewriting the transaction, but with a higher fee? If so, what would be the implications for a party that accepts zero confirmation transactions such as BitPay?


texts: What is the weight of a block that contains no pay-to-witness scripts?

texts:
I'm trying to understand block weight, a metric introduced by segwit (BIP-141):

block weight = 3 * base size + total size

"base size" is the length of a pre-segwit block, which contains only serialized base transactions. "total size" is the length of a post-segwit block, which contains both serialized base transactions and serialized witness transactions (as defined in BIP-144). The weight of any block must not exceed 4 MB.

The weight of a block without pay-to-witness scripts can found by computing total size. It's tempting to set base size equal to total size:

block weight = 3 * base size + base size = 4 * base size

But this assumes the length of the serialization of a non-segwit base transaction equals the length of the serialization of a non-segwit witness transaction. This doesn't appear to be the case:

The witness transaction serialization format appears to follow the structure shown above (which is also the input to find wtxid). Notice two additional bytes before the list of inputs (marker and flag, respectively). Moreover, the witness requires at least one byte (the witness field count) even if no fields are present.

In other words, a witness transaction serialization will always be at least three bytes longer than a base transaction serialization, regardless of whether a witness is present.

If this is correct, then segwit is in fact reducing the block size limit for blocks devoid of pay-to-witness scripts by a factor proportional to the number of transactions in the block.

What am I missing?


texts: Bitcoins lose their value over time.. or do they?

texts:
If the total number of bitcoins is increasing all the time, then does that mean that the value of my bircoins are decreasing all the time?

Or am i just so used to thinking along the lines of the system of money creation used by the banks?

IF the value of bitcoins is solely dependent on the value that people are willing to place on them, then their value is only as valuable as the current perceived value?

Seems contradictory, or is it?

Wait a minute..  did i just ask a question, or answer one?


texts: On my first shopping via bitcoin I get "The fee for this transaction seems unusually high. (20%)" What to do about it?

texts:
I have some bitcoins in a local Electrum wallet and wanted to do my first shopping with bitcoin from a shop offering payment via bitpay for an item costing (in USD) 20 dollar.
So I went through the payment process with bitpay (Bitcoin amount is around 1.8 mBTC), disabled in Electrum as they had suggested Replace-By=Fee and then pasted bitpay's payment url (bitcoin:?r=https://bitpay.com/i/....) into Electrum.
I got to the send screen. But here I received the following warning: "The fee for this transaction seems unusually high. (20%)" as shown in this screenshot:

Why is the fee so high and how can I reduce it to an "normal level" like with credit cards (say 0.5-5%)?


texts: Is BitCoin developer page's HD Wallet image wrong

texts:
Here is the image I copied from the https://developer.bitcoin.org/devguide/wallets.html#id9
What I understand is that M/0'/1' can derive M/0'/1'/0.
M/0'/1' can't derive M/0'/1'/0'.
To derive M/0'/1'/0, we don't need m/0'/1'. To derive M/0'/1'/0', we need m/0'/1'
Am I right? Or Is the Image right?