Bitcoin Forum
June 07, 2024, 01:41:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 »
21  Bitcoin / Development & Technical Discussion / The Bitcoin Balance of Power Poster on: February 26, 2017, 04:40:55 PM
Please take a look at my Bitcoin Balance of Power Poster:

https://medium.com/@AudunGulbrands1/the-bitcoin-balance-of-power-poster-91271ab31b86#.nv1zoeqmp
22  Bitcoin / Development & Technical Discussion / Re: The Balance of Power in the bitcoin ecosystem. Feedback appreciated! on: February 26, 2017, 04:34:12 PM
Here is a link to the final product:

The Bitcoin Balance of Power Poster

https://medium.com/@AudunGulbrands1/the-bitcoin-balance-of-power-poster-91271ab31b86#.nv1zoeqmp

23  Bitcoin / Development & Technical Discussion / Re: Emergency soft fork to add an additional difficulty adjustment cycle (?) on: February 23, 2017, 05:14:03 PM


Calling it an "independent cycle" doesn't make it an independent cycle.  It still affects the validity of the blocks that are being added to the blockchain.

It would still be a hard fork.


Thank you for the reply!
24  Bitcoin / Development & Technical Discussion / Emergency soft fork to add an additional difficulty adjustment cycle (?) on: February 23, 2017, 04:18:26 PM
I’m imagining this concept as an emergency soft fork in the case of a large and sudden drop in the network hash-power.

It’s my understanding that changing the 2016 block difficulty cycle would require a hard fork (since this is a change of a current consensus-rule)

But is there anything stopping bitcoin form adding an additional adjustment cycle with a soft fork?

The current cycle would not be changed, but an additional independent cycle would be added in between.

Both cycles would be 2016 blocks but they would be out of sync so that they come into effect every other time.

In other words; the difficulty would be adjusted every 1008 blocks.

Can anyone tell me if this is possible?
25  Bitcoin / Development & Technical Discussion / The Balance of Power in the bitcoin ecosystem. Feedback appreciated! on: February 22, 2017, 08:48:48 PM
Introduction:

Miners are the rulers of Bitcoin...
At least, this is what people seem to believe..
After all, miners are the ones who create our beloved magic money…

But what happens if, let’s say 75%, of the miners (by hash-power) decides to change the rules of the protocol?

It turns out that miners are not the sole decision makers in bitcoin.

...There is a certain Balance of Power in the ecosystem…

In this post I will focus on the following participants:

Miners (including Hashers and Pool-operators)
Developers
Merchants
Users (including HODLers and traders)
Exchanges
Node Operators
Wallet providers

This balance of power becomes particularly interesting in the event of a hard fork.

As we have learned from Ethereum;
A hard fork that is not supported by everyone; can result a network split.
Effectively creating two different blockchains / networks with two different coins.

This can also be categorized as a “Coin-Split”
(the total amount of units will double)

Both coins are likely to have its own supporters, and both sides are likely to claim to be
“the real bitcoin”



Miners:
 
(including Hashers and Pool-operators)

Miners are thermodynamically securing the network with proof of work.
They are rewarded with new coins in addition to transaction fees. But high operational costs are forcing the miners to sell off the majority of this reward.
 
Miners produce blocks that are mathematically linked in a blockchain.
These blocks contain transactions between the bitcoin users.
The blockchain represents the history of all transactions.

Miners are on the supply side in the market, and are therefore putting downward pressure on the price of bitcoin due to inflation.

Pool-operators construct blocks.
Hashers are payed by Pool-operators to perform PoW on these blocks.

Hashers can leave or join any pool at any time.
A misbehaving Pool-operator risk that Hashers will leave the pool.

Let’s say that a miner successfully finds block X:
The miner will be rewarded with newly created bitcoin in addition to all transaction fees that are included in block X.
However, this money does not become spendable until the blockchain have been extended with an additional 100 more blocks that must be build on top of block X.

If other miners don’t agree that block X is valid, then they will reject the block by not building on top of it.
 
But what if a majority, let’s say 75% of miners (by hash power) have decided to change the existing consensus rules?
They may now see block X as valid, even if the remaining minority (25%) of miners disagree.
 
The minority miners (the ones who does not want to change the rules) are only going to build on top of what they see as the “most work *VALID* chain”
A new and otherwise valid block, will also become invalid (in the eyes of this minority) if it is build on top of block X.

This is where the blockchain will split into two different chains / networks.


Developers:

Developers write the code that makes bitcoin work.
New code only serve as suggestions for improvements.   
Developers cannot force anyone to run new code.

Different types of suggestions are:

Soft Forks:
Suggestions to add new consensus rules.

Hard Forks:
Suggestions to remove (or replace) existing consensus rules.

Changes that do not affect consensus:
Suggestions to add functionality that will effect how the network handles transactions that are not yet mined into a block (transactions that are held in the mem-pool while waiting for a confirmation)
Replace By Fee (RBF) and Child Pays For Parent (CPFP) are examples of this kind.


Merchants:

