atomicswap

module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2018 License: ISC

README

atomic swap tools

Utilities to perform cross-chain atomic swaps. The swaps are based upon and compatible with Decred atomic swaps. This repository adds tools and support for coins and wallets not supported by the Decred atomic swap tools.

Atomic Swaps with full clients

Supported wallets:

Find more support coins/wallets on:

  • rivine/decredatomicswap: atomic swap (full-client) tools to swap with BTC and various altcoins. Binaries for the original Decred Atomic swap tools are also provided here.
  • threefoldfoundation/tfchain: atomic swap (full-client) tool (tfchainc) to swap with TFT

Atomic Swaps with thin clients

Electrum

Currently only the Bitcoin Electrum wallet is supported:

Run Electrum as a daemon

Start Electrum on testnet and create a default wallet: ./Electrum --testnet

Configure and start Electrum as a daemon :

./Electrum --testnet  setconfig rpcuser user
./Electrum --testnet  setconfig rpcpassword pass
./Electrum --testnet  setconfig rpcport 7777
./Electrum --testnet daemon
./Electrum --testnet daemon load_wallet

Roadmap

  • Structure the thin-client code as a library both for Go and C
  • Add support for
    • Litecoin (Electrum-ltc)
    • Ethereum (light (electrum?) client)

And more coins later on.

Directories

Path Synopsis
cmd
btcatomicswap/rpcclient
Package rpcclient provides an easy to use client for interfacing with an electrum wallet that runs a JSON-RPC daemon Based on https://github.com/btcsuite/btcd/tree/master/rpcclient
Package rpcclient provides an easy to use client for interfacing with an electrum wallet that runs a JSON-RPC daemon Based on https://github.com/btcsuite/btcd/tree/master/rpcclient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL