-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Prover proves that: | ||
- gave every withdrawal requests BTC from their own capital. | ||
- moved remaining capital to the next BitVM instance. | ||
|
||
Verifier should be able to slash the prover if: | ||
Prover didn't make the specified tasks in 6 days | ||
|
||
|
||
If prover fails to give the prove by the time: | ||
- lost his stake | ||
- lost the connector output so can't steal bridge money. | ||
|
||
Make a bitcoin transaction | ||
|
||
UTXO 1: | ||
Paul's Stake, 10 BTC | ||
|
||
UTXO 2: | ||
Vicky's Stake, 1 BTC | ||
|
||
3 Outputs: | ||
Output 1: | ||
Vicky's Challenge Root, 0 BTC | ||
|
||
Output 2: | ||
11 BTC | ||
2-of-2 Multisig | ||
or | ||
Paul Takes in 7 Days | ||
or | ||
Vicky Slashes equivocation | ||
|
||
Output 3: | ||
0 BTC | ||
Connector output | ||
2-of-2 Multisig | ||
Paul Takes in 8 Days (7 Days + challenge response protocol) | ||
|
||
Paul also gives signatures for spending connector output for every step at challenge response protocol. | ||
|
||
Depositor puts money to the 2-of-2 multisig by the prover and depositor | ||
Gives 2*(Total number of rounds) signatures: | ||
- spend the deposit with connector output to the provers address | ||
- spend the deposit to the next 2-of-2 multisig. | ||
- spend the second multisig with second connector output to the provers address | ||
- spend the seocond multisig to the next 2-of-2 multisig | ||
... | ||
|
||
|
||
Questions: | ||
Can SIGHASH_ALL | SIGHASH_ANYONECANPAY be used? | ||
Can we add delayed upgradability? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
bitcoin-cli -regtest -rpcuser=admin -rpcpassword=admin createwallet "admin"; | ||
|
||
bitcoin-cli -regtest -rpcuser=admin -rpcpassword=admin generatetoaddress 101 $(bitcoin-cli -regtest -rpcuser=admin -rpcpassword=admin getnewaddress); | ||
|
||
while true | ||
do | ||
bitcoin-cli -regtest -rpcuser=admin -rpcpassword=admin generatetoaddress 1 $(bitcoin-cli -regtest -rpcuser=admin -rpcpassword=admin getnewaddress) | ||
sleep 1 | ||
done |