Bitcoin Forum
June 09, 2024, 04:34:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 [215] 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 ... 317 »
4281  Bitcoin / Development & Technical Discussion / Re: How do I see the contents of the blockchain on a full node on: June 08, 2018, 01:46:51 PM
Thanks bob. Yea I am busy learning this stuff. I basically want to monitor my wallet myself off my own node.

Ill check into these things you sent. Have a good one mate.

The information i have written was regarding gathering information using blockchain.info's API.

If you want to use your daemon, you can write a small script.


Simply edit your bitcoin.conf file and add blocknotify or walletnotify (depending on what you need):
Code:
blocknotify=/path/to_your/script.sh %s
walletnotify=/path/to_your/script2.sh %s

walletnotify will be called if:
1) You receive a transaction to one of your addresses
2) First confirmation of a TX to one of your addresses
3) You send a transaction

blocknotify will be called each time you receive a new block.


Then you can do whatever you want and implement any logic/logging in script.sh and script2.sh.
4282  Bitcoin / Bitcoin Discussion / Re: How can lightning network help Bitcoin? on: June 08, 2018, 01:37:05 PM
Lightning Network with bitcoin will increase the number of transactions in a block, reducing transaction costs

This is not correct.

The lightning network is a second layer scaling solution.

The amount of transactions which fit into a block will not be increased. Neither will the TX fees directly be reduced.
The LN will give you the ability to (1) fund a channel with a standard on-chain transaction, (2) make multiple off-chain transactions with insignificant fees, (3) close a channel with a standard on-chain transaction.

This gives you the opportunity to make trustless instant transactions on the LN without paying the on-chain fees.
It is not directly changing bitcoin. On-chain transactions work the same as before. It is an additional layer on top.

A pretty decent description of the lightning network can be found here.
4283  Bitcoin / Development & Technical Discussion / Re: Proof of Work: Limit node hashrate to improve decentralisation? on: June 08, 2018, 01:02:14 PM
And if you manage to attack the miner's firmware, you'd lose no money at all, same if a pool reaches 51% and you'd attack it.

If you would manage to compromise 51%+ of ASICs, how would you maintain the full control over them? What would you try to 'destroy' the network?
Regardless of what you will do with those ASICs to attack the network, it will be WAY LESS profitable than just using them for mining (or destroying them to increase the actual percentage of 'own' hashrate) while you have control over them.



See above. Also, as said, in PoW miners generally don't care in the coin's health after they cashed out their profit, because they don't need to care about that. They will just move on to the next profitable SHA256 coin and continue.

If bitcoin would suffer a 51% attack maintained over multiple hours, the whole cryptomarket would drop in value.
An attacker couldn't 'move on' to the next coin. They all would be worthless. The altcoins would be crashing first, followed by BTC.

This additionally assumes an attacker is able to cash out in a timeframe between the 51% attack and the markets reaction to such an attack, which does not necessarily apply.
4284  Bitcoin / Development & Technical Discussion / Re: Help recognizing / tracking a bitcoin address on: June 08, 2018, 10:50:24 AM
Mocacinno, do you think it's used directly by the bitfinex owner.. or  it is a normal user account on bitfinex?

I am not Mocacinno (even tho i love drinking them), but i am still going to answer your question  Smiley


Each address owned by bitfinex is 'directly' owned by bitfinex. They just provide their address to a user to deposit to.

It (most probably) is a deposit address, since the concept of a 'mixing address' is unnecessary. It doesn't bring any benefits, just more TX's -> More fees.

The withdrawals from this address about 10-60 minute after deposits do also indicate that it is a 'deposit' address (which is being used to withdraw other customer).
4285  Bitcoin / Development & Technical Discussion / Re: The usability of Lightning network on: June 08, 2018, 10:44:45 AM
But I think even now, after all these years, Bitcoin mainnet wallets are still far from perfect and many people, especially newcomers still choose to keep their coins on exchange, which sometimes leads to loss.

There are a lot of (almost) perfect wallets available.
There are advanced wallets with intuitive UI (e.g. electrum) and very straight-forward wallets (e.g. andoid: mycelium).

But even secure wallets can be easy to use. Take ledgers application for example. It is very easy to use. Thats really not a proper reason to leave coins on an exchange.

If you are buying because you believe in bitcoin or want to use bitcoin, you should also be able to understand a simple wallet application.
If you are buying BTC because of getting rich over night.. well.. Those people WILL lose their coins sometime in the future.



