Bitcoin Forum
April 23, 2024, 02:49:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »
181  Bitcoin / Bitcoin Technical Support / Re: Verify old wallet on: April 10, 2018, 03:05:39 PM
Thanks!

So if I make a copy of my old wallet and mess around with that (import convert etc.) my old copy will still hold my bitcoins right? I mean as long as I dont spend any bitcoins it doesn't matter what I do with the copy right? (I can delete the copy after I verify the bitcoins?)
If you're going to mess around with it then do it in a secure environment.
If any of the keys inadvertently leak then you 'd lose the bitcoins associated with that private key.
182  Bitcoin / Bitcoin Technical Support / Re: Verify old wallet on: April 10, 2018, 02:42:57 PM
Like LoyceV says, first make a copy of the wallet.dat file, then download bitcoin Core.
Swap the default wallet.dat file with your own in the data directory.
Open the debug window
Open the console tab
Then type
Code:
listaddressgroupings
to get a list of addresses controlled by the wallet
You can check the balances of the addresses in any block explorer.
If you want to import the private key to an SPV wallet then unlock the wallet, and type
Code:
 dumpprivkey <address>
183  Bitcoin / Bitcoin Technical Support / Re: Help me to understand Security breach with cryptocurrency on: April 10, 2018, 11:17:43 AM
The bitcoin blockchain is pretty much secure
You shouldn't worry about that part.
The weak link in the  chain for users is in the private keys-- generating them properly, and storing them securely.
184  Bitcoin / Development & Technical Discussion / Re: Transactions per second with the Lightning Network? on: April 09, 2018, 07:00:51 PM

RGBkey is correct.
Transactions per second is not a valid metric of the Lightning Network because commitment transactions aren't broadcast to the blockchain, just transferred p2p across nodes.
However there are certain factors that can limit this, such as effective routing and channel capacity of the nodes.
185  Bitcoin / Development & Technical Discussion / Re: Error: Bad Index File Sha1 signature when trying to upload to github on: April 09, 2018, 07:09:50 AM
First do
Code:
rm -f .git/index
git reset


If that doesn't work then Check if you have other .git folders in subdirectories and delete them then do a
Code:
git reset
186  Bitcoin / Bitcoin Technical Support / Re: Help me figure out this Multisig issue Please :) on: April 09, 2018, 06:53:55 AM
Hello,
Hoping you guys could help me figure what I did. New to bitcoin and still learning.

I sent funds from a electrum 2fa wallet to a multisig address I generated from a public key of my trezor wallet. How do I release funds?
Multisig (P2SH) addresses start with '3'
This address,
Code:
1JSQznz1WShXBR1nbZ42ngxiiPNxpgSRZD
as you can see, was the recepient of the funds.
It starts with "1" so it is not -- and can never be -- a multisig address
187  Bitcoin / Development & Technical Discussion / Re: manual block check does not work on: April 08, 2018, 04:55:49 PM
Be careful with the byte order.
The byte order of the version is incorrect. It should be
Code:
00000020
instead of
Code:
0200000
So the  version,  previous block hash,  Merkle root,  timestamp in Unix time, difficulty and nonce, when concatenated gives us the byte sequence:
Code:
0000002008d5854957ff2859bb7dc94e6c220f9578548f6b6a2715000000000000000000661565ddf919e99e38f8348797460898916c741b4534cb7457f41cf890896ec0f58cc85ab72a5017993c49f8
The first sha256 hash of it gives
Code:
386fd5f539bac4575fe3451fc969b24c1bd828f7269b0e6d186cba17321b57f9
and the sha256d (the hash of this first digest) gives:
Code:
34c0a8de37e657b3a094a30e1d971ce804b192b9abfa1b000000000000000000
The byte order is reversed and written in little endian given us the block hash:
Code:
0000000000000000001bfaabb992b104e81c971d0ea394a0b357e637dea8c034
188  Bitcoin / Development & Technical Discussion / Re: If there is unconfirmed transaction, coin come back to original? on: April 08, 2018, 03:37:19 PM
If user A send coin to some address B, if that transaction has 0 confirmed, what happen that coin?

He lose money? or how he restore money?
Technically, as long as the transaction has not been included in the blockchain, the UTXOs that transaction spends still belongs to the original sender, and s/he can spend them in another transaction.
This breaks no consensus rules because the transaction has not been mined yet, and so is not in the blockchain.
189  Alternate cryptocurrencies / Altcoin Discussion / Re: exchange and exchange costs ethereum technology on: April 08, 2018, 03:33:29 PM
All ethereum transactions are actually computations, which have costs to prevent spam.
This is denominated in Gas, which is actually just ETH.
MyEtherWallet has a good explanation of it
190  Bitcoin / Development & Technical Discussion / Re: Possible Attack on Bitcoin's Network on: April 08, 2018, 06:12:28 AM
Quote
Say, the government could decide to prevent average users from using the internet to send their transactions to the blockchain. I'm sure there are ways to enforce this. For example, what comes to mind first is a kind of regulation enforced on the internet service providers to block transactions.
There's really no way to enforce this, short of turning off the whole internet for the country.
Previous attempts to censor or limit the information or connections of citizens have always been bypassed easily. See China's Great Firewall.

