Philipp Hoenisch
f830a9f521
Use dummy multisig for creating lock psbt
3 years ago
Philipp Hoenisch
a1cc6badb2
Compute dust limit on demand
3 years ago
Lucas Soriano del Pino
9dcc109e9d
Handle fees properly
3 years ago
Philipp Hoenisch
da5fb471c9
Add ci
Includes a few checks:
- dprint check
- clippy
- workspace tests on ubuntu and macos
3 years ago
Philipp Hoenisch
45c8d05ceb
Add and run dprint fmt
3 years ago
Lucas Soriano del Pino
e9e8866ef8
Add constructor for Payout
3 years ago
Lucas Soriano del Pino
73ef2bc14a
Remove comment and use anyhow::context instead
3 years ago
Lucas Soriano del Pino
348099a7aa
Remove unwrap
3 years ago
Lucas Soriano del Pino
9423ee680f
Simplify extraction of publish sk from candidate commit tx
3 years ago
Philipp Hoenisch
efbe79abc1
Calculate refund fee dynamically
3 years ago
Philipp Hoenisch
22294aaecf
Subtract minimal fee from commit tx
3 years ago
Philipp Hoenisch
9910a732ca
Subtract minimal fee from punish tx
3 years ago
Philipp Hoenisch
f70e192ea6
Optimize miniscript by combining the full expression
3 years ago
Thomas Eizinger
831fdebda6
Avoid cloning and allocation of tx inputs
If all we need is a mutable reference to the tx input, we can
grab one via `iter_mut`.
3 years ago
Lucas Soriano del Pino
a27b3b9f80
Use all public APIs in protocol test
3 years ago
Philipp Hoenisch
07a7d2cbb1
Implement build_party_params for Wallet
3 years ago
Philipp Hoenisch
182375e6b4
Simplify constructor by only passing in a sk
3 years ago
Lucas Soriano del Pino
2c22831438
Rewrite protocol test to use some public APIs
3 years ago
Philipp Hoenisch
245aaaf7ae
Use itertools exactly_one
3 years ago
Philipp Hoenisch
38d7a730f9
Use pubkey_hash function on PK
3 years ago
Philipp Hoenisch
2985f96bea
Calculate CET fee based on tx size.
3 years ago
Lucas Soriano del Pino
00841e5892
Refine possible public API and implement build_cfd_transactions
The next step should be to actually use `build_cfd_transactions` in
the test.
Afterwards, we can continue implementing and refining the public API of
the library.
3 years ago
Lucas Soriano del Pino
4d17c09e03
Verify punish transactions
3 years ago
Lucas Soriano del Pino
2976d314f5
Remove old FIXME
3 years ago
Lucas Soriano del Pino
476c81807a
Introduce revocation-style transactions ala Thor
3 years ago
Lucas Soriano del Pino
924d6d6528
Define possible library APIs
3 years ago
Lucas Soriano del Pino
8a8e896cc5
Commit Cargo.lock
3 years ago
Lucas Soriano del Pino
dbc16b1ae9
Verify signed CETs using bitcoinconsensus
3 years ago
Lucas Soriano del Pino
199b293125
Verify refund signatures using bitcoinconsensus
Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
3 years ago
Lucas Soriano del Pino
9d83d56261
Verify refund signatures and CET encsigs
The protocol doesn't need to (can?) verify the lock transaction signatures
and the broadcasting party should instead attempt to broadcast the
lock transaction.
3 years ago
Lucas Soriano del Pino
5b139ee36a
Remove erroneous note
3 years ago
Lucas Soriano del Pino
05f64d8a7a
Sign and encsign all DLC transactions in test
3 years ago
Lucas Soriano del Pino
91134e3b2a
Generate all DLC transactions in test
3 years ago
Lucas Soriano del Pino
20c6635c78
Create cargo workspace and cfd_protocol crate
3 years ago
Daniel Karzel
3704e55eb6
Merge pull request #18 from comit-network/ci-stub
Add a CI stub to enable CI workflows on branches
3 years ago
Daniel Karzel
c0d504c83e
Add a CI stub to enable CI workflows on branches
3 years ago
Thomas Eizinger
123c01aec5
Merge pull request #12 from thomaseizinger/architecture
Add ARCHITECTURE.md
3 years ago
Thomas Eizinger
a851af24cb
Improve spelling
Co-authored-by: Lucas Soriano <lucas@comit.network>
3 years ago
Daniel Karzel
0f7c54b1fd
Merge pull request #1 from comit-network/roadmap
Roadmap to MVP
3 years ago
Daniel Karzel
1087fd77ca
Remove section in favour or ARCHITECTURE.md
3 years ago
Daniel Karzel
f5aa8f411b
Roadmap to MVP
3 years ago
Mariusz Klochowicz
a24e38826b
Add a .gitignore file
3 years ago
Thomas Eizinger
5034dbead0
Explain that frontends are served by the daemons
3 years ago
Thomas Eizinger
3ab1652ca2
Add ARCHITECTURE.md
3 years ago
Daniel Karzel
b7778f0556
Update diagram
- Seller publishes CFD, Buyer publishes CET for settlement
- Some minor renaming and notes for better understandability
3 years ago
Daniel Karzel
d12e04d495
MVP sequence diagram
3 years ago