So, all clients need to keep improving to make Bitcoin user experience better, developers need to put themselves in place of users to understand their needs. And if you as a user have some problems with software, you should provide your feedback to developers to help them see what can be improved.

A developer is not responsible for the stupidity of a user.
There are enough wallets which are easily understandable. If one can not figure out how to use a simple wallet, he should maybe not own cryptos at all.

4286  Bitcoin / Development & Technical Discussion / Re: Help me please, my Bitcoin is going away on: June 08, 2018, 09:39:19 AM
If you are receiving such a high amount daily, you might consider buying a hardware wallet.
This way an attacker would have no chance to get access to your coins or private keys.

Until then, you might install a wallet on an offline-machine (e.g. electrum on bootale USB linux distro) and receive your payments there.
And definitely do what Lucius said and run a malware scan.
4287  Bitcoin / Development & Technical Discussion / Re: Limits of POW on: June 08, 2018, 09:31:26 AM
Transaction throughput scalability has nothing to do with PoW.

Sorry but that’s not correct.

Sorry, but this IS correct.

A consensus algorithm is completely independent from scaling/blockchain itself.
The consensus algorithm basically just describes which block is being accepted/valid. It has no influence on scaling, neither on the amount of transactions.




That being said, when Satoshi created Bitcoin there was nothing else to choose but PoW. PoW was what enabled cryptocurrencies in the first place, solving a problem that was previously believed to be unsolveable.

You’re speculating. So I will too. We don’t know how many technologies the Zionists were aware of when they created Bitcoin.


 Roll Eyes
What do you think could have been chosen except from PoW? PoW definitely was the best option to choose from.



I see.That being said,I beleive that other Consensus like POS doesn't have such limitations right? So why some coins still use PoW when there is better options? And is it possible to change Bitcoin's system? If yes who decides? I apology for advance for my ignorance.Thanks

PoS and its variants are nothing more but different consensus algorithms. They make no difference in terms transaction and thus blockchain size. All things being equal, a blockchain based on PoS scales just as bad as a blockchain based on PoW.

Again that is not necessarily true. And I know for a fact isn’t true...

You seem to misunderstand the utility of the consensus algorithm. The design of the consensus algorithm has NO IMPACT on the transaction-/blockchain- size or the amount of TX's being processed within a timeframe.
4288  Bitcoin / Bitcoin Technical Support / Re: transaction time on: June 08, 2018, 09:17:19 AM
What kind of hash rate you used? Was it sent as normal or priority ? it all depends upon this factor.

Wow.

'Hash rate' is completely irrelevant when sending a transaction.
It is being talked about hash rate in context mining or network strength.

Additionally there is no 'priority'. Some wallets may display a 'priority' calculated from the fee.
However, a priority does not exist. If you want to get your TX confirmed faster, send a higher fee. But sending a fee which is higher than the recommended for 1 block would be a waste.
Check this site and this one to choose the correct fee.


The time it takes for a transaction to be confirmed only depends on the (1) amount of transactions in the mempool and (2) your fee compared to the other TX's fee. And of course on the (3) time it takes for a miner to find a block.
4289  Bitcoin / Hardware wallets / Re: New Ledger native desktop app to be released on July 9th, 2018 on: June 08, 2018, 09:06:59 AM
I found it a bit boring to have to go through Chrome and install/use an application..

Thats the same thing which makes me feel quite uncomfortable when accessing my nano s.
It just doesn't feel right to install google chrome and use a chrome application to access your cryptos, especially on linux  Roll Eyes

I am definitely looking forward to use ther native application. For BTC we can use electrum to bypass the usage of chrome.
But there aren't proper wallets available for other coins (e.g. ETH). And im not a big fan of MEW :7


Lets see how long it takes until the application is released and how long the 'future releases' with additional features will take.
4290  Bitcoin / Hardware wallets / Re: Is hardware wallet can be hacked? on: June 08, 2018, 09:02:16 AM
Ledger Nano is a smartcard-based hardware wallet. A private key is created and signed offline in a smartcard secure environment.

The ledger nano (HW.1) was based on a smartcard (ST23YT66) with USB support.
However, it is not being maintained or (officially) sold anymore.

Their maintained product, the ledger nano s, is based on the ST31H320 Secure element, which does differ entirely from the HW.1 architecture.
This secure element doesn't even support USB/Displays. Thats the reason ledger uses a second microcontroller (STM32F042K6).
This was the attack surface used by Saleem Rashid when finding a vulnerability in their architecture.
4291  Bitcoin / Wallet software / Re: Which wallet should I use? on: June 08, 2018, 08:53:32 AM
Iam using coinbase wallet for long time, still i didn't face any problem. It is very safe and secure wallet among other wallets.