Are amplifying the perception (amongst users) that bitcoin is valuable. They do this by accepting bitcoin as payment for goods and services.

In the event of a coin-split;
The different merchants must decide whether to accept both coins as payment, or to only accept the coin that he/she like the most.


Users
(including HODLers and traders):

Users give bitcoin its value by;
A) Perceiving it as money, and using it as money.
B) Being willing to exchange their hard earned fiat money for the return of bitcoin. 
C) Acting (for the most part) as the “demand side” in the market, and are therefore putting upwards pressure on the price of bitcoin.
D) Ultimately decides what the value of bitcoin should be, as a product of how much fiat money they are willing to pay per bitcoin.
E) Having confidence that bitcoin will continue to be a good store of value.

If other participants act against the interest of users:
Users have the power to strike back on everyone in the ecosystem; simply by loosing confidence in bitcoin as money.
Loss of confidence by users will put downward pressure on the price of bitcoin, and therefore directly harm the profitability of miners.   

In the event of a 75% Hard Fork:
Users will now suddenly own 2X the amount of units/coins. An equal amount of coins will be held on each side of the fork.

Let’s distinguish between the two coins by calling them b1 and b2:

Users will collectively decide the value of b1 and b2. 

They can choose to:
Save both b1 and b2
Sell both b1 and b2
Sell b1 and save b2
Sell b2 and save b1

Selling will put downward pressure on the price of the coin being sold.
Buying will put upward pressure on the price of the coin being bought.

Users will establish an exchange rate between the two different coins. This means that users can buy b1 with b2, and vice versa.

Users are likely to first spend the coin they perceive as least valuable. And they are likely to save the coin they perceive as being the best “store of value”

Ultimately, users are going to give more value to one side of the fork compared to the other.

These actions made by users, will directly affect the incentive structures of miners.
As the coin with the highest market value will be more profitable to mine.
Economically rational miners will migrate to the coin with the highest value.

Theoretically there may be variations during time on which of the coins (b1 or b2) that holds the highest market value.


Exchanges:

Provide platforms for price discovery where people can buy and sell bitcoin.
In the event of a coin-split an exchange can decide whether or not to allow trading of both coin-types, or to only allow trading of the coin they like the most.
The latter may be risky, since users might be able to sue the exchange. Many users hold coins on exchanges, and this users are likely to demand access to both types of their coins.

Despite the risk of lawsuit, an exchange could technically just confiscating one type of coin, while claiming that this coin is a “fake bitcoin”
They could then choose to dump the coin into the market, thereby crashing the price of the coin they don't like.

Some exchanges may have written into their “terms and conditions” that they can decide what coin its users can access.

There may also be some delay before exchanges can offer the new coin after a coin split. Since the exchanges must adapt their infrastructure to allow trading of a new coin.

When both types of coin are traded on the same exchange, this will quickly result in an exchange rate between the two different coins.


Node Operators:

Nodes are independently validating transactions and blocks in accordance with the current consensus rules.
When a node considers a block to be valid, it will forward the block to other nodes, and the other nodes will repeat the same behavior.   
Nodes can be seen as accountants who validate the transactions created by users and the blocks constructed by miners.
 
Node Operators may download new software if they want to support a change of the current rules
(hard fork)

Nodes that do not want support a hard fork; will simply ignore all blocks that do not comply to its current ruleset. 

Even if these blocks represents the “most work chain” they will still be ignored (seen as invalid) by all nodes who have not download the software that constitutes the rule-change.
Wallet providers

Let’s say that a hard fork leads to a permanent coin-split (similar to ETH/ETC)…
Users will now own coins on both sides of the fork (on both blockchains / both networks)

Users are in need of new software that can handle the two different coins.

Wallet providers decides if they want to develop the needed software.

Wallet providers also decide how they want to display the two different coins in the a wallet.
Depending on which coin they like best, they may decide to display the coins as primary and secondary.
This may influence the perception among some users.

Users who fail to upgrade their wallet-software are likely to loose money.
This is because they lack the tool to handle both sides of the fork (both coins)
When spending money; the transactions are likely to be valid on both sides, so the risk is to loose money on the opposite side of the fork.


FINAL NOTE TO READER:
Thank you for reading!
I’m hoping for feedback to improve this post.
Please tell me if I missed something or got something wrong..
The final product will be posted on Medium.
This is the same technique that I used when I was working on my Lightning FAQ. The final result of that project may be found here: https://medium.com/@AudunGulbrands1
26  Bitcoin / Development & Technical Discussion / Re: Have a question regarding the combination of Lightning, Schnorr and CoinJoin… on: December 25, 2016, 04:06:05 PM
In theory, yes, that would be possible. However you would have to coordinate closing the channels with multiple people at exactly the same time and that can be a bit difficult to do. It would work best where everyone is ok with closing the channel.


Thank you!

I understand this, but one is not always in a hurry..

