Mariusz
cf08326c64
Add a taker endpoint for initiating collaborative settlement ( #175 )
* Add a taker endpoint for initiating collaborative settlement
For now, only logs the proposal in the logs on the maker side
3 years ago
Thomas Eizinger
904d81d51f
Refactor setup_contract to be just an async function
This allows us to more easily fail gracefully during its execution
because we can simply return a `Result`.
3 years ago
Thomas Eizinger
eda1b88b0a
Introduce a dedicated codec
3 years ago
Thomas Eizinger
b6d0fc6c2f
Convert `send_wire_message_actor` to xtra::Actor
This will give us a generalized `Sink` interface for writing to the
connection.
3 years ago
Philipp Hoenisch
a0951c03ac
Add accept/reject order feature to maker
3 years ago
Thomas Eizinger
e7f9d24e94
Start contract setup directly after sending the accept
The taker does this unconditionally, we don't need to wait for
another message on the maker side.
3 years ago
Daniel Karzel
de66e85d73
Successful publication of lock tx
3 years ago
Lucas Soriano del Pino
4fdbe89898
Refactor cfd_protocol crate
3 years ago
Lucas Soriano del Pino
aedce9b4b6
Handle multiple (message, nonce) pairs
3 years ago
Daniel Karzel
17471c9196
Remove `AdaptorSignature` wrapper in favor of latest `rust-secp256k1-zkp`
`EcdsaAdaptorSignature` implements `Serialize` and `Deserialize` on latest master of `rust-secp256k1-zkp` so we can remove the wrapper.
3 years ago
Daniel Karzel
a8a8076887
Rename offer to order. Everywhere!!!
3 years ago
Thomas Eizinger
d459af14d1
Integrate CFD protocol into the maker and taker
- Add wallet to maker and taker.
For now we have different, static descriptors with a hardcoded DB
path. We also only operate on testnet and use sled as a database.
- Associate each CET with a unique nonce_pk
Eventually a set of `(message, nonce_pk)`.
- Share transactions with maker
- Add serialisation support to adaptor signature
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
Co-authored-by: Lucas Soriano del Pino <l.soriano.del.pino@gmail.com>
3 years ago
Thomas Eizinger
3112f1f7be
Remodel daemons to follow actor model more closely
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
3 years ago