Coinbase can NOT be considered a safe and secure wallet.

Don't consider 'coinbase' as a secure/safe wallet.
Coinbase is a company which does offer an exchange.
They do provide a service where they are in charge of your bitcoins, allowing you to withdraw them. But this is NOT a proper wallet, since you don't have access to your private keys, effectively NOT owning any bitcoins.

All you basically own when using such a service is some digits in their database tied to your account..





Moreover the transaction fees is minimal in this wallet when compared to other wallets.

The transaction fees require are completely independent to the wallet you are using.
Each (proper) wallet gives you the possibility to choose an estimated or set a fixed fee for your transaction.
4292  Bitcoin / Electrum / Re: manually adding transactions on electrum on: June 07, 2018, 12:37:22 PM
I ran electrum 3.1.3 on the computer with the offline wallet, the same as the watch only, and still, the sign button is greyed out.

Did you check whether you have the correct wallet file opened on your offline machine?

You might also try to look at the addresses. Does your offline wallet contain each address used in your transaction?
If you can not find those addresses in the address tab, you might try to create another bunch of key pairs with this command (in 'view' -> 'show console' -> 'console' tab): for i in range(5): createnewaddress()

4293  Bitcoin / Development & Technical Discussion / Re: Total number of addresses on: June 07, 2018, 10:13:32 AM
So to make 101% sure only the receiver gets the "coins" I should either (a) send it to his public key, or (b) create a Pay To Script Hash (but here I would also use his public key that will be the satisfying parameter for accepting this transaction as valid)?


For your coins to arrive properly, just create a transaction to the correct address provided by the receiver.
Nothing else is required on your part.

It doesn't matter whether you are using P2PKH (what you might be refering to with (a) ?) or P2SH.

4294  Bitcoin / Bitcoin Technical Support / Re: I have my wallet.dat from a backup but I can't remember my passphrase on: June 06, 2018, 01:19:53 PM
Now i have only one question to maybe find a solution :

Can i recover seed from a list of private keys ?

No, this does not work.

It is not possible to calculate the seed (or the mnemonic code) out of one or multiple private keys.
The child-private-key-derivation function does use HMAC-SHA512. The only option would be to bruteforce it, which is practically not possible (2256 is too large to bruteforce).
4295  Bitcoin / Development & Technical Discussion / Re: Total number of addresses on: June 06, 2018, 10:47:11 AM
So to make it clear for me:
2 different private keys may have the ability (although the possibility that happens is extremely low) to prove ownership of coins assigned to the single "wallet" (e.g. hashed public key)?

It depends.

If the outputs are in P2PKH format, then yes. If both (different) public keys do match the same hash this is possible. That would be a hash collision.
If the outputs are in P2SH format, then no. Since it is not possible for two different private keys resulting in the same public key, which would be required to be able to successfully redeem them.
4296  Bitcoin / Wallet software / Re: 8 word phrase wallet on: June 06, 2018, 07:48:04 AM
24 Words would indicate it is from a BIP39 wallet.

