Cross-ledger atomic swap

Hash time lock contract or HTLC is a composition of a hash lock and a time lock. The hash lock authorizes the ClaimHTLC transaction. The time lock authorizes the RefundHTLC transaction. The result of this contract is either success or refund, assuming that transactions are timely executed on the ledger. It is also named an atomic swap.

Hash lock

Hash lock is a cross-ledger authorization mechanism that requires a preimage of a cryptographic hash.

Implemented types:

Time lock

Time lock is a cross-ledger authorization mechanism that requires a specified ledger time or height to pass.

Implemented types:

RPC API

In version 0.3 RPC API will be implemented.