1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2025-01-23 06:01:13 +00:00

skeleton for timelocks and state channels

This commit is contained in:
Andreas M. Antonopoulos 2016-09-11 15:55:27 -07:00
parent 436ec1af72
commit 9b5f9d5e20
2 changed files with 36 additions and 0 deletions

18
state_channels.asciidoc Normal file
View File

@ -0,0 +1,18 @@
////
Will be merged later into chapter 6 or 7, as the book is reorganized
////
[[state_channels]]
=== State Channels
_State channels_, or _payment channels_ are a system of smart-contract based virtual channels that enable payments to be exchanged between two parties that do not need to trust each other, with settlement via transactions on the blockchain.
In the simplest form, a state channel is made by constructing a sequence of time-locked transactions with incrementing value. This is a one-way state channel between two parties. A one-way channel like this is useful for making off-chain micro-payments in return for delivery of a metered service, such as streamed video or Wifi service.
More complex state channels can be used to build bi-directional off-chain payments between two parties. These are useful for maintaining a running balance between two parties without having to commit transactions to the bitcoin blockchain.
Finally, state channels can be linked together to form a routed multi-hop network of payments between multiple parties. Such a network can support a much higher volume of transactions, each of very small value (micro-payments), for much lower cost than the equivalent transactions on the bitcoin blockchain. Yet, the trust is entirely

18
timelocks.asciidoc Normal file
View File

@ -0,0 +1,18 @@
////
Will be merged later into chapter 6 or 7, as the book is reorganized
////
[[state_channels]]
=== Time Locks
==== nLockTime
==== CLTV
==== CSV
==== Smart Contracts Using Time Locks