So for those who are not in a hurry..
Could they maybe put all their “closing transactions” into a common “pool” and have that pool automatically generate a “Schnorr-CoinJoin transaction”  when it reaches a certain size?
27  Bitcoin / Development & Technical Discussion / Have a question regarding the combination of Lightning, Schnorr and CoinJoin… on: December 25, 2016, 01:08:41 PM
I have been working hard to understand how Lightning works..
With great help from r/bitcoin and Bitcointalk I have put together a Lightning FAQ:

The final result of my work can be found here:
https://medium.com/@AudunGulbrands1/lightning-faq-67bd2b957d70#.8biw0wadf

However, some people have pointed out to me; that it may become expensive to close a Lightning channel, since this will require an on-chain transaction.

I just read the following article in Bitcoin Magazine:
“The Power of Schnorr: The Signature Algorithm to Increase Bitcoin's Scale and Privacy”
https://bitcoinmagazine.com/articles/the-power-of-schnorr-the-signature-algorithm-to-increase-bitcoin-s-scale-and-privacy-1460642496

To summarize;
My understanding of Schnorr and CoinJoin is the following:

Schnorr will allow several signatures to be aggregated into a single, new signature.

Many inputs normally means many signatures, but Schnorr will require only one combined signature to represent all these different signatures.
This means that only one signature must be included in a transaction.

CoinJoin allows different users to combine all their transactions into a single transaction.

Schnorr can enable all participants in a CoinJoin transaction to not only combine their transactions, but to also combine their signatures.


So my question is:

Can Schnorr and CoinJoin be built into Lightning in such a way that several channels can be closed with just one transaction?

So to reduce the cost of closing by having many channels share the cost of just one transaction?
28  Bitcoin / Development & Technical Discussion / Re: Have improved my Lightning FAQ. Added more Qs and As. Submitted to GitHub on: December 21, 2016, 10:41:23 PM
Very good, but still I don't understand what is meant here:
Therefore it is not dependent on consensus in the bitcoin network itself.
LN does depend on Bitcoin blockchain, and bitcoin blockchain is essentially consensus on history of transactions and current ownership of Bitcoins.
No, Lightning is dependent on the bitcoin blockchain.
A Lightning Network cannot operate on its own; it is completely dependent on the underlying bitcoin network for security.


Thank you so much for the feedback!
 
I have made many improvements, added a couple of more Qs and As and re-published the post on Medium. 

All feedback is still highly appreciated!

Please check it out here:
https://medium.com/@AudunGulbrands1/lightning-faq-67bd2b957d70#.fw6zm4m7a
29  Bitcoin / Development & Technical Discussion / Re: Have improved my Lightning FAQ. Added more Qs and As. Submitted to GitHub on: December 21, 2016, 10:38:08 PM
Very good, but still I don't understand what is meant here:
Therefore it is not dependent on consensus in the bitcoin network itself.
LN does depend on Bitcoin blockchain, and bitcoin blockchain is essentially consensus on history of transactions and current ownership of Bitcoins.
No, Lightning is dependent on the bitcoin blockchain.
A Lightning Network cannot operate on its own; it is completely dependent on the underlying bitcoin network for security.


In the updated version I have rephrased Q6 into the following:

Q 6:
Is the Lightning Network dependent on consensus to be implemented?

A:
No, the implementation of a Lightning Network does not require consensus in the bitcoin network.

Lightning in itself is neither a soft-fork nor a hard-fork.

Instead, the Lightning Network builds an additional layer on top of the bitcoin network.
Implementation is therefore independent from consensus.

You can read the updated version here:
https://medium.com/@AudunGulbrands1/lightning-faq-67bd2b957d70#.fw6zm4m7a
30  Bitcoin / Development & Technical Discussion / Have improved my Lightning FAQ. Added more Qs and As. Submitted to GitHub on: December 19, 2016, 06:04:10 PM
Below you will find a largely improved version of my Lightning FAQ.
Several new questions and answers added.

The FAQ has also been made available on GitHub:
https://github.com/norgesbitcoinforening/lightning-faq

All feedback is still greatly appreciated! 


Q 1:
What is the Lightning Network?

A:
The Lightning Network is currently under development. It will become a decentralized network that enables instant off-chain transfer of the ownership bitcoin, without the need of a trusted third party.
The system utilizes bidirectional payment channels that consist of multi-signature addresses.
One on-chain transaction is needed to open a channel and another on-chain transaction can close the channel.
Once a channel is open, value can be transferred instantly between counterparts, who are exchanging real bitcoin transactions, but without broadcasting them to the bitcoin network.
New transactions will replace previous transactions and the counterparts will store everything locally as long as the channel stays open.


Q 2:
Is the Lightning Network open source?

A:
Yes, Lightning is open source. Anyone can review the code, just in the same way as the bitcoin code.


Q 3:
Who owns and controls the Lightning Network?

A:
Similar to the bitcoin network, no one will ever own or control the Lightning Network.
The code is open source and free for anyone to download and review.
Anyone can run a node and be part of the network.


Q 4:
Who are the inventors of the Lightning Network?

A:
Joseph Poon and Thaddeus Dryja wrote The Lightning white paper.
Lightning is an open source project so anyone is free to contribute with code.
There are currently 5 independent implementations under development:

Blockstream's C lightning:
Blockstream currently have two employees who are dedicated to Lightning development.

Blockchain’s Thunder network

ACINQ have successfully implemented Bitfury's Flare routing algorithm into Eclair, and tested it on a live network of 2500 servers

Amiko Pay

KimDotCom's BitCache lightning network (confirmation needed, I’m not sure about this one)


Q 5:
Does the Lightning Network have its own “Lightning coins”?

A:
No, that’s not how it works.
A Lightning Network will be using real bitcoin transactions with actual bitcoins in them


Q 6:
Is the Lightning Network dependent on consensus to be implemented?

A:
No, a Lightning Network builds an additional layer on top of the bitcoin network.
Therefore it is not dependent on consensus in the bitcoin network itself.


Q 7:
Will there be any form of custodian risk in a Lightning Network?
Do I need to trust anyone to hold my money on my behalf?

A:
No, this system is not based on trust; you remain in full control of your money.
If anything goes wrong you simply broadcast the latest state of your channel as a normal
on-chain bitcoin transaction.
All your money will be returned to your address, and it will be recorded on the blockchain as a normal on-chain bitcoin transaction.


Q 8:
I’ve heard that Lightning transactions is happening “off-chain”...Does that mean that my bitcoins will be removed from the blockchain?

A:
No, your coins will never leave the blockchain.
Instead your coins will be held in a multi-signature address as long as your channel stays open.
“Off-chain” is not a perfect term, but it is used due to the fact that the transfer of ownership is no longer reflected on the blockchain.


Q 9:
I’ve heard that the Lightning Network will require my bitcoins to be locked up...
You do realize that no one wants their bitcoins to be locked up?

A:
If your interpretation is that Lightning will make your money less accessible, then you are clearly misinformed.
The fact is that your money will actually become more accessible when held in a Lightning channel.
First of all, you do not need to wait for conformations in a Lightning Network, your money can be moved almost instantly within this network.
Second, bringing your money “back on chain” is just as easy as sending a normal bitcoin transaction. You just wait for the first confirmation and your money is no longer “off chain”

The only exception is the rare case that your channel breaks down in the middle of a transaction (counterpart goes offline)       

In this exceptional case; you will be subjected to a short time delay before you can spend your money. The length of this delay will vary; depending upon the parameters you have applied to your channel. 


Q 10:
Will a Lightning Network have its own blockchain?

A:
No, Lightning is dependent on the bitcoin blockchain. On-chain bitcoin transactions are needed to open and to close “channels” between peers (nodes) in the network.
Once a channel is open, the ownership of bitcoin can be transferred off-chain in both directions.
The transactions inside a channel are real bitcoin transactions, but they are not broadcasted to the bitcoin network as long as the channel stays open.
Instead those involved in a channel will store the transactions locally.
This enables instant transactions and a near unlimited capacity within a Lightning Network.


Q 11:
Will there be any form of mining to secure the Lightning Network?

A:
No, security is provided by the bitcoin miners in the underlying bitcoin network


Q 12:
The main chain of bitcoin is secured by a hash rate of 2 ExaHash/s, but a Lightning Network doesn't have any hash rate at all...
So how can a Lightning Network be as secure as the main chain?

A:
The security in a Lightning Network is extracted from the underlying Bitcoin Network.
A Lightning Network cannot operate on its own; it is completely dependent on the underlying bitcoin network for security.

Basically the bitcoin network takes the role as a safety net underneath the Lightning Network. If something goes wrong in a Lightning channel (like your counterpart going offline) you will always have the option to fall back into the safety-net.
(You simply broadcast the latest state of your channel as a normal on-chain bitcoin transaction)


Q 13:
Does a Lightning Network have its own public ledger or some sort of database of all transactions?

A:
No, a Lightning Network does not have its own ledger and there is no database.
Holding value on a Lightning Network means that you are in possession of double-signed transactions. The transactions are valid, but they are not yet broadcasted to the Bitcoin Network.
The transactions you are holding are of the 2 of 2 multi-signature type.
Both you and your counterpart will sign, and you will both store the transactions locally.

These transactions will use a multi-signature address as their input (the funding address)
and they will point at two different addresses for their output.
One output is pointing to an address that only you can control, and the other output is pointing to an address that only your counterpart can control.


Q 14:
How can you say that the Lightning Network is using real bitcoin transactions?
You do realize that it’s not a real bitcoin transaction if it’s not recorded on the blockchain?

Short A:
To understand this we first need to understand what a bitcoin transaction really is…
The fact is; That there are no “coins” in Bitcoin…
There are only signed messages and updates to the blockchain.

So lets say that Alice is sending 1 bitcoin to Bob…
We call this a per-to-per transaction due to the fact that the ownership of value is transferred directly from Alice to Bob.
But Bob does not actually receive a “digital coin” from Alice.
The thing that in reality is happening; is that all the nodes in the network will update their local copy of the public ledger.
The public ledger is updated so that; the “coin” that was before registered in an address controlled by Alice, is now instead registered in an address controlled by Bob.

