Bitcoin Forum
May 28, 2024, 01:59:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 [141] 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ... 590 »
2801  Bitcoin / Bitcoin Technical Support / Re: what better ubuntu 32 or 64 bit? for bitcoin blockchain node on: July 01, 2017, 04:34:38 PM
also I try install litecoind..

after try compile
Code:
cd litecoin/src
make -f makefile.unix USE_UPNP=1 USE_QRCODE=1 USE_IPV6=1


error:
Code:
make: makefile.unix: No such file or directory
make: *** No rule to make target `makefile.unix'.  Stop.

what wrong?
Unlike most altcoins, litecoin actually rebases onto recent versions of Core, so there is no makefile.unix. Read their build instructions, available here: https://github.com/litecoin-project/litecoin/blob/master/doc/build-unix.md.
2802  Economy / Economics / Re: Economics of a hard fork. on: July 01, 2017, 04:32:36 PM
Segwit2x will only activate at 80%.

Does anyone know if a scenario can occur where miners signal for Segwit2x, Segwit locks in but then some stop signalling the 2meg blocksize increase? i.e. roll back to BitcoinCore.

This seems the biggest risk - if we fork with 80%+ miners on one chain that seems safe - but if as you say it is 60% then going to be issues and both chains will probably survive.
That is not possible. The hardfork for segwit2x will happen a fix number of blocks after segwit activates. So there is no signalling, but miners who signalled for segwit2x can change their software back to Core after segwit activates.
2803  Bitcoin / Bitcoin Technical Support / Re: Bitcoin core stuck on: July 01, 2017, 07:52:28 AM
Thx for reply

2017-07-01 07:28:06 ERROR: ConnectBlock: Consensus::CheckBlock: bad-txnmrklroot, hashMerkleRoot mismatch (code 16)
2017-07-01 07:28:06 ERROR: ConnectTip(): ConnectBlock 000000000000000000065172befe30c653cc19dea6854c8ff5c3adb0d3ab9810 failed
That means you have a corrupted block on disk and you may need to resync the entire blockchain. At the very least, you will need to reindex it since you will need to delete the file containing this block and all of the files after it.

Can you post ALL of your debug.lof? Just two lines is not enough.
2804  Bitcoin / Bitcoin Technical Support / Re: A fetal error occurred. Bitcoin no longer continue safely and will quit on: July 01, 2017, 07:39:17 AM
but my bitcoins not showing
Are you fully synced yet? If not, let it sync. If you are synced, try rescanning. Add rescan=1 to your bitcoin.conf file and start Bitcoin Core. Once Core has started, remove that line so that you don't rescan every time you start Core.

Also, would you be willing to send me your wallet.dat file, after you move all of your Bitcoin out of it of course. I want to investigate what is causing the error so that I can determine whether it is a bug in Core and if it can be fixed.
2805  Bitcoin / Bitcoin Technical Support / Re: Can we find password stored area or lines in wallet.dat file on: July 01, 2017, 07:36:58 AM
The wallet.dat file is a Berkeley DB file, not a text file. There is basically no human readable text in it (except maybe for comments) and is in whatever binary format BDB uses for its database. This means that unless you have something which can read BDB files, you aren't going to be able to find anything of use. It's really just a binary blob.
2806  Bitcoin / Bitcoin Technical Support / Re: New Bitcoin Address on: July 01, 2017, 07:33:56 AM
So every wallet has one private key. You can generate many (infinite?) addresses from it, right? And this are called public keys. So when you want to receive BTC you give public key to person who will pay you. He get this address and BTC is sent to you.
No, that is incorrect.

Each public key has one private key, and each private key corresponds to only one public key. Each public key corresponds to one address. If you have multiple addresses, you have multiple public keys, and multiple private keys. A wallet is simply a collection of private keys and their corresponding public keys and addresses. To the network and the blockchain, there is no such thing as a wallet.

Now i have some questions, if someone could explain me:
1. Who is actually getting BTC? Public address or private key?
I assume you get it on public key, but you can manipulate that asset only if you have private key of that public key. Is this right? And if yes, could you send BTC between public keys generated from same private key?
2. Are only public keys used in Blockchain to record transactions?
No. That is not how Bitcoin works.

In Bitcoin, there is no such an object as a "Bitcoin". There isn't anything for you to actually receive. All Bitcoin is is transactions with outputs. Each output specifies that whoever spends it must provide a proof that they are allowed to spend it. For most outputs, that means providing a digital signature which signs the spending transaction and that signature is then included in the spending transaction itself. There are no actual "coin" objects; just outputs.

Addresses are a hash of the public key. So with most outputs, the output specifies that a valid digital signature must be provided and the public key that verifies that signature must hash to the hash specified in the output. The signature can only be created by the private key for the public key that was hashed to become the address.

3. You can't really check someones full wallet if he is using more public keys? You only know how much BTC is on one public key not whole private key/wallet?
You can check how much Bitcoin an address can spend. Based on past spends, an address can be linked to other addresses. But other than that, you cannot know what other addresses are in a person's wallet and thus you cannot know his wallet's full balance.

Yeah. True. But I know a wallet that doesn't have fee when you transfer bitcoins to similar wallet and fees only applied to other wallets though unfortunately it's not HD wallet (it's our leading local exchange wallet here) though it is not or might not be possible to adopt it since it runs a little bit diffeent.
If it is an exchange wallet, then that means that they aren't actually making a Bitcoin transaction. The transaction is an internal off-chain transaction which is just changing records in the exchanges database to update with the new balances for each account. This is 0 fee because there is (basically) 0 cost, although the exchange may charge a fee for doing that because they can make money from doing so.

Very well said, even you do have lots of different address but all are linked on the same address which is your primary and as being said all bitcoins that have been transferred on those sub-addresses will always credit on the main address. This is what I like when you tend to hide your main address on public and they cant really peek you out. I don't have much knowledge what would be the risk on using it on exchanges though.
There is no such thing as a "main address" or a "sub-address". Addresses are not related to each other and can stand separately. A wallet may have a "main address", but that is internal to the wallet only and no one else knows nor cares about it.
2807  Bitcoin / Bitcoin Technical Support / Re: Bitcoin core stuck on: July 01, 2017, 07:21:03 AM
at block 470533. I waited for 2 days, now trying to change options and restart but nothing seems to work.
Post your debug.log file.

On top of that watch only wallet imported to Electrum says that most of BTC was withdrawn from Armory cold storage.
I dont believe it, probably Electrum bug, but i'm nervous.
That has nothing to do with the first issue. Make a new thread for this issue and post it in the Electrum section.

WTF happened to Bitcoin blockchain???
Nothing did. This is a you problem.
2808  Bitcoin / Bitcoin Technical Support / Re: A fetal error occurred. Bitcoin no longer continue safely and will quit on: June 30, 2017, 05:53:27 PM
I tried this method but still showing problem. I've mentioned below which Bitcoin Core working or not working with my wallet.dat,

Bitcoin Core version 0.14.2 Not working with my wallet.dat
Bitcoin Core version 0.14.1 Not working with my wallet.dat
Bitcoin Core version 0.14.0 Not working with my wallet.dat
Bitcoin Core version 0.13.2 Not working with my wallet.dat
Bitcoin Core version 0.13.1 Not working with my wallet.dat
Bitcoin Core version 0.13.0 Not working with my wallet.dat
Bitcoin Core version 0.12.1 Working with my wallet.dat
Bitcoin Core version 0.12.0 Working with my wallet.dat
Bitcoin Core version 0.11.2 Working with my wallet.dat
Bitcoin Core version 0.11.1 Working with my wallet.dat
Bitcoin Core version 0.10.3 Working with my wallet.dat
Bitcoin Core version 0.11.0 Working with my wallet.dat
Bitcoin Core version 0.10.2 Working with my wallet.dat
Bitcoin Core version 0.10.1 Working with my wallet.dat
Bitcoin Core version 0.10.0 Working with my wallet.dat
Interesting. Thank you for trying that, I know what the problem is now and how you can fix it (although it is a bug that needs to be looked at).

Go to the Bitcoin Core datadir (same place where you find the debug.log file). Then either edit or create a bitcoin.conf file. Add to that file the following line:
Code:
usehd=0
Then start Bitcoin Core and it should work.
2809  Bitcoin / Bitcoin Technical Support / Re: A fetal error occurred. Bitcoin no longer continue safely and will quit on: June 30, 2017, 04:41:50 PM
It looks like your wallet.dat file is corrupted. Try replacing your wallet.dat file with a backup.
2810  Bitcoin / Armory / Re: Armory forever? on: June 30, 2017, 04:41:13 PM
Armory is open source and there are instructions to build the software within the source code itself. So if Armory is no longer being developed, you can download the code yourself and build it in order to get your coins out. If goatpig takes down his repo for whatever reason, many other people have forked it (including myself) and there's also the original repo so you can download the source code from other places.
2811  Bitcoin / Bitcoin Technical Support / Re: How someone stole my bitcoin within 1 second ? on: June 30, 2017, 06:37:39 AM
In what way do you think choosing an address at the end of the private key address range would be secure? There are most definitely people who are monitoring the private keys at the beginning and the end of range and will swipe any and all Bitcoin sent to those addresses. It is almost definitely a bot that probably monitors a few thousand private keys at the beginning and end of the private key range.

i was using vanitygen64  to generate some btc address and private keys pair. but first i wanted to see if someone can steal btc using only 51 char long WIF format already present on public site.
Every single private key is known. It doesn't matter if it it is on a public site or not, everyone already knows what every single private key is. Its just that the range is so massive that trying to go through all of the keys to find all of the ones that have Bitcoin is insanely expensive and takes a ridiculous amount of time (like longer than the heat death of the universe amount of time). Vanitygen randomly generates private keys until it gets one that has an address with the prefix you want, so it is secure.


private key associate with
1PDSZN2qgFcuay1vVRxYo1yp9gfXeSKJgt
is
5Km2kuu7vtFDPpxywn4u3NLpbr5jKpTB3jsuDU2KYEqemizF9vA
its in WIF format.

how did you get
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364101
private key ?

thanks
That's the private key expressed in hex.
2812  Bitcoin / Armory / Re: Armory not seeing BTC Balance & Passcode Issues on: June 30, 2017, 04:54:32 AM
Thanks!! Cheesy

Achow101 is onto something. Bitcoin core is fully synced up to the most current block, but Armory is only syncing up to block #351223.
Anything I can do to sort this? I can't see anything obvious in the log.
Post your log files.

I'm going to -reindex Bitcoin-qt and then restart Armory to see if anything changes.
That probably won't help since Bitcoin Core's databases have nothing to do with Armory's.
2813  Bitcoin / Bitcoin Technical Support / Re: A fetal error occurred. Bitcoin no longer continue safely and will quit on: June 30, 2017, 04:46:48 AM
Which part of  debug.log i need to show here, Thank You.
All of it.
2814  Bitcoin / Bitcoin Technical Support / Re: Spend P2PK output in 2017? on: June 29, 2017, 06:33:02 PM
I'm getting "Error parsing JSON" on the second argument (the part containing the scriptPubKey),
Oops. I forgot a few brackets. I will edit my post.

so I have a few more dumb questions:

1. Is the txid supposed to be the txid of the new unsigned transaction (the first one you see when decoding it), or the txid of the input (the one included in the "createrawtransaction" command)?

2. Is the amount field here supposed to contain the value of the input (say 10), or the value of the combined outputs (say 9.9993 accounting for transaction fees)?
The txid, vout, scriptPubKey, and amount are all the values for the input that you are spending.

Edit: I was able to eliminate the JSON error by adding in curly brackets in the square ones.
Right, I forgot to add the curly braces in my command for you earlier.

Now it completes, but it still doesn't sign the transaction. It adds in the script, but it does not actually sign it. (It throws me no errors though and deems the action complete).
If it says complete, then the transaction is signed. Complete is only true when the returned transaction has a full set of signatures. In what way is it not actually signed?
2815  Bitcoin / Development & Technical Discussion / Re: Stratum specs on: June 29, 2017, 04:57:55 PM
Let assume that a USER has running ASIC connected to a POOL

1) Can the USER by sniffing the TRAFFIC (data sent from a pool) monitor such things as
a) currently mining blockheight
Yes. The message which sends work to a miner contains the previous block hash and the coinbase except for the extranonce(s). Since the coinbase transaction contains the block height currently being mined, you can easily extract that data.

b) coinbase transaction data (scriptSig)
Yes. Since the entire coinbase transaction except the extranonce(s) are sent, the entire coinbase is known.

2) How does ASIC <---> POOL protocol works? Is it http longpoll or socket connection?
It is a socket connection.

The actual stratum documentation can be found at https://slushpool.com/help/manual/stratum-protocol
2816  Bitcoin / Armory / Re: Armory not seeing BTC Balance & Passcode Issues on: June 29, 2017, 07:16:18 AM
Is Armory fully synced? How many blocks does it say in the bottom right hand corner? Is Bitcoin Core fully synced?
2817  Bitcoin / Armory / Re: Can't make 0.96.0.3-testing --"No targets specified and no makefile found." on: June 29, 2017, 05:35:30 AM
Scrolling back I now see the problem occurred on the configure step:

configure: error: *** A compiler with support for C++11 language features is required.

I did upgrade gcc to 5.4 for this, see:

$ gcc --version
gcc (Ubuntu 5.4.1-2ubuntu1~14.04) 5.4.1 20160904
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
That looks right. Rerun configure and if there are no errors, run make with no arguments or options except your -j option. I also recommend that you actually use a number instead of a shell-ism to lookup the number of cores you have.
2818  Bitcoin / Bitcoin Technical Support / Re: Spend P2PK output in 2017? on: June 29, 2017, 05:09:24 AM
./bitcoin-cli signrawtransaction "(txinhex)" (which I thought might prompt me interactively for a private key but instead just produced the "input not found" error)

and the rest which all produced the "Error parsing JSON: (privkey)" (with whatever punctuation I put it in attached too) error:

./bitcoin-cli signrawtransaction "(txinhex)" ["(privkey)"] ALL
./bitcoin-cli signrawtransaction "(txinhex)" ["(privkey)"] "ALL"
./bitcoin-cli signrawtransaction "(txinhex)" "(privkey)" ALL
./bitcoin-cli signrawtransaction "(txinhex)" "(privkey)" "ALL"
./bitcoin-cli signrawtransaction "(txinhex)" "" "(privkey)" "ALL"
./bitcoin-cli signrawtransaction "(txinhex)" "[]" "(privkey)" "ALL"
./bitcoin-cli signrawtransaction "(txinhex)" "[]" ["(privkey)"] ALL
./bitcoin-cli signrawtransaction "(txinhex)" [] ["(privkey)"] ALL

And every other variation thereof (including with single quotes). Either way it does not seem to be the transaction in hex that it takes issue with, but the private key. That's what it always highlights in the error.

The documentation says that the second argument is optional so I was going based off of that.
The correct syntax that you want is
Code:
bitcoin-cli signrawtransaction "hex" '[]' '["privkey"]'
with hex and privkey being the actual values and not those strings. The position of the quotes is verbatim.

Where would I find the scriptPubKey to provide manually? Or how would I manually formulate it?
You can get the scriptpubkey from any block explorer. The easiest for this, IMO, is blockcypher. Use the following url format: https://api.blockcypher.com/v1/btc/main/txs/<TXID>?limit=50&includeHex=true. Just use that link verbatim except replacing <TXID> with the transaction id. On the page that you get, scroll down to where it says outputs and find the output that you want to spend from. The scriptpubkey is the hex string for the field labeled script.

Then to sign the transaction with Core and completely offline, your command should be like this:
Code:
bitcoin-cli signrawtransaction "<hex>" '[{"txid":"<id>","vout":<n>,"scriptPubKey":"<hex>","amount":<amt>}]' '["<privkey"]'
Everything in angle brackets and the angle brackets themselves (<>) should be replaced with their respective values. The rest should be verbatim. The <hex> that is the unsigned transaction should also be one that is produced by the createrawtransaction command. All that really means is that the scriptsig of each input will just be a 0x00 byte.

This should produce a validly signed transaction that can be broadcast to the network by any node. If you are still unable to broadcast it, make sure that the output you are trying to spend is actually still unspent.
2819  Bitcoin / Armory / Re: Can't make 0.96.0.3-testing --"No targets specified and no makefile found." on: June 29, 2017, 04:58:35 AM
Thanks Casimir1904 and achow101.

For whatever reason, at the make step of these instructions, I still get the same error.

I did try each of the Makefiles by exact name:

$ make -j$(grep -c ^processor /proc/cpuinfo) -f Makefile.am
Makefile.am:13: *** missing separator.  Stop.

and:

$ make -j$(grep -c ^processor /proc/cpuinfo) -f Makefile.in
Makefile.in:15: *** missing separator.  Stop.

I'm just a Linux user, not a C++ programmer, I don't really know what I'm doing, sorry.

Best.
You aren't following the instructions correctly, in fact, you aren't even following the instructions. Please read them again. The makefile.am and makefile.in files are not the makefiles. They are used by the configure script to actually make the real makefile (for which you won't need the -f option) and the configure script is made by running tine autogen.sh script.
2820  Bitcoin / Bitcoin Technical Support / Re: Spend P2PK output in 2017? on: June 29, 2017, 02:16:54 AM
How can I spend a P2PK output in 2017?
The same way you would spend one in any other year. P2PK outputs are still standard and can be used as they were previously used.

Electrum will not broadcast a signed TX containing it ("Non-canonical DER signature"),
What software generated the signature? It either produced the signature incorrectly or the signature contains a High-S value.

and coinb.in will craft the transaction but will not sign it properly with the private key (it just outputs the unsigned transaction again). I am willing to use bitcoind's RPC, or bitcoin-tx, but I cannot figure out the proper syntax for either. It always spits out "Error parsing JSON: (my private key)" at me, regardless of whether I put it in quotes, brackets, or anything
What is the command that you are using to try to sign the transaction (without the privkey of course)?

(or it tells me that the input doesn't exist or has been spent (which it hasn't according to all blockchain explorers)).
That error means that it cannot find the input. If you are not synced past the date that the input you are trying to spend was confirmed, then it will not work.

I don't have this copy of Bitcoin Core synced and I'd rather not have to sync it just to sign a transaction since I think it should very well work offline.
Then you clearly do not understand how transactions are signed. When a transaction is signed, the scriptPubKey must be added to the transaction as it is part of the data that is signed. You must either provide that or Bitcoin Core must be synced so that it can look it up.

The unsigned transaction I am attempting to sign was generated by coinb.in so it already includes the scriptsig.
How so? Can you post it here? The format the coinb.in uses for unsigned transactions may not necessarily be the same format that Bitcoin Core uses.
Pages: « 1 ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 [141] 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ... 590 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!