DLC
Discreet log contracts are an exciting new technology that facilitates conditional payments on bitcoin and compatible blockchains oracle は単に署名するだけで、どのようなコントラクトがあるかを知る必要はない
The DLC protocol can be used for a wide variety of contracts, cover- ing most cases where payouts between parties depend on a publicly known number in the future. 毎月 tx を発行するのと比べてどんなメリットがあるのか
deposite しておけば payer はオフラインでもいい?
lightning なら結局オンラインだしな、、、
ここでの例がいまいちで要はこういうことだと思う
It’s very convenient for a user to give access to withdraw a certain amount of money from a bank account at a given time in the future.
Spec
resources
futures
$1 = 10000sats で $100 を Alice が Bob から買う契約をしたとする
Bob はBTCの値上がりを期待
$1 = 8000satas になっていれば、Alice に 10000sats で売ってドルを買い戻せば$1.25になる
Bob は 10_000sats * $100 = 1_000_000 sats を手にする
これでドルを買うと$125になり、25ドルの利益 = 200_000 sats の利益
Alice はBTCが下がると利益でる
コントラクトにそれぞれ 1000sats ずつデポジットする
$1 = 8000 sats になったら
Alice が Bob に 2000 sats * $100 = 200_000 sats 支払う
Alice は 10000-2000=8000sats で $1 買えば実質 $1 = 10000sats でドルを買ったことになり、最初の先物契約が履行された状態になる
$1 = 12_000sats になったら
Bob が Alice に 2000 sats * $100 = 200_000 sats 支払う
Implementation
Usecases