Long A:
The bitcoin transaction that Alice is sending to Bob, is in reality just a signed message that Alice is broadcasting to everybody.
The message is not only received by Bob, but it is broadcasted to all the nodes in the network.

At the time of writing there are more than 5400 so called “full nodes” in the bitcoin network.
The following steps illustrates the process that takes place when Alice is sending a bitcoin transaction to Bob:

1. When Alice is broadcasting her signed message (= bitcoin transaction), it will be picked up by some of the full nodes in the network.

2. These nodes will independently validate the message (transaction) in accordance with the consensus rules. If the nodes find the message to be valid; they will broadcast the message again so that it can be picked up by other nodes on the network.

3. Some other nodes on the network pick up the message, and this process continues until all 5400 nodes have independently validated and re-broadcasted the message (transaction)

4. At some point a miner will succeed in constructing a valid block that includes the message (transaction) from Alice. To make this happen the miner must bear the cost of an enormous amount of electricity.

5. The miner will now broadcast this newly found block. The new block will be picked up by some of the full nodes. The nodes will independently validate the block and all its content.
By doing this they are also validating the message (transaction) from Alice for a second time.
If the nodes find the block to be valid (in accordance with the consensus rules) they will broadcast the block again so that other nodes can also receive the block.

6. Other nodes will pick up the block, validate and broadcast.
This process continues until all the nodes in the network have independently validated the block and thereby also validated the message (transaction) from Alice for a second time.

The six steps above demonstrate that a normal bitcoin transaction from Alice to Bob actually involves everyone on the network.
The message is independently validated two times by 5400 nodes (= 10 800 validations)

Despite this we are still calling it a “per-to-per transaction” because the actual ownership of value is transferred directly from Alice to Bob*
(*But everyone still needs to help by updating their local copy of the ledger)   

Conclusion:
A bitcoin transaction is just a signed message.

So lets say that Alice wants to send 1 bitcoin to Bob within a Lightning Channel.
Alice is storing some of her money in a “2 of 2” multi-signature address.
Alice and Bob will both sign a message that transfers the ownership of 1 bitcoin from Alice to Bob.
This message is a valid bitcoin transaction, but it is not broadcasted to the bitcoin network.

Instead Alice and Bob both store the transaction (message) locally.

From Bob’s point of view this “double-signed message” has a monetary value of 1 bitcoin.
The monetary value of 1 bitcoin comes from the fact that Bob can spend the money
on-chain at any time by simply broadcasting the message to the bitcoin network.

Bitcoin transaction = Signed message = Lightning transaction

The purpose of any monetary transaction is to change the ownership of value.
In the bitcoin network we change the ownership of value by the use of signed messages

A Lightning transaction is a double-signed message,
therefore a Lightning transaction is a real bitcoin transaction


Q 15:
I have heard that there will be some fees involved in the Lightning Network..
Who will be collecting those fees?

A:
Potentially anyone who is running a Lightning-node.
Example:
Alice wants to send money to Carol, but Alice does not have an open channel with Carol.
But Alice has an open channel with Bob, and Bob has an open channel with Carol.
Instead of opening a new channel with Carol, Alice can route the payment trough Bob:
Alice - Bob - Carol.

In this scenario it is possible for Bob to take a small fee.


16 Q:
In the above scenario; what is preventing Bob from just stealing the money in transit?

Short A:
Bob is actually paying out to Carol first, and then afterwards Bob will get his money back from Alice.

Long A:
1. Carol starts the process by producing a random number ( R ) that she will keep as a temporary secret.

2. Carol then generates a hash ( H ) of R
 
3. Carol gives H to Alice

4. Alice constructs a special transaction that can transfer money from Alice to Bob. But this transaction is only valid if R is included. At this point the transaction is not valid due to the lack of R. Alice also gives H to Bob, and Bob knows that H is the hash of the missing component R.

5. Bob will now construct another special transaction that can transfer the money from Bob to Carol. But this transaction is also only valid if R is included. At this point the transaction is not valid since Bob does not have access R.

6. Carol wants her money, so she reveals R to Bob; thereby making the transaction valid.

7. Since Bob is already in possession of the transaction made by Alice, he can just include R and that transaction also becomes valid. Bob knows that he has been given the correct R because he can check that H is the hash of R.

8. At the same time Bob also reveals R to Alice.
Alice can now use R as proof that she has paid Carol (R becomes the receipt)


Q 17:
Where can I find more information about Lightning?

A:
http://lightning.network/
 
https://letstalkbitcoin.com/blog/post/lets-talk-bitcoin-286-drinks-on-a-lightning-network

https://letstalkbitcoin.com/blog/post/the-lightning-network-elidhdicacs

https://github.com/lightningnetwork/lightning-rfc/blob/master/00-introduction.md

https://www.youtube.com/watch?v=8zVzw912wPo
31  Bitcoin / Development & Technical Discussion / I have made a Lightning FAQ – Feedback appreciated! on: November 30, 2016, 06:10:07 PM
Q:
What is the Lightning Network?