Quote
disguising transactions as SMS messages and broadcasting them with cell phones,
to even using shortwave radio transmitters attached to computers (this is something Andreas Antonopoulos mentions in his book "The Internet of Money") as a very creative idea to bypass these kinds of attacks on the network.
Say a user was able to broadcast a transaction as an SMS, how would the user monitor the transaction without access to a bitcoin node?
191  Bitcoin / Development & Technical Discussion / Re: Understanding Bitcoin's Hashing Function in Simple Terms on: April 07, 2018, 08:44:17 PM
Quote
So, does this imply that the first time one decides to spend some coins (and expose their public key) their private key is potentially less safe
Theoretically, yes, but practically it doesn't really matter -- for now anyways, and perhaps for a long time.
192  Bitcoin / Development & Technical Discussion / Re: Can SegWit really be a proven solution (or at least an alt) even for the future? on: April 07, 2018, 06:28:52 PM
Segwit is not a the scaling solution for bitcoin, but it is a step in the right direction.
The goal is to reduce the individual sizes of transactions so more of them can fit in a block.

The Lightning Network will also play a part, by offloading lots of micropayments off the blockchain.
193  Bitcoin / Bitcoin Technical Support / Re: Can address be hidden? on: April 07, 2018, 11:29:58 AM
Like ranochigo says, bitcoin addresses are always visible, which is why you shouldn't reuse addresses.
When the Lightning Network is mature enough, you can open a channel with someone else and route some bitcoins to someone else entirely off chain.
194  Bitcoin / Development & Technical Discussion / Re: A type of consensus protocol that based on network delay on: April 06, 2018, 04:17:24 PM
Gossip protocol converges in O(logN) where N is the Number of participants.
I don't quite understand that formula but I am pretty sure that the Gossip protocol is not related. Grin
Oh.
Well when you said this
Quote
In this protocol, I use the transaction broadcast as the "distributed information" and the miners(App developers) make their users pick these signals as fast as possible.
I assumed you were going to use a gossip protocol to broadcast information across nodes.
195  Bitcoin / Bitcoin Technical Support / Re: bitcoin software on the phone on: April 06, 2018, 10:18:17 AM

I need some software to automatically dig a bitcoin when there is a network connection or automatically hang up Smiley
If by "dig a bitcoin" you mean mining, then forget about it.
You can't even mine with the strongest GPU, much less a phone's CPU.
If you want to mine bitcoin, buy an ASIC and join a mining pool
196  Bitcoin / Development & Technical Discussion / Re: A type of consensus protocol that based on network delay on: April 06, 2018, 08:41:24 AM
Isn't it the opposite? In a decentralised system, the lesser users there is, the lesser hops is needed for the information to be passed around and the faster it would be.
Gossip protocol converges in O(logN) where N is the Number of participants.
197  Alternate cryptocurrencies / Altcoin Discussion / Re: Pointium ICO will go to the moon~~~~!!!!!! on: April 05, 2018, 07:52:24 PM
https://www.pointium.org/

Please go to the moon~!! I participated in Pointium with 3 ETH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I hope you're trolling or are a shill account.
Surely no one can be that dumb.
198  Bitcoin / Development & Technical Discussion / Re: Is there a point to signmessage after sending from an address? on: April 04, 2018, 05:06:33 PM
As far as I understand, signmessage just proves knowledge of the pubkey in a P2PKH. Once you send from an address the explicit pubkey becomes known. Ignoring "don't reuse addresses", am I correct in understanding that once you send from an address there's no point anymore in signmessage for that address?
There are many possible reasons for proving ownership of a pubkey or pubkeyhash (address):
- proving identity, for example here in Bitcointalk forum. If you "staked" your address here before and you account gets hacked, you can easily prove ownership of the account by signing a message proving ownership of the address in question.
- dispute resolution with a merchant: you spent all the UTXO associated with an address in a transaction to a merchant but there was an error, perhaps you weren't able to make a payment within the specified time frame, so even though your bitcoin was received by the merchant, you weren't credited because the time frame had expired. You open a dispute with the merchant and prove YOU sent bitcoin to the merchant"from" that address by signing a message.

That's from the top of my head, other users may have more creative reasons.