You might try out to import this mnemonic seed into electrum (https://electrum.org/#download).
Choose 'I already have a seed' and enter your words. Make sure you edit the settings and tick 'BIP 39'.

The derivation path depends on the wallet you have used when creating this seed / addresses. Did your address start with a 1.. or with a 3.. ?
4297  Bitcoin / Development & Technical Discussion / Re: Total number of addresses on: June 06, 2018, 06:41:42 AM
So just to make it clear:
1. I send bitcoin to your hashed public key
2. It is being assigned to your real public key
3. When you send it you sign transaction with your private key

How does it go from [1] to [2] ? Since you only reveal your public key only when you sign transactions.


In the first step you are creating new UTXO's. For someone to use this UTXO, he has to meet conditions inside the script of the UTXO.
If i then want to create a new transaction with this UTXO, i have to supply a corresponding screept that meets these condition (e.g. scriptSig). This requires to reveal the public key and using the private key to sign.



And you don't sign anything when you receive coins; therefore, leaving public key secret.

Yes, thats correct.



Are you sure coins are assigned to the real public key, not to the hashed public key?

Coins arent really assigned. They exist as unspent transaction outputs (UTXO).
To claim the ownership and combining their value into new UTXO(s), you have to prove ownership.

Pay to public key hash (P2PKH) does require to create a script: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG.
To spend these coins you have to provide the public key and a matching signature.

A P2SH UTXO does include the hash of the spending condition (instead of the condition itself).
To spend these coins you are providing the redeem script itself, which is then being checked and evaluated against the redeem script hash during a transaction.


4298  Bitcoin / Development & Technical Discussion / Re: What transactions didn't make it to the Bitcoin blockchain? on: June 05, 2018, 11:57:46 AM
Thanks, Amount of confirmations is a interesting concept I didn't know about. However, I would like to know what happens tecnically to a transaction that is accepted by a mining block that gets discarded because another miner has submited a valid block.

Example
1. Tx1 is broadcasted
2. Tx2 is broadcasted
3. Miner1 gets Tx1 and Tx2
4. Miner2 gets only Tx1
5. Miner2 submits a valid block
6. Miner1 discards current block and starts mining a new one

At this point, how does the protocol work? What happens to Tx2? Does the original broadcaster re-broadcast Tx2 because he finds that his transaction is not in the last valid block? or does it work some other way?

Your example actually isn't an 'example' for discarded blocks, since Miner2 is the only one who does create a valid block (1. - 6.).
Since TX2 has never confirmed in your example, all nodes which did receive TX2 still relay it and keep it in their mempool.
Whether Miner2 does decide to (maliciously?) ignore Tx2 doesn't matter. It will still get relayed through all nodes (and therefore also every miner) in the network.



7. Miner3 submits a valid block.

If I understand well, Tx1 has now 2 confirmations.

IF Miner2 did include Tx1 into the block he has created in 5), then yes.
4299  Bitcoin / Development & Technical Discussion / Re: Total number of addresses on: June 05, 2018, 10:46:13 AM
The number of possible private keys is indeed 2^256 (A private key is a 256 bit random number).
But there are 2^160 addresses possible (An address is the RIPEMD-160 hash of a SHA256 hash of the public key -> 160 bit long).

There are 2^96 private keys which match one address ON AVERAGE. This is simply due to the fact that the input dictionary (256 bit) is bigger than the output dictionary (160 bit).

Note that this does NOT impose any security risks.

So let's say I have 1 wallet with 2 private keys pointing to it. If someone sends me a coin to this wallet, then any of my private keys can spend it!?


No. A 'wallet' is simply a piece of software which handles private-/public- keypairs.


When creating an 'address' your doing it this way:

1. Create random number (private key)
2. Calculate public key out of private key
3. Hash the public key with RIPEMD-160(SHA256(public_key)) = Address

Now, theoretically there are 2^96 different private keys which do all 'create' the same address (on average).
This means that it is theoretically(!) possible to create two different private keys, which do refer to the same address. (Practically this won't happen, ever.)

Note that addresses do NOT exist on a technical level. They are just an abstractions for us humans making it easier to read.


Coins can not be send 'to a wallet'. The UTXO's are being assigned to public keys. And you will be able to spend these UTXO's using the corresponding private key.

4300  Bitcoin / Development & Technical Discussion / Re: What transactions didn't make it to the Bitcoin blockchain? on: June 05, 2018, 10:38:54 AM
Bitcoin,I want to transfer some Amount so I broadcast a transaction that is picked up by miners.

You broadcast a transaction which will be in the mempool of the nodes until a miner decides to include your transaction into a block.



So if my transaction get's in 2 different currently processing blocks by different miners and one of them is mined into the blockchain, the second miner's block is dropped.

Blocks are not 'mined into the blockchain'. Mining simply means to create a valid block.
If 2 blocks get mined at the same time (very uncommon, but possible), the NEXT block will decide which one is valid.
The longest chain is the actual valid blockchain.

Small example:
Miner A and miner B do mine block nr. X at the same time. They both broadcast it into the network.
A portion of the miner in the network did receive block X from A and are trying to build the next block upon this block.
Another portion of the miner did receive block X from B and are trying to build the next block upon this block.

Now, miner C (who did mine using block X from A) found a block (X+1) and shares it.

The whole network now accepts this chain (Block X from A --> Block X+1 from C) as valid chain since it is the LONGEST valid one.
Block X from miner B will get discarded by the nodes.



How does the protocol know which transactions made it and which didn't? Another way of asking, how is a transaction "marked" as mined so if it's still floating in the p2p network, miners know that this transaction is already in the blockchain.

A transaction is not 'marked' as mined. Blocks are being mined (created).
A transaction is being confirmed by being included into a block.

So, once a block is being mined which includes your transaction, it is considered as a confirmed transaction (Amount of confirmations = 1 + Number_of_blocks_mined_after_your_TX_got_included).
Pages: « 1 ... 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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 [215] 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 ... 317 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!