A:
The Lightning Network is currently under development and will become a decentralized network that enables instant off-chain transfer of bitcoin between counterparties without the need of a trusted third party.
The system utilizes bidirectional payment channels that consist of multisignature addresses.
One on-chain transaction is needed to open a channel and another on-chain transaction will close the channel.
Once a channel is open, value can be transferred instantly between counterparties, who are exchanging normal bitcoin transactions, but without broadcasting them to the bitcoin network.
New transactions will replace previous transactions and the counterparties will store
everything locally as long as the channel stays open.


Q:
Is Lightning open source?

A:
Yes, Lightning will be open source. Anyone can review the code just like the bitcoin code.


Q:
Who owns and controls the Lightning Network?

A:
Similar to the bitcoin network, no one will ever own or control the Lightning Network.
The code will be open source and free for anyone to download and review. Anyone who wants will be able to run a node.


Q:
Who is behind the Lightning Network?

A:
Joseph Poon and Thaddeus Dryja wrote The Lightning white paper. Anyone who wants can contribute with the development of code. Blockstream currently has one employee who is dedicated to Lightning development


Q:
Does the LN have its own “Lightning coins”?

A:
No, that’s not how the LN works. The LN will be using real bitcoin transactions with actual bitcoins in them


Q:
Is the LN dependent on consensus to be implemented?

A:
No, the LN builds an additional layer on top of the bitcoin network and is therefore not dependent on consensus in the bitcoin network itself.


Q:
I have heard that there will be some fees involved in the LN, who will be collecting those fees?

A:
Potentially everyone who runs a Lightning-node.
Example:
Alice wants to send money to Carol, but Alice doesn’t have an open channel with Carol.
But Alice has an open channel with Bob, and Bob has an open channel with Carol.
Instead of opening a new channel with Carol, Alice can route the payment trough Bob:
Alice - Bob - Carol.
In this scenario Bob might take a small fee.


Q:
Will there be any custodial risk in the Lightning Network? Do I have to trust anyone else to hold my money?

A:
No, the system is not based on trust; you remain in full control of your money. If anything goes wrong you simply broadcast your state to the bitcoin blockchain and all your money is returned to you.


Q:
Does the Lightning Network have its own blockchain?

A:
No, Lightning is dependent on the bitcoin blockchain. On-chain bitcoin transactions are needed to open and to close “channels” between peers (nodes) in the system.
Once a channel is open, bitcoin can be sent off-chain in both directions within the channel.
The transactions inside a channel are real bitcoin transactions, but they are not broadcasted to the bitcoin network as long as the channel stays open.
Instead those involved store the transactions locally.
This enables instant transactions and a near unlimited capacity within a channel.

Q:
Will there be any form of mining in the Lightning Network?

A:
No, security is provided by the bitcoin miners in underlying bitcoin network


Q:
Where can I find more information about Lightning?

A:
http://lightning.network/
 
https://letstalkbitcoin.com/blog/post/lets-talk-bitcoin-286-drinks-on-a-lightning-network

https://letstalkbitcoin.com/blog/post/the-lightning-network-elidhdicacs
32  Bitcoin / Development & Technical Discussion / Re: How to destroy Bitcoin with a 10% attack: Roadmap for a Central Bank Takeover on: November 29, 2016, 09:50:41 PM

You seem to forget that blocks are limited in size (everyone gets a house) and that without a fee you have no way to know for sure your transaction will be confirmed. I have no doubt that this attack would significantly increase the amount of free transactions, but I doubt it would have a meaningful impact on the other transactions. After all all the attackers can offer is a lucky chance. People that want to do business can not rely on lucky chances.

The whole meaning of my post was that we must keep the blocks limited in size.
If we increase the block size to much then we risk that the blocks are no longer full.

If the blocks are never full then it does not matter what the upper limit is.

I’m not saying that the block size should never be raised. I’m just saying that the size should never be so big that most of the blocks are no longer full.

The blocks must stay full for the fee market to function properly.

If the blocks are full = the price is set by users:
Miners are simply filling blocks based on the fees that are payed by users.
Users are competing for blockspace, and the price of blockspace is determined by how much the users are willing to pay to send a transaction.

If blocks are not full = the price is set by miners:
Miners are competing to offer the lowest possible price for blockspace. They try to include as many transactions as possible while at the same time excluding those that pays too little in fees.
The price of blockspace is determined by how little the miners are willing to demand in fees.

The attack I have stated is not possible as long as the price of blockspace is set by the users (and not the miners)
33  Bitcoin / Development & Technical Discussion / Re: How to destroy Bitcoin with a 10% attack: Roadmap for a Central Bank Takeover on: November 29, 2016, 05:59:17 PM
10% control leaves 90% of the blocks being mines left to be filled with higher fee transactions. I doubt this would make much of a difference. It would just reflect in 10% less transactions being processed.

Well 10% less of those with fees. If the attacker here is only mining transactions without fee there is no reliable way to secure a spot in these blocks. Maybe they use priority. Whatever they do, it would reduce the available space in blocks for those paying a fee. If demand stays the same, this attack would increase the price of fees needed to secure a spot in the 9/10 blocks left.

