Skip to content

Whitepaper: Interoperability between Cardano and its L2s via HTLCs, illustrated with Midgard, Hydrozoa, and Bitcoin Lightning examples

License

Notifications You must be signed in to change notification settings

GeorgeFlerovsky/interop-midgard-hydrozoa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardano Layer 2 Interoperability: Midgard and Hydrozoa

Contributor guidelines

This LaTeX project adopts the following conventions in all .tex files:

  1. All sentences should be separated by a newline character so that it's easier to review changes in PRs:
    % Like this:
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    
    % _Not_ like this:
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

Building this LaTeX project

Command line

Please ensure that nix is installed in your system and flakes are enabled.

Build in one step: bash make nix-build

Alternative build workflow, step-by-step:

  1. Open a nix shell with the necessary latex packages installed:
    make shell
  2. Build the latex PDF:
    make build

Clean all the files generated by make build: bash make clean

The direnv shell extension can automate the process of opening a nix shell inside any repository that contains a nix flake. This project is configured to use it.

VS Code

In addition to the nix dependencies above, this requires two VS Code extensions:

Build steps:

  1. Open VS Code in the project root directory:
    code .
  2. Select the main TeX file (main.tex)
  3. Click the green play button (top right of file pane) to build the LaTex project (CTRL + ALT + B).

Neovim (advanced)

In addition to the nix dependencies above, this requires the VimTex. Install and configure the plugin according to the instructions in the link.

Build steps:

  1. Open a nix shell in the project root directory.
  2. Open the main TeX file with Neovim nvim main.tex.
  3. Turn on the continuous build using VimTex's hotkey, by default <LocalLeader>ll. Now, it will also rebuild whenever you save changes to a .tex file in the directory.

The Sioyek PDF viewer works particularly well with VimTex on Linux (tested on Wayland).

About

Whitepaper: Interoperability between Cardano and its L2s via HTLCs, illustrated with Midgard, Hydrozoa, and Bitcoin Lightning examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published