All Projects → comit-network → Comit Rs

comit-network / Comit Rs

Licence: gpl-3.0
Reference implementation of COMIT, an open protocol facilitating trustless cross-blockchain applications.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Comit Rs

Bitalarm
An app to keep track of different cryptocurrencies, written in dart + flutter
Stars: ✭ 94 (-50.53%)
Mutual labels:  cryptocurrencies, hacktoberfest
Rotki
A portfolio tracking, analytics, accounting and tax reporting application that protects your privacy
Stars: ✭ 689 (+262.63%)
Mutual labels:  cryptocurrencies, hacktoberfest
Macos Egpu Cuda Guide
Set up CUDA for machine learning (and gaming) on macOS using a NVIDIA eGPU
Stars: ✭ 187 (-1.58%)
Mutual labels:  hacktoberfest
Cfwheels
An open source ColdFusion framework inspired by Ruby on Rails.
Stars: ✭ 188 (-1.05%)
Mutual labels:  hacktoberfest
Files
File browser designed for elementary OS
Stars: ✭ 187 (-1.58%)
Mutual labels:  hacktoberfest
Formatter Maven Plugin
Formatter Maven Plugin
Stars: ✭ 187 (-1.58%)
Mutual labels:  hacktoberfest
Readability
Readability is Elixir library for extracting and curating articles.
Stars: ✭ 188 (-1.05%)
Mutual labels:  hacktoberfest
Js fun practice
A list of small & fun functional programming exercises in JavaScript
Stars: ✭ 186 (-2.11%)
Mutual labels:  hacktoberfest
Programmers Community
This repository contains various solution of a problem in Ruby, C, C++, Python and Java.
Stars: ✭ 189 (-0.53%)
Mutual labels:  hacktoberfest
Nimlsp
Language Server Protocol implementation for Nim
Stars: ✭ 186 (-2.11%)
Mutual labels:  hacktoberfest
Consul
Development repository for the consul cookbook
Stars: ✭ 188 (-1.05%)
Mutual labels:  hacktoberfest
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (-1.05%)
Mutual labels:  hacktoberfest
Orca
Orchestration engine
Stars: ✭ 187 (-1.58%)
Mutual labels:  hacktoberfest
Petergate
Easy to use and read action and content based authorizations.
Stars: ✭ 188 (-1.05%)
Mutual labels:  hacktoberfest
Cryptocurrencies
📋 Get a list of all the cryptocurrency symbols and names.
Stars: ✭ 186 (-2.11%)
Mutual labels:  cryptocurrencies
Androrat
A Simple android remote administration tool using sockets. It uses java on the client side and python on the server side
Stars: ✭ 187 (-1.58%)
Mutual labels:  hacktoberfest
Sicp
Web, PDF and e-book editions of SICP JS (XML, LaTeX, Node.js)
Stars: ✭ 185 (-2.63%)
Mutual labels:  hacktoberfest
Dailycodebase
2 month data structures and algorithmic scripting challenge starting from 20th December 2018 - Coding is Fun! 💯💯 Do it everyday!! Also, Do give us a ⭐ if you liked the repository
Stars: ✭ 186 (-2.11%)
Mutual labels:  hacktoberfest
Red Discordbot
A multi-function Discord bot
Stars: ✭ 2,855 (+1402.63%)
Mutual labels:  hacktoberfest
Labean
HTTP/HTTPS port knocker for GNU/Linux written in Go
Stars: ✭ 188 (-1.05%)
Mutual labels:  hacktoberfest
COMIT logo

COMIT is an open protocol facilitating cross-blockchain applications. For example, with COMIT you can exchange Bitcoin for Ether or any ERC20 token directly with another person.

This repository contains the reference implementation of the protocol written in Rust.

GitHub Action CI on dev Safety Dance Bors enabled License: GPL v3 Matrix chat

comit-rs

The Rust reference implementation of the COMIT protocol (comit-rs) implements atomic swaps using constructs like Hash Time-Locked Contracts (HTLCs) to keep your funds safe at any time.

Structure

This repository is a cargo workspace:

  • cnd: a non-custodial COMIT network daemon, designed to be driven by a client with wallets (f.e. Ambrosia)
  • nectar: a custodial COMIT network daemon, designed for automated trades
  • comit: a library implementing primitives of the COMIT protocol like libp2p-protocols, the decentralized orderbook and locking- as well as swap-protocols

cnd and nectar are released as binaries.

The comit library will be released to crates.io once its interface stabilizes.

Setup build environment

All you need is love Rust: curl https://sh.rustup.rs -sSf | sh

Build binaries

  • cargo build --release --package cnd
  • cargo build --release --package nectar

Run binaries

Both, cnd and nectar require a connection to a Bitcoin and an Ethereum full node. All config file options have sensible defaults but can also be overridden. Run cnd dump-config or nectar dump-config for more information.

Setup testing/dev environment

  1. Install docker,
  2. Install node (check the version required in tests/package.json) & yarn,
  3. Run make in the root folder of the repository, this will install various crates & tools such as clippy.

Testing

  • make test is just a wrapper around cargo test --all
  • make e2e will run all the end-to-end tests

To run individual end-to-end tests, use yarn inside the tests folder:

  • yarn run test: run all tests
  • yarn run test <directory>: run all tests in the directory
  • yarn run test <path to test file>: run all tests in this test file, supports shell glob on the path
  • yarn run fix: run prettier and linter to fix format
  • yarn run check: run tsc (to check validity of TypeScript code) and verify format

Cnd over Tor

If you would like to maintain anonymity while using cnd for atomic swaps we support running cnd over Tor. You will need to configure an onion service (previously hidden service), virtual port can be anything but cnd expects the local port to be 9939.

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 9939 127.0.0.1:9939

After starting Tor for the first time get the onion service address from your local file system (e.g. /var/lib/tor/hidden_service/hostname) and add it to your cnd config file.

[network]
listen = ["/onion3/vww6ybal4bd7szmgncyruucpgfkqahzddi37ktceo3ah7ngmcopnpyyd:9939"]

All cnd traffic will now be routed over the Tor network.

Contributing

Contributions are welcome, please visit CONTRIBUTING for more details.

If you have any question please reach out to the team in our Matrix channel!

License

This project is licensed under the terms of the GNU GENERAL PUBLIC LICENSE v3.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].