Have you ever heard about the relationship between supply and demand?

Lets be clear:

Miners are selling blockspace

Users are buying blockspace

So let us talk a little bit about housing instead..

What do you think would happen if the government gave everybody a house for free every 10th year?

What do you think would happen to the prices of real estate?

Do you think it will be easy to sell your house during the 9 years in between?

Do you think people will be willing to pay good money for your house?
34  Bitcoin / Development & Technical Discussion / How to destroy Bitcoin with a 10% attack: Roadmap for a Central Bank Takeover on: November 27, 2016, 01:25:00 PM
Recently the ECB (European Central Bank) officially warned about the dangers of bitcoin: http://www.zerohedge.com/news/2016-10-19/ecb-wants-curb-bitcoin-use-over-fears-it-may-lose-control-over-money-supply

So lets imagine that a central bank wanted to take control of the bitcoin network..

Note that the following attack only works if the blocks are not full.

To understand this, we must first focus on the economics in the fee market:

If the blocks are full = the price is set by users:
Miners are simply filling blocks based on the fees that are payed by users.
Users are competing for blockspace, and the price of blockspace is determined by how much the users are willing to pay to send a transaction.

If blocks are not full = the price is set by miners:
Miners are competing to offer the lowest possible price for blockspace. They try to include as many transactions as possible while at the same time excluding those that pays too little in fees.
The price of blockspace is determined by how little the miners are willing to demand in fees.

So lets say that the block size is increased and that the blocks are no longer full...

As a result “The 5 Step Roadmap To Destruction” becomes possible:

Step 1:
Wait 7.5 years, by then the block reward will have dropped to only 3.125 bitcoin per block.
At this point the miners have become dependent on fees as their main source of income.

Step 2:
Get control of 10% of the total hash-power in the network.

Step 3:
Start processing all transactions for free.
This will have a global effect on the fee marked. The price of blockspace will simply collapse. Users are no longer required to pay to get their transactions into a valid block.
The result is that all miners loose their main source of income. 

Step 4:
Since the attacker is a central bank, they have access to unlimited resources.
The attack is continued until all other miners are bankrupt due to the lack of income from fees.

Step 5:
The central bank becomes the central processing entity of bitcoin. All other miners are now out of business since they are no longer able to collect fees.

Conclusion:
To avoid this attack we must keep the blocks full so that the price of blockspace is set by the users and not by the miners.

Please let me know what you think about my attack scenario. Thank you for reading this post!
35  Bitcoin / Mining speculation / The intrinsic value of blockspace on: October 23, 2016, 02:27:17 PM
Anything written on the blockchain becomes permanent provided that bitcoin keeps surviving.

Written on the blockchain is therefore the digital equivalent of “carved into stone”

“Written on the blockchain” = “Set in stone” 

I strongly believe that this property gives intrinsic value to the blockspace.

My hope is to spark a discussion around this topic, and I want to ask you the following three questions:

A:
Is it important to maintain the intrinsic value of the blockspace?
Is this property of any importance to the bitcoin network?

B:
How can we best maintain the intrinsic value of the blockspace?

C:
What is the best mechanism to determine the price of blockspace?


The price of blockspace will always be determined by the market...
But the process used to set the price will depend on some fundamental conditions in the market:

If the blocks are full:
Miners will simply fill the blocks based on the fees that are payed by the users.
Users are competing for blockspace, and the price is determined by how much the users are willing to pay for the blockspace.

If blocks are not full:
Miners are competing to offer the lowest price for blockspace. They try to include as much as possible while at the same time excluding those who pays too little.
The price of blockspace is determined by how little the miners are willing to demand in fees.

Please let me know what you think about A, B and C!

Thank you for reading this post!
36  Bitcoin / Mining speculation / Re: What happens if bitcoin mining becomes subsidized with taxpayer money? on: October 17, 2016, 06:32:12 PM
I fail to see your point here. Blocks being full or not is depending on amount of transactions made, not on the fact of miners having to pay for your mining or not.
The only thing that would be a problem could be spam transactions if there would be o fee's ,or am i missing something here ?!

It’s not only farming, for instance the media is also heavily subsidized in Norway…

10 years from now, it’s is not unthinkable that some governments will have a very positive attitude towards bitcoin.
We must remember that all governments consists of people, and some of those people will personally own bitcoin.. Suddenly they might want to support the local mining farm..

10 years from now the mining reward will have dropped to only 3.125 bitcoin per block. At that time, I will not be surprised if some well meaning government wants to subsidize its local mining industry.

I believe this will lead to negative consequences for the network.
Those consequences will be even worse if blocks are not full. 

If the blocks are full:
Miners will simply fill up blocks with the transactions that pays the most in fees.
Users are competing for blockspace, and the price is determined by how much the users are willing to pay.
This does not change if a government suddenly starts to subsidize its local mining farms

