This section of the documentation is still under construction. Stay tuned for more content!
This documentation section provides an introduction to the COMIT protocol stack. Concepts specific to the COMIT protocol as well as the protocol design are explained here.
This slide shows the motivation of the COMIT protocol that is to create a truly trustless peer to peer protocol for digital assets.
Comit Network Daemon (cnd)
The COMIT network daemon (cnd) is the reference implementation of the COMIT protocol written in Rust.
Protocols in COMIT
A protocol can be roughly defined as the order and semantics of actions.
Within COMIT, we have two kinds of protocols:
- Cryptographic protocols
- Communication protocols
A cryptographic protocol within COMIT defines the order and semantics of interactions with ledgers. At the moment, COMIT specializes in cryptographic protocols that facilitate atomic swaps.
A communication protocol within COMIT defines how two COMIT nodes interact with each other. Those (libp2p-based) protocols facilitate the exchange of information for the purpose of then following a cryptographic protocol.
COMIT Cryptographic Protocols
The COMIT cryptographic protocols define protocols for executing an atomic swaps. For the negotiation phase please refer to the negotiation protocol section.
The COMIT protocol distinguishes between ledgers and assets. When referring to a ledger we use a an uppercase first letter (e.g. Bitcoin, Ethereum), when referring to an asset we use a lowercase first letter (e.g. bitcoin, ether).
COMIT currently defines the following atomic swap protocols:
- HAN - HTLCs for Assets that are Native to the ledger
- HErc20 - HTLCs for the Erc20 asset
- HALight - HTLCs for Assets on the Lightning ledger
HAN stands for HTLCs for Assets that are Native to the ledger.
The HAN protocol currently supports the following assets:
- HAN for bitcoin on Bitcoin
- HAN for ether on Ethereum
HTLCs for the Erc20 asset
The HErc20 protocol supports the following asset:
- Erc20 tokens on Ethereum
HTLCs for Assets on the Lightning ledger
The HALight protocol is currently still in development, the first supported asset will be bitcoin on the Lightning network.
COMIT Communication Protocols
The communication protocols of COMIT are used to exchange information between parties prior to the execution of a swap.
COMIT Negotiation Protocols