Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #15

Merged
merged 78 commits into from
Dec 10, 2023
Merged

Dev #15

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
ed3b55b
some refactor
Hakkush-07 Nov 30, 2023
bd9c917
Merge pull request #13 from chainwayxyz/hakan/refactor
Hakkush-07 Dec 1, 2023
f924a5b
circuit taptree
Hakkush-07 Dec 4, 2023
48c7e26
taproot commitment checks finalize
Hakkush-07 Dec 4, 2023
f2b108e
p10 leaf
Hakkush-07 Dec 5, 2023
120caeb
Add prover and verifier
ozankaymak Dec 5, 2023
3abb5bc
Add prover test
ozankaymak Dec 5, 2023
690ad6d
Add verifier test
ozankaymak Dec 5, 2023
c5a1100
aca address
Hakkush-07 Dec 5, 2023
e0b9828
aca address
Hakkush-07 Dec 5, 2023
bb92e75
Merge pull request #14 from chainwayxyz/hakan/taptree
ekrembal Dec 5, 2023
1b3c575
Merge branch 'dev' into dev-ozan
ekrembal Dec 5, 2023
7185621
Merge pull request #16 from chainwayxyz/dev-ozan
ekrembal Dec 5, 2023
b5ee342
Add test tx
ekrembal Dec 5, 2023
723e25e
Add output tx serialized
ekrembal Dec 5, 2023
c02bc79
Output tx
ekrembal Dec 5, 2023
c1ceb2c
Esad fixed
ekrembal Dec 5, 2023
3eba689
Esad fixed
ekrembal Dec 5, 2023
de5bc3b
Add gate response script
ekrembal Dec 7, 2023
68804d3
Nit
ekrembal Dec 7, 2023
5108233
Nits
ekrembal Dec 7, 2023
0cfd98d
Merge pull request #19 from chainwayxyz/ekrem/gate-response
ekrembal Dec 7, 2023
54a5713
Refactor
ekrembal Dec 7, 2023
5b367a9
Nit
ekrembal Dec 7, 2023
e9ad032
compact scriptbufs to address
Hakkush-07 Dec 7, 2023
5944147
equivocation without vicky sig
Hakkush-07 Dec 7, 2023
676d250
small changes, fmt check
Hakkush-07 Dec 7, 2023
360fd0d
Merge pull request #22 from chainwayxyz/hakan/refactor
ekrembal Dec 7, 2023
64ab6a8
Add challenge reveal trees
ekrembal Dec 7, 2023
f656436
Nits
ekrembal Dec 7, 2023
7d3a9b3
Regtest working
ekrembal Dec 7, 2023
4837b4e
Nits
ekrembal Dec 7, 2023
ae29bb6
Merge pull request #23 from chainwayxyz/ekrem/presign
ekrembal Dec 8, 2023
bef816c
equivocation works
ekrembal Dec 8, 2023
d93e19e
Nits
ekrembal Dec 8, 2023
409ecc7
minor
ekrembal Dec 8, 2023
bd04d52
Websocket working
ekrembal Dec 8, 2023
be1fee5
nits
ekrembal Dec 8, 2023
6d9ee0b
Merge pull request #24 from chainwayxyz/ekrem/presign
Hakkush-07 Dec 8, 2023
df9c9eb
Add Hash types
ekrembal Dec 8, 2023
80e776d
nits
ekrembal Dec 8, 2023
409dcb1
Merge pull request #25 from chainwayxyz/ekrem/presign
ekrembal Dec 8, 2023
e67cb0e
Remove all [u8; 32]
ekrembal Dec 8, 2023
d96b62e
nits
ekrembal Dec 8, 2023
02ad470
Merge pull request #26 from chainwayxyz/ekrem/presign
ekrembal Dec 8, 2023
5917b5e
take tx functions to one place, convert actors to pks, wires to hashes
Hakkush-07 Dec 8, 2023
aa78b79
format
Hakkush-07 Dec 8, 2023
e630b4f
Merge pull request #27 from chainwayxyz/hakan/tx-address-functions
ekrembal Dec 8, 2023
53b2266
Bisection presign goes on
ekrembal Dec 8, 2023
5bd84e5
Nits
ekrembal Dec 8, 2023
6ebf8aa
Send kickoff tx
ekrembal Dec 9, 2023
7d9227f
nits
ekrembal Dec 9, 2023
40fd8a3
Create challenge works
ekrembal Dec 9, 2023
e5e3b77
nits
ekrembal Dec 9, 2023
b6e2c1b
Can get challenged gate
ekrembal Dec 9, 2023
cd1f8cc
nits
ekrembal Dec 9, 2023
c2d00b7
Format tests for new branch
ozankaymak Dec 9, 2023
128031d
Formatting
ozankaymak Dec 9, 2023
c887225
Tests working
ozankaymak Dec 9, 2023
f3c73d1
Formatting
ozankaymak Dec 9, 2023
0c7f6e2
make response
ekrembal Dec 9, 2023
133d51b
Merge pull request #28 from chainwayxyz/ozan/gate-test-for-ekrem/bise…
ekrembal Dec 9, 2023
d01e77d
Minor fixes
ekrembal Dec 9, 2023
2ad1e68
nits
ekrembal Dec 9, 2023
e8649f5
take eval from gate structs to common gate trait
Hakkush-07 Dec 9, 2023
ae2890e
response witness function without tests
Hakkush-07 Dec 9, 2023
4fee8e7
Merge pull request #29 from chainwayxyz/hakan/gate-eval-refactor
ekrembal Dec 9, 2023
377bd5f
Challenge response working
ekrembal Dec 9, 2023
b713ee9
nits
ekrembal Dec 9, 2023
9f9fc3d
Merge pull request #30 from chainwayxyz/ekrem/bisection-presign
ekrembal Dec 9, 2023
8cfa041
Demo working
ekrembal Dec 9, 2023
53eb51d
nits
ekrembal Dec 9, 2023
d7936c9
Add scripts and bridge design draft
ekrembal Dec 10, 2023
5c5f464
Modify tests
ozankaymak Dec 10, 2023
18324d5
Remove code duplication
ekrembal Dec 10, 2023
745a616
nits
ekrembal Dec 10, 2023
71579e1
Remove test
ekrembal Dec 10, 2023
ed09eef
nits
ekrembal Dec 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
[package]
name = "bitvmrs"
name = "bitvm"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitcoin = "0.31.0"
bitcoin = {version = "0.31.0", features = ["rand"]}
bitcoincore-rpc = {version = "0.18.0" }
hex = "0.4.3"
rand = "0.8.5"
tokio = { version = "1", features = ["full"] }
tokio-tungstenite = "0.15"
url = "2.2.0"
futures-util = "0.3"
serde = "1.0.193"
serde_json = "1.0.108"


[dev-dependencies]
bitcoin-scriptexec = { git = "https://github.com/ekrembal/rust-bitcoin-scriptexec" }
bitcoin-scriptexec = { git = "https://github.com/ekrembal/rust-bitcoin-scriptexec" }

# [features]
# rpc = ["bitcoincore-rpc"]


[[bin]]
name = "prover"
path = "src/prover.rs"

[[bin]]
name = "verifier"
path = "src/verifier.rs"
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,17 @@
Experimental BitVM implementation in Rust.

It is recommended to always use [cargo-crev](https://github.com/crev-dev/cargo-crev)
to verify the trustworthiness of each of your dependencies, including this one.
to verify the trustworthiness of each of your dependencies, including this one.


```
bitcoind -regtest -rpcuser=admin -rpcpassword=admin -rpcport=18443 -fallbackfee=0.00001 -wallet=admin
```

```
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)
```
Loading