If blocks are not full:
Miners are competing to offer the lowest price for blockspace. They try to include as many transactions as possible while at the same time excluding those who pays too little.
The price is determined by how little the miners are willing to demand in fees.
If some of the miners suddenly gets a government subsidy, they can afford to offer a lower price for blockspace.
Then there is no longer any reason for users to include a high fee, because a low fee will be accepted anyway. This will in turn effect everyone who is a miner, because the price of blockspace is reduced globally.
37  Bitcoin / Mining speculation / What happens if bitcoin mining becomes subsidized with taxpayer money? on: October 16, 2016, 08:34:37 PM
I’m living in Norway..
The Norwegian government are subsidizing agricultural industry with taxpayer money..

That gets me wondering what would happen if any government suddenly decides to subsidize bitcoin mining?

To me, this seems very problematic if the blocks are not full..

Today the blocks are mostly full and the miners are prioritizing transactions with higher fees.

But let’s say we increase the blocksize limit so that the blocks are no longer full...

In this scenario the miners must decide what the price of blockspace should be, and the miners will compete on offering the best price.

But what happens when one miner gets an unfair advantage like a subsidy from the government?

That miner is no longer dependent on transaction fees and can offer blockspace for free,
which again will drive down the price offered by other miners…

How will the free market deal with this situation if the blocks are not full? 
38  Bitcoin / Development & Technical Discussion / Re: The trend of “long transaction chains” on: October 15, 2016, 12:19:52 AM
I do not see what you see.

Long chains are pretty flat.


I should have phrased it better…
Out of all transactions within blocks; the percentage consisting of “long transaction chains” is decreasing..
39  Bitcoin / Development & Technical Discussion / The trend of “long transaction chains” on: October 14, 2016, 11:40:52 PM
Please take a look on these two charts:

A: Confirmed Transactions Per Day:
https://blockchain.info/charts/n-transactions?timespan=2years

B: Number Of Transactions Excluding Chains Longer Than 100:
https://blockchain.info/charts/n-transactions-excluding-chains-longer-than-100?timespan=2years

Long chains have been steadily decreasing, but still, about 1/3 of all transactions takes part in long chains. (And yes, I do know that there are some legitimate reasons...but I believe better solutions are coming..)

I’m mostly just speculating here, but it seems to me that the downward trend of “long transaction chains” may be a result of increasing fee levels..

If so, this behavior is slowly being priced out of the blockchain...

But lets say the blocksize limit is doubled tomorrow…

If we assume that a doubling of the blocksize will result in fees getting halved..

What do you think will happen to the trend of “long transaction chains” ?

If the fee is cut in half wouldn't that stimulate a doubling of this phenomenon?

I believe that people who need bitcoin are more than willing to pay to use it.
I also believe that people who don’t need bitcoin are not going to start using it just because it is free or very cheap.

Maybe it is a good thing that the behavior of “long transaction chains” is being priced out of the blockchain…?


Thanks for reading my post!

All feedback is appreciated!
40  Bitcoin / Bitcoin Technical Support / Re: How can I manually verify the proof of work? on: October 05, 2016, 07:15:35 PM

You should get:
Code:
SHA256(blockheader.step1)= d972e55cdcfef7665dc28c7b6942d04f1065723efcb87d040000000000000000

Since Bitcoin uses little endian byte order, you'll need to reverse the order of the bytes in that:
Code:
Split up the bytes:
d9 72 e5 5c dc fe f7 66 5d c2 8c 7b 69 42 d0 4f 10 65 72 3e fc b8 7d 04 00 00 00 00 00 00 00 00

Reverse the order of the bytes:
00 00 00 00 00 00 00 00 04 7d b8 fc 3e 72 65 10 4f d0 42 69 7b 8c c2 5d 66 f7 fe dc 5c e5 72 d9

There you go.  All done.


Thank you!

I actually found a very easy way to do it with the help of an online tool...

With the help of https://anyhash.com/sha256 I was able to produce the following:

First 80 bytes from block #432564:
000000208a20ce009629c8212d074a4f3e009401136e5e15eb0775030000000000000000661125a 47e385fcf4ba1aea7cfd7f90a3e73ce3ee662a6d5e8fc58c9d1150ea2625ff157d48e04189f0ff7 d6

Can directly be turned in to the first hash:
be7df6a863420c1ba92315fbc04b6bb30eda27479c64ce918c10b30aa2def684

And the first hash can directly be turned into the second hash:
d972e55cdcfef7665dc28c7b6942d04f1065723efcb87d040000000000000000

Split up the bytes:
d9 72 e5 5c dc fe f7 66 5d c2 8c 7b 69 42 d0 4f 10 65 72 3e fc b8 7d 04 00 00 00 00 00 00 00 00

Reverse the order of the bytes:
00 00 00 00 00 00 00 00 04 7d b8 fc 3e 72 65 10 4f d0 42 69 7b 8c c2 5d 66 f7 fe dc 5c e5 72 d9

Remove spaces:
0000000000000000047db8fc3e7265104fd042697b8cc25d66f7fedc5ce572d9
Pages: « 1 [2] 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!