Quote
And if so, why does signmessage prove knowledge of the pubkey instead of the privkey?
I get the impression almost everyone believes it's there to prove privkey control.

Because you sign a message WITH the private key, and the message is checked AGAINST the public key.
If you can sign a message that verifies against a public key, it proves that you have control over that private key.

Addendum: bitcoin addresses are hashes of the public key, and the UI for verifying messages does not include the field to input the public key because it can be calculated from the message signed and the signature.
199  Bitcoin / Development & Technical Discussion / Re: Actual Process for Creating New BTC for Mining Reward on: April 04, 2018, 01:38:15 PM
The current is 25 BTC

You aren't keeping up with the times man, it has been 12,5 since 2016.
Oops
Thanks.
Fixed.
200  Bitcoin / Development & Technical Discussion / Re: Actual Process for Creating New BTC for Mining Reward on: April 04, 2018, 08:37:12 AM
"they are simply building a transaction that has no inputs and which creates the appropriate outputs for the UTXO"
It means they are "creating" bitcoin out of thin air
Normally, in any transaction that's not a Coinbase transaction, the transaction MUST have inputs it references.
If A sends bitcoins to B, and B wants to send it to C, to spend the bitcoin, B must reference the output of the previous transaction (the one that A sent), and also if C wants to spend it, he must reference the output of the transaction he got from B, that would be the input of the new transaction, and so on.
(It should go without saying that a person can't spend more than the UTXO he uses as inputs contain)

 In a Coinbase transaction, however, there are no inputs to reference so it's like the bitcoins that are paid as mining rewards are created from thin air.

Quote
1 - Bitcoin Core node mine a winning hash
2 - Block is assembled from transactions in the mempool
3-  Block reward transactions is created
4 - Block is written to the chain
5 - CoinBase is populated with new UTXO
It doesn't have to be a bitcoin Core node, just any node that follows the protocol rules.
Also, 2 comes before 1.
The transactions in the mempool of the miner are aggregated before he tries to compute the proof-of-work.
Also, the Coinbase transaction (the one paying the miner the block reward and the fees of the transaction) is the FIRST transaction in the block always.
Quote
Questions
1 -  How is the verification of the winning hash done?
The winning hash is the one whose hash of block header + nonce is less than a given Target.
The target is known by all the nodes in the network and can be independently calculated and verified.
Finding the block header + nonce hash which is less than a given Target is the actual proof-of-work being done by the miner.
Quote
3 -  How is the actual mining reward transaction created and verified

1.) Miner aggregates all the transaction in the mempool that can fit in a block. (the transactions are hecjed for validity, adding an invalid transaction invalidates the whole block)
2) The Coinbase transaction (that pays him the block reward and fees for the transactions aggregated) is included first in this candidate block (not a real block yet because it hasn't computed the proof-of-work and found a "winning hash")

NB: the miner just can't pay himself any arbitrary amount GREATER than the block subsidy as the block reward because the subsidy is fixed and halves after a set number of blocks that corresponds to 4 years. The current is 12.5 BTC , if a miner pays himself a larger amount than that, even if he finds the winning hash, his work will be in vain because ALL the nodes in the blockchain will REJECT his block as invalid, because it does not obey the consensus rules, and thus it wouldn't even propagate far. The only way he can do this correctly and succeed is if he somehow convinces the WHOLE network -- or most -- to run his custom software that uses a different set of rules.

3)Add previous block hash as a reference.
 Summarise all the transactions in the block (including the Coinbase transaction) as a Merkle tree, add a timestamp, and the Target. Then the  nonce
5)4 above forms the block header, the miner then hashes this value while changing the nonce after each hash until the hash is less than the target.
If he finds one that is less than the target i.e the winning hash, he then "publishes" the block, which other miners and nodes verify. If it is valid according to the protocol rules, then other miners will mine on top of it, and the transactions in the block have 1 confirmation.
Then the race starts all over again.

However, this Coinbase transaction that pays the miner his rewards cannot be spent until after 101 confirmations (100 blocks). This is because, in case of a temporary fork where 2 miners find the winning hash at the same time, one will be invalidated and dropped by the network (the one with less proof of work). If this happens all the transactions in the orphaned block (that aren't in the validated block) that were heretofore confirmed will be sent back to the mempool. The Coinbase transaction can't be sent to the mempool since it isn't a valid transaction because it references no inputs, so it will disappear completely.
If the Coinbase maturation didn't exist, orphaned blocks would cause a problem for the network because coins that once existed would no longer exist.

Quote
I'm studying currency inflation mechanisms,  any incite would be greatly appreciated.     -Thanks
In that case you should read Andreas Antonopolous' book Mastering Bitcoin
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!