Skip to content

Commit

Permalink
Generate mdbook
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 23, 2024
0 parents commit 85f6c7d
Show file tree
Hide file tree
Showing 2,304 changed files with 319,350 additions and 0 deletions.
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file makes sure that Github Pages doesn't process mdBook's output.
214 changes: 214 additions & 0 deletions 404.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions FontAwesome/css/font-awesome.css

Large diffs are not rendered by default.

Binary file added FontAwesome/fonts/FontAwesome.ttf
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions FontAwesome/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FontAwesome/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.woff2
Binary file not shown.
286 changes: 286 additions & 0 deletions arch/anonymous_assets.html

Large diffs are not rendered by default.

438 changes: 438 additions & 0 deletions arch/arch.html

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions arch/bridge.html

Large diffs are not rendered by default.

533 changes: 533 additions & 0 deletions arch/consensus.html

Large diffs are not rendered by default.

571 changes: 571 additions & 0 deletions arch/dao.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions arch/dex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# DEX

With cross-chain bridging and darkpool DEX then DarkFi would be a very
attractive trading tool.

We currently have OTC swaps which are an efficient way to settle trades
on-chain. But there needs to be an orderbook for matching counterparties.

We propose that this job can be performed by an order-matching bot which
maintains an orderbook. Later this role can be split with MPC.

The order-matching party needs to be able to construct the swap trade,
even when the LP is offline.

We propose to do this using the spend hook and a special `auth_otc` function.
The `auth_otc` basically says:

* The sender of the funds has the right at any time to withdraw liquidity and
cancel the LP.
* The funds are delegated to the order-matching party but with restrictions:
* Can only make an OTC swap tx using the funds.
* The trade parameters are completely specified such as the price and
currencies.

The funds are therefore delegated to the order-matching party, who finds
counterparty offers and executes the trades settling them on-chain. Both parties
receive their funds in a trustless anonymous manner. At any time the LP can be
canceled and funds withdrawn.

Binary file added arch/diagram-dkzk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
257 changes: 257 additions & 0 deletions arch/overview.html

Large diffs are not rendered by default.

519 changes: 519 additions & 0 deletions arch/p2p-network.html

Large diffs are not rendered by default.

596 changes: 596 additions & 0 deletions arch/sc/sc.html

Large diffs are not rendered by default.

313 changes: 313 additions & 0 deletions arch/sc/tx-lifetime.html

Large diffs are not rendered by default.

354 changes: 354 additions & 0 deletions arch/services.html

Large diffs are not rendered by default.

248 changes: 248 additions & 0 deletions arch/tooling.html

Large diffs are not rendered by default.

Binary file added arch/transaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
442 changes: 442 additions & 0 deletions arch/tx_lifetime.html

Large diffs are not rendered by default.

558 changes: 558 additions & 0 deletions arch/wallet.html

Large diffs are not rendered by default.

Loading

0 comments on commit 85f6c7d

Please sign in to comment.