Skip to content

Instantly share code, notes, and snippets.

@himu007
Last active October 26, 2020 11:23
Show Gist options
  • Save himu007/add3181427bb53ab5dc5160537f0c238 to your computer and use it in GitHub Desktop.
Save himu007/add3181427bb53ab5dc5160537f0c238 to your computer and use it in GitHub Desktop.

Copyright (c) 2020 SHossain. All rights reserved.

Table of Contents





Introduction

This is a Work in Progress (WIP) guide for testing Komodo's new tech Subatomic OTC Swaps. It works with normal CLTV channels. Read more about it here. Bugs are expected, please report them to #dev-subatomic channel in Komodo Discord. Please also report any incorrect info/suggestions on this guide in #dev-subatomic channel or leave a comment at the end of this guide. The Subatomic dAPP source is here. Dev explanation on how this works can be found here in this Discord link (access to Komodo Discord required).

Requirements

All chains must be native on both alice and bob nodes.

  1. Ubuntu 16.04, 18.04 or Debian 9 or 10 with 16GB RAM (you may want to increase RAM size or add SWAP space if 16GB RAM is not enough), 4-core CPU, 64GB SSD as minimum.
  2. gcc 8 to compile subatomic binary.
  3. Working CLI knowledge on Ubuntu/Debian to follow along this guide.
  4. SHURLI0 chain with dexp2p=2, special peer IP (available in bob and alice section inside the launch param) and privkey of the R address and zAddr imported (full sync is not mandatory).
  5. KMD chain ./komodod & - fully synced and privkey of the R address imported & funded as required. Make sure you have komodo.conf file inside your .komodo data dir. In case you are using the QT wallet with the supplied komodo.conf file, please edit the file and use server=1 instead of 0 and also change rpcuser and rpcpassword value.
  6. PIRATE chain ./komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -addnode=178.63.77.56 & - fully synced and privkey of the zAddr imported & funded as required.

Install Dependencies

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libgtest-dev libqrencode-dev libdb++-dev ntp ntpdate software-properties-common curl clang libcurl4-gnutls-dev cmake clang libsodium-dev libevent-dev jq -y

Clone, Compile and Link komodo-cli

Make sure you compile dev branch from jl777's repo and don't mix the daemon from another branch or repo.
Use the following commands in both bob and alice nodes:

git clone https://github.com/jl777/komodo
cd ~/komodo
git checkout dev
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(nproc)
sudo ln -sf /home/$USER/komodo/src/komodo-cli /usr/local/bin/komodo-cli

Important If you want to use CHIPS or VRSC swaps, make sure you link the cli binary as well like the commands below for each.

sudo ln -sf /home/$USER/chips3/src/chips-cli /usr/local/bin/chips-cli
sudo ln -sf /home/$USER/VerusCoin/src/verus /usr/local/bin/verus

Compile the subatomic binary file

This is the daemon that will used on subatomic OTC swaps. You will find the subatomic binary inside ~/komodo/src/ directory once compiled. Please note: you need to have gcc8 to be able to compile this binary. Once the compilation finished, the binary will be available inside ~/komodo/src/ directory. Both alice & bob nodes need this. To compile/build the binary file issue the following commands:

cd ~/komodo/src/cc/dapps
./make_subatomic.sh
cd ../../
ln cc/dapps/subatomic.json .

alice Node

Launch SHURLI0 Chain

Import the privkey of the corresponding pubkey of the R address and z address after the chain start. Make sure to change -handle according to your liking and leave _alice as it it for easy identification.

./komodod -pubkey=038e61fbface549a850862f12ed99b7cbeef5c2bd2d8f1daddb34809416f0259e1 -ac_name=SHURLI0 -dexp2p=2 -ac_supply=10 -addnode=67.207.76.33 -handle=alien_alice -recvZaddr=zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn &

Note:

pubkey = is the pubkey of your KMD transparent (R) address. the privkey of that address needs to be imported in both KMD and SHURLI0 wallet
recvZaddr = is your PIRATE receiving address. the privkey of this address also needs to be imported into both PIRATE and SHURLI0 wallet

Important: After you have completed importing your R and zs addr privkey into the daemon, restart the SHURLI0 chain with all the params like above.

You also need KMD and PIRATE chain in native mode in Alice node and corresponding privkey imported & funded as required. You can find the launch params of these chains here.

Display Orderbook

Display orderbook data using the following example. You can change the coin name and base/rel as your liking.

./komodo-cli -ac_name=SHURLI0 DEX_orderbook 10 0 PIRATE KMD

Example Output:

./komodo-cli -ac_name=SHURLI0 DEX_orderbook 10 0 PIRATE KMD
{
  "asks": [
    {
      "price": "0.05000000",
      "baseamount": "100.00000000",
      "relamount": "5.00000000",
      "priority": 6,
      "pubkey": "01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f",
      "timestamp": 1581538693,
      "hash": "076ce1b408a6e404ed92cd5fff589962e330f36aaf00514e217b8bf51a4e31f5",
      "id": 2337150656
    }
  ],
  "bids": [
  ],
  "base": "PIRATE",
  "rel": "KMD"
}

For displaying zCOIN orderbook

./komodo-cli -ac_name=SHURLI0 DEX_orderbook 10 0 PIRATE zVRSC

Example Output:

{
  "asks": [
    {
      "price": "0.33333334",
      "baseamount": "3.00000000",
      "relamount": "1.00000000",
      "priority": 5,
      "pubkey": "0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e",
      "timestamp": 1588108896,
      "hash": "0772d33c6308e011a0346579e981258344db1c98c47802dbe953a7f704c3ca08",
      "id": 869087008
    }
  ],
  "bids": [
    {
      "price": "0.33333334",
      "baseamount": "3.00000000",
      "relamount": "1.00000000",
      "priority": 5,
      "pubkey": "0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e",
      "timestamp": 1588108902,
      "hash": "07bad63c709172682dfb1d1ca03185f4c1d8ffaa4764c48bbc0b2f13d5f5f66e",
      "id": 63794080
    }
  ],
  "base": "PIRATE",
  "rel": "zVRSC"
}

Start the subatomic swaps

Once all above are done and you have the id of an order that you would like to swap with, you are ready to start a subatomic swap. All you to do is just use ./subatomic <coin name> "" <bid id> <fill amount>. If using CLI and an order doesn't start or continue, you can try changing coin name to the other coin.

Example: In this example we are trying to buy another coin that is available on the order with PIRATE.

./subatomic PIRATE "" 2855700768 10

Example for using zCOIN: If you want to use a coin that support both public and private transaction and want to pay from private address, use the subatomic command like below:

./subatomic zVRSC "" 2010526496 0.1

Shurli GUI for Alice node

You can use this Shurli GUI by Grewal Satinder if you don't like to use CLI. This GUI is pretty simple and easy to use. Currently, the GUI is also work in progress (WIP) but working fine on Linux and MacOS. You need to be running the any chain you want to swap with native mode. Either using CLI, KomodoOcean QT wallet or Verus Desktop. And, for the SHURLI0 chain you must use the locally compiled binary for now. Shurli GUI link below:

Important Notes

- Remember to use small amount while testing.
- Check your balances in the corresponding wallet and make sure that this is what you expected.
- Report any bugs in #dev_subatomic channel of Komodo Discord.
- For the pubkey and recvZaddr, use your own. Don't use the key and addresses that are used as example.

bob Node

Launch SHURLI0 Chain

Import the privkey of the corresponding pubkey of the R address and zaddr after the chain start. Make sure to change -handle according to your liking and leave _bob as it it for easy identification.

./komodod -pubkey=02c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220 -ac_name=SHURLI0 -dexp2p=2 -ac_supply=10 -addnode=67.207.76.33 -handle=alien_bob -recvZaddr=zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 &

Note:

pubkey = is the pubkey of your KMD transparent (R) address. The privkey of that address needs to be imported in both KMD and SHURLI0 wallet or into any other chain that you will be running.
recvZaddr = is your private (shielded) receiving address. The privkey of this address also needs to be imported into both PIRATE and SHURLI0 wallet or into any other chain that you will be running which support private transaction.

Important: After you have completed importing your R and z addr privkey into the daemon, restart the SHURLI0 chain with all the params like above.

Create bid & ask scripts

Usage:

bid: ./komodo-cli -ac_name=SHURLI0 DEX_broadcast <recvZaddr> <priority> KMD PIRATE <01pubkey> $2 $1
ask: ./komodo-cli -ac_name=SHURLI0 DEX_broadcast <recvaddr> <priority> PIRATE KMD <01pubkey> $1 $2

You need to get the 01 pubkey from the SHURLI0 chain startup standard outputs, known as stdout to use inside the following scripts. For this testing we are using priority 5. Don't forget to make the bid and ask scripts executable using chmod +x command. For easy access and launch, create them inside the ~/komodo/src/ directory.

bid
./komodo-cli -ac_name=SHURLI0 DEX_broadcast zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 5 KMD PIRATE 01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f $2 $1
ask
./komodo-cli -ac_name=SHURLI0 DEX_broadcast RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB 5 PIRATE KMD 01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f $1 $2

Note: If you want to use private address for a swap on a chain that supports both public (transparent) and private (shielded) transaction, you need to use the zAddr and coin name will be zCOIN. For example, for VerusCoin, it will be zVRSC). When z is added before a coin that supports private transaction, subatomic will automatically use private address for swap. This is not required on Pirate Chain.
Here is an example of zCOIN bid script:

./komodo-cli -ac_name=SHURLI0 DEX_broadcast zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 5 zVRSC PIRATE 01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f $2 $1

Posting bid & ask

For both bid and ask: ./bid or ./ask PIRATEvol KMDvol, so to get a 0.1 price use the following commands:

./bid 1000 100
./ask 1000 100

bid example output:

./bid 1000 100
{
  "timestamp": 1581516364,
  "id": 2855700768,
  "hash": "079268a3ca4b7e426b8486608886df3fab245db089b0d90c110ee02784db28c2",
  "tagA": "KMD",
  "tagB": "PIRATE",
  "pubkey": "01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f",
  "payload": "b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f3582d81a2a7fe1cbf178937e9aa28881c92b0d11216403600000000000000000000000000000000068d6998ab646e7b9be0293ed7f153f4c15dd687cf80f36ed5ac94de18e6436fef12bd4d368864d193ec40bd27d625c214577897ae312be9ee7e3eb7c9664487934215c463360e48de6096f88ac348b4e19b451ee7c0adac7d5578bd2c7288a",
  "hex": 1,
  "decrypted": "zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0",
  "decryptedhex": 0,
  "senderpub": "01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f",
  "amountA": "100.00000000",
  "amountB": "1000.00000000",
  "priority": 5,
  "recvtime": 1581516364,
  "cancelled": 0
}

ask example output:

./ask 1000 100
{
  "timestamp": 1581528567,
  "id": 1900124800,
  "hash": "07a81914b70bc3bf9fdd2de377bef941a6be52ada355882d400eb28c2e69b853",
  "tagA": "PIRATE",
  "tagB": "KMD",
  "pubkey": "01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f",
  "payload": "b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f8554141b10696753c487b9f729e7e71ba2808c965e61deea00000000000000000000000000000000dbaa2f2af16622b63e45d351ac120b13729bc6f744c715dc1aca94d3b7b306bd258a1530ada3cb73fe166e46e7abcbff521be2",
  "hex": 1,
  "decrypted": "RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB",
  "decryptedhex": 0,
  "senderpub": "01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f",
  "amountA": "1000.00000000",
  "amountB": "100.00000000",
  "priority": 7,
  "recvtime": 1581528567,
  "cancelled": 0
}

Example zCOIN ask output

./askpiratezverus 3 1
{
  "timestamp": 1588108896,
  "id": 869087008,
  "hash": "0772d33c6308e011a0346579e981258344db1c98c47802dbe953a7f704c3ca08",
  "tagA": "PIRATE",
  "tagB": "zVRSC",
  "pubkey": "0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e",
  "payload": "33f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e7208a3c3e6d077c365179134eb627e735edfbe4bfb604b40000000000000000000000000000000005e8b4f0184f766c46d1e3c98a101f9e0144ee065f17566648c6033da2538615aa926142368852e9fa4cab802fc5ac8bb4c0502039b0408a9ee4aaf37a75a459ae14743a89e19bdf8e1e42a1ee55fae4b694a6e6faa3893813d89b0f9f12d55",
  "hex": 1,
  "decrypted": "zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0",
  "decryptedhex": 0,
  "senderpub": "0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e",
  "amountA": "3.00000000",
  "amountB": "1.00000000",
  "priority": 5,
  "recvtime": 1588108896,
  "cancelled": 0
}

Remember the id from the bid, the alice node will need it.

Start the subatomic loop in bob node

This is how you start a bob node to perform the subatomic swaps. These loops will be running long term. So, better to use individual screen session for each pair your bob is running. You can attach and detach a screen without shutting down the loop.

  • To start a bob loop that accepts PIRATE for KMD use the following command in a screen session or in a separate terminal/SSH window.
./subatomic PIRATE "" KMD
  • To start a bob loop that accepts KMD for PIRATE use the following command in a screen session or in a separate terminal/SSH window.
./subatomic KMD "" PIRATE
  • To start a bob loop that accepts zVRSC for PIRATE use the following command in a screen session or in a separate terminal/SSH window.
./subatomic zVRSC "" PIRATE
  • To start a bob loop that accepts PIRATE for zVRSC use the following command in a screen session or in a separate terminal/SSH window.
./subatomic PIRATE "" zVRSC

KMD <> PIRATE Subatomic OTC Swap Proof by SHossain#0007

Its the first subatomic swap done by someone other than James Lee jl777.

KMD sent txid: ea8e05c5a5420fe9158261b35b51c366d391d3abbd5183737a3e4858e4919c8e
PIRATE received txid: c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35

From Alice Node

./subatomic KMD "" 3331067616 0.1
subatomic_channel_alice KMD 3331067616 3331067616 with 0.10000000 10000000
rel.KMD openrequest 3331067616 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
openrequest.790819552 -> (01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f)
start subatomic_loop iambob.0 PIRATE -> KMD, 3331067616 10000000 790819552
iambob.0 (PIRATE/KMD) channelapproved.({"origid":3331067616,"price":18,"openrequest":0,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","bobaddr":"","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","approval":"025d00171bf351f85126534ad226b5f2769e51e90ff3da0a6b00f23e3ce18a3f","tobob":0}) origid.3331067616 status.1
approvalid.1254155200 (01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f)
iambob.0 (PIRATE/KMD) incomingchannel.({"origid":3331067616,"price":18,"openrequest":0,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","approval":"025d00171bf351f85126534ad226b5f2769e51e90ff3da0a6b00f23e3ce18a3f","bobaddr":"","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","opened":"2b3caacf0014bba9d19553832acbbcbf806182ed4b7a9bbcb102376c7ec731aa","tobob":0}) status.2
sendtoaddress RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB 0.10000000 txid.(ea8e05c5a5420fe9158261b35b51c366d391d3abbd5183737a3e4858e4919c8e)
got txid.ea8e05c5a5420fe9158261b35b51c366d391d3abbd5183737a3e4858e4919c8e
0.10000000 KMD -> RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB, paymentid[0] 1090220160
iambob.0 (PIRATE/KMD) incomingpayment.({"origid":3331067616,"price":18,"openrequest":0,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","bobpays":"179820000","alicedestaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","bobpayment":"c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35","tobob":0}) status.4
alice waits for PIRATE.c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35 to be in mempool
error code: -5
error message:
No information available about transaction
loadfile null size.(/tmp/notarizer_getrawtransaction_1519)
paidid.2639100832
iambob.0 (PIRATE/KMD) incomingfullypaid.({"origid":3331067616,"price":18,"openrequest":0,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","paid":"in full","bobpayment":"c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","tobob":0}) status.5
closedid.734559168
iambob.0 (PIRATE/KMD) incomingclose.({"origid":3331067616,"price":18,"openrequest":0,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","closed":3331067616,"bobpayment":"c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","tobob":0}) status.6
alice 3331067616 10000000 790819552 finished

From Bob Node

start subatomic_loop iambob.1 PIRATE -> KMD, 0 0 0
bob (PIRATE/KMD) gotopenrequest.({"origid":3331067616,"price":18,"openrequest":0,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"01ccbdb3d52502f8ad2c64d586cfa3ac4babd467bde4320c1ba065c0c31e0a1824","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","tobob":1}) origid.3331067616 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0)
approvalid.441583104 (01ccbdb3d52502f8ad2c64d586cfa3ac4babd467bde4320c1ba065c0c31e0a1824)
iambob.1 (PIRATE/KMD) channelapproved.({"origid":3331067616,"price":18,"openrequest":790819552,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"01ccbdb3d52502f8ad2c64d586cfa3ac4babd467bde4320c1ba065c0c31e0a1824","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","approval":"025d00171bf351f85126534ad226b5f2769e51e90ff3da0a6b00f23e3ce18a3f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","approval":"0273900110eceeb228c35b23565cbcb8ef8268fe15386fc8ea6302da66372e69","tobob":1}) origid.3331067616 status.2
openedid.322466048
iambob.1 (PIRATE/KMD) incomingpayment.({"origid":3331067616,"price":18,"openrequest":790819552,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"01ccbdb3d52502f8ad2c64d586cfa3ac4babd467bde4320c1ba065c0c31e0a1824","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","alicepays":"10000000","bobdestaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","alicepayment":"ea8e05c5a5420fe9158261b35b51c366d391d3abbd5183737a3e4858e4919c8e","tobob":1}) status.3
bob waits for KMD.ea8e05c5a5420fe9158261b35b51c366d391d3abbd5183737a3e4858e4919c8e to be in mempool
got TX.({"hex":"0400008085202f89018749ff4adeaa4a6139a4e7b7a15345d21bdf4967006ab471c799bc96dac82d6a000000006b4830450221009f46b80eecf539585a3377aea2545b9393eae4805b97ba61d58b073e74fefd2802203bea75f0c6616512ca11fc2b74ce06ee1ff7ac31774ba0af1f97382a29882cf90121035980404f9cec2f1ca8c7226b80445c35cd788f89d18de7bf0690fb7b83d2bd88feffffff02e888c901000000001976a9141b3e5151c5efff295502e58f028b6c68607b391988ac80969800000000001976a914a5be8ec3317f07d49f3ab85a80d0007f986a252f88ac6a61445e5fa81a000000000000000000000000","txid":"ea8e05c5a5420fe9158261b35b51c366d391d3abbd5183737a3e4858e4919c8e","overwintered":true,"version":4,"last_notarized_height":1746820,"versiongroupid":"892f2085","locktime":1581539690,"expiryheight":1747039,"vin":[{"txid":"6a2dc8da96bc99c771b46a006749df1bd24553a1b7e7a439614aaade4aff4987","vout":0,"address":"RXzidVDrM2jdfeWge67UgBaS7qSSKhtP8F","scriptSig":{"asm":"30450221009f46b80eecf539585a3377aea2545b9393eae4805b97ba61d58b073e74fefd2802203bea75f0c6616512ca11fc2b74ce06ee1ff7ac31774ba0af1f97382a29882cf9[ALL] 035980404f9cec2f1ca8c7226b80445c35cd788f89d18de7bf0690fb7b83d2bd88","hex":"4830450221009f46b80eecf539585a3377aea2545b9393eae4805b97ba61d58b073e74fefd2802203bea75f0c6616512ca11fc2b74ce06ee1ff7ac31774ba0af1f97382a29882cf90121035980404f9cec2f1ca8c7226b80445c35cd788f89d18de7bf0690fb7b83d2bd88"},"sequence":4294967294}],"vout":[{"value":0.29985000,"interest":0,"valueSat":29985000,"n":0,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 1b3e5151c5efff295502e58f028b6c68607b3919 OP_EQUALVERIFY OP_CHECKSIG","hex":"76a9141b3e5151c5efff295502e58f028b6c68607b391988ac","reqSigs":1,"type":"pubkeyhash","addresses":["RBmEybsMdhwKDmPF2hQ7BHwrpeBBFicRTm"]}}, {"value":0.10000000,"interest":0,"valueSat":10000000,"n":1,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 a5be8ec3317f07d49f3ab85a80d0007f986a252f OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914a5be8ec3317f07d49f3ab85a80d0007f986a252f88ac","reqSigs":1,"type":"pubkeyhash","addresses":["RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB"]}}],"vjoinsplit":[],"valueBalance":0,"vShieldedSpend":[],"vShieldedOutput":[]})
z_sendmany.( PIRATE) from.(zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) -> '[{"address":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","amount":1.79820000}]'
z_sendmany.() -> opid.(opid-22788581-5ec5-417e-bb43-fc973c5f0577)
got Ztx txid.c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35
1.79820000 PIRATE -> zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn, paymentid[0] 4250612448
iambob.1 (PIRATE/KMD) incomingfullypaid.({"origid":3331067616,"price":18,"openrequest":790819552,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"01ccbdb3d52502f8ad2c64d586cfa3ac4babd467bde4320c1ba065c0c31e0a1824","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","paid":"in full","bobpayment":"c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","tobob":1}) status.4
paidid.2591143840
iambob.1 (PIRATE/KMD) incomingclose.({"origid":3331067616,"price":18,"openrequest":790819552,"base":"PIRATE","basesatoshis":"179820000","basetxfee":"10000","maxbaseamount":"9000000000","rel":"KMD","relsatoshis":"10000000","reltxfee":"10000","maxrelamount":"500000000","alice":"01ccbdb3d52502f8ad2c64d586cfa3ac4babd467bde4320c1ba065c0c31e0a1824","bob":"01b977e90eba4e21ccaf432a7866e313682b51c350bd319c5ebbc76e176ecad44f","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","closed":3331067616,"bobpayment":"c5b20641d5d9f46069bf60de975e1fe6e180618b53bcb5b27feba71edd536a35","bobaddr":"RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB","aliceZaddr":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","tobob":1}) status.5
closedid.1947698304

KMD <> VRSC Subatomic OTC Swap Proof by SHossain#0007

Its the first KMD <> VRSC subatomic swap.

KMD sent txid: 7551acd4843346adc14461d2def46234b6421b36b69c8a29129cc2d273c3415a
VRSC received txid: 31be4b0f79dace2b68bfda0d68ce354a6242439af01f8b0809753583f1b75e3b

From Alice Node

time ./subatomic KMD "" 1103892448 0.05
subatomic_channel_alice KMD 1103892448 1103892448 with 0.05000000 5000000
initialized 16 messages, updated 54 out of total.54
rel.KMD openrequest 1103892448 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
1103892448 openrequest.3842045728 -> (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
start subatomic_loop iambob.0 VRSC -> KMD, 1103892448 5000000 3842045728
1103892448 iambob.0 (VRSC/KMD) channelapproved origid.1103892448 status.1
1103892448 approvalid.3360865568 (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
1103892448 iambob.0 (VRSC/KMD) incomingchannel status.2
sendtoaddress RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB 0.05000000 txid.(7551acd4843346adc14461d2def46234b6421b36b69c8a29129cc2d273c3415a)
got txid.7551acd4843346adc14461d2def46234b6421b36b69c8a29129cc2d273c3415a
1103892448: 0.05000000 KMD -> RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB, paymentid[0] 4061775392
1103892448 iambob.0 (VRSC/KMD) incomingpayment status.4
1103892448 alice waits for VRSC.31be4b0f79dace2b68bfda0d68ce354a6242439af01f8b0809753583f1b75e3b to be in mempool (0.04990000 -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp)
RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp received 0.04990000 vs 0.04990000
1103892448 SWAP COMPLETE <<<<<<<<<<<<<<<<
1103892448 paidid.356949696
1103892448 iambob.0 (VRSC/KMD) incomingfullypaid status.5
1103892448 closedid.2034083392
1103892448 iambob.0 (VRSC/KMD) incomingclose status.6
alice 1103892448 5000000 3842045728 finished

real    0m54.821s
user    0m0.815s
sys    0m0.418s

From Bob Node

1103892448 bob (VRSC/KMD) gotopenrequest origid.1103892448 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) SENDERPUB.(01f3500ac2446ba8113958447ce03767c9177e161a54015f42aaf67895ad3e816a)
1103892448 approvalid.2950258592 (01f3500ac2446ba8113958447ce03767c9177e161a54015f42aaf67895ad3e816a)
1103892448 iambob.1 (VRSC/KMD) channelapproved origid.1103892448 status.2
1103892448 openedid.1584389984
1103892448 iambob.1 (VRSC/KMD) incomingpayment status.3
1103892448 bob waits for KMD.7551acd4843346adc14461d2def46234b6421b36b69c8a29129cc2d273c3415a to be in mempool (0.05000000 -> RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB)
RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB received 0.05000000 vs 0.05000000
sendtoaddress RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp 0.04990000 txid.(31be4b0f79dace2b68bfda0d68ce354a6242439af01f8b0809753583f1b75e3b)
got txid.31be4b0f79dace2b68bfda0d68ce354a6242439af01f8b0809753583f1b75e3b
1103892448: 0.04990000 VRSC -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp, paymentid[0] 1522449568
1103892448 SWAP COMPLETE <<<<<<<<<<<<<<<<
1103892448 iambob.1 (VRSC/KMD) incomingfullypaid status.4
1103892448 paidid.867471296
1103892448 iambob.1 (VRSC/KMD) incomingclose status.5
1103892448 closedid.2493494592

PIRATE <> PIRATE Subatomic OTC Swap Proof by SHossain#0007 & CHMEX#0686

Its the first PIRATE <> PIRATE subatomic swap.

PIRATE sent txid: bb8c203311df63f677955eeab9273599d9de338728b2faa62cfecce5039e1e3f
PIRATE received txid: 11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2

From Alice Node

time ./subatomic PIRATE "" 4266314784 1
subatomic_channel_alice PIRATE 4266314784 4266314784 with 1.00000000 100000000
rel.PIRATE openrequest 4266314784 status.0 (RAbaJuSjVCAwuQriwVZe9ems2vaY2w9boV/zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t)
openrequest.444434976 -> (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
start subatomic_loop iambob.0 PIRATE -> PIRATE, 4266314784 100000000 444434976
iambob.0 (PIRATE/PIRATE) channelapproved.({"origid":4266314784,"price":1,"openrequest":0,"base":"PIRATE","basesatoshis":"99990000","basetxfee":"10000","maxbaseamount":"200000000","rel":"PIRATE","relsatoshis":"100000000","reltxfee":"10000","maxrelamount":"200000000","alice":"","alicesecp":"","bob":"0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e","bobsecp":"02c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","bobZaddr":"","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","approval":"3432363633313437383420","tobob":0}) origid.4266314784 status.1
approvalid.3544222688 (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
iambob.0 (PIRATE/PIRATE) incomingchannel.({"origid":4266314784,"price":1,"openrequest":0,"base":"PIRATE","basesatoshis":"99990000","basetxfee":"10000","maxbaseamount":"200000000","rel":"PIRATE","relsatoshis":"100000000","reltxfee":"10000","maxrelamount":"200000000","alice":"","alicesecp":"","bob":"0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e","bobsecp":"02c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","approval":"3432363633313437383420","bobZaddr":"","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","opened":"68ad53b28021850de02f6ec5f072447b81a6d21b2f562fe47e43273bdd61fa45","tobob":0}) status.2
z_sendmany.( PIRATE) from.(zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t) -> '[{"address":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","amount":1.00000000}]'
z_sendmany.() -> opid.(opid-92d10e59-06d9-4fe8-9f76-05389b65de17)
got Ztx txid.bb8c203311df63f677955eeab9273599d9de338728b2faa62cfecce5039e1e3f
1.00000000 PIRATE -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0, paymentid[0] 489623552
iambob.0 (PIRATE/PIRATE) incomingpayment.({"origid":4266314784,"price":1,"openrequest":0,"base":"PIRATE","basesatoshis":"99990000","basetxfee":"10000","maxbaseamount":"200000000","rel":"PIRATE","relsatoshis":"100000000","reltxfee":"10000","maxrelamount":"200000000","alice":"","alicesecp":"","bob":"0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e","bobsecp":"02c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","bobpays":"99990000","alicedestaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","bobpayment":"11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2","tobob":0}) status.4
alice waits for PIRATE.11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2 to be in mempool
got TX.({"hex":"0400008085202f89000000000000458f0b001027000000000000015889d47de7bb827d7069829e37f665a9627a2656601241b7428105060e087357ff30784362752131f0ee8c595016e893c1482239d11e53ac74c43170474f9e0e132c8fcd60c504284384f5fd5e1a1a64adf5bf83ac3a6266e76c352518d0d5c3a4a1deaefed327a925a4cd5fdc9b5a3ab19f2e141ddf7a86ff9f5b786bfe49608064a462b466b944b3917002ca585b1028995550a23909f901395a95e4ece537efdd56fecfa2bdb5a360eb0f4de0279e88cab7f91a141654cd4bea5cfb25070b681a2edc739dad4aee58f15acd3b7dae492324ec7cbbc1a3fc416f441a4bc67501c00e90411c37289802c3cd29dec1afccc77051bea4ee7af5cbdd4ae2cf54fcb8b1e3cbe0ed7596bccd78eeba82fe75b675f2b157ce24f89f8c1437a0f5486496684f14bd58b5ad6cbdce5c25618c8bc62c470321d19635b5582f2cc8cc3b1fb01bfae14fd0e0e5174ea5d90049f984bcce4a4f0c56ed7173df5e4f0f243139928eb8b90deadd5c284778f0e7b9a12da31ca57d8f589257fb9c18c9642f8d0802376bcc70de92686f65ef65df7e605a02245c904ff5833148ae3e41581b3cbf34477c0ddc9b3e28ad3ef18c0e95079e68660bc67cf0c3af87f252e04c5f10d21660e53b38e30a8e03782ed1fd472c5ef67297271bd2905802f2562bd7716fa7a93f359bbce0f46c1ac0a6ff2d8ad723eb8164404029a5c46330d19be4088c17b312c2fb9aa74a1e1fdc11bcc040e25c256e5f79aafcda810e5d5c44643c6348ac361667e1053f62709cee5562f52ac5286762f3c8473b5677e6843a089f3c8f1bb3c5e08a8ef96c89bc5071661e3dc2fd0d41f6f04e18f6a0671330f73f4c41258a92eacb30087f93ed3d925116fa5640b168e461580d46b79432d5323c175757851c6bbf2869b24aeda5f9e2cbc288765fe4beb567f087f06960108544d922a8ab520c102925f1aef0bad664926dd5d937d59d966f85d24e74f56b0aa28f12f66a612029bd7d431a230bf0113a53ded4fbe64e6d04686295e5fe12faa341a2e8fe6e399bba8e527f34d6a8e0e5900b307b703e12af88cd57e1ff6b8ff94784e51a2758f117324952c856ce037d9960977823b8dd895de70ae1f4df3290c286d1a1e2a39c51abbba17ba2c328cae87de058e4c848fab75a2535147b5d31202ac9d48406884c5cf45c276011e9b9d88c0ad54e14dcdb149de4eee04a691aa9fd241a1d1f384c36cb58933f1564d67674884b4eab90923f3f438f35870f9a9b239a2113be827d5639c4998324bd6148561efcc971860137333d9dec002aec0511d2f5403481f5f06202cce137dcde402b80ab8bf7ff80711136a2a6bbbf844c5b1209ee71ca9887d347fc7177580812cd26acb008547aab57a6fb6e1f41455e7d354fe252c1bb71415d054bbcc36189ad63309f7879d590cf5cc7fd0a664a67d48a2ea16f14743c084f3413444826ff7448b4cb24527071fbbbd05f04219caf86a2ba2c9560e8024303627198136798012288eaf68750afd745692e0d97d84dff5b4fce2e64c735e58e89274f7894d5243fb336eb975db2d2c39be7cc3a2a54e6557dfadb195bfa7337bc4b15bde860e4cfa2068a82b0ae71128196c2cfd8aa8e1db44e78eb3270f047822eaac40f55997df5e0e932944cffa40d2b4a19f561e7a0e940871eab7eb21cce45e95cbc332b1fc182b197693b8388fddbc2955cda1dad92de9a6d5538c4fbc3d97c57d1912c53e30e420c128ad75a1b02e7cec4e3e27f11df6995d83c854681c1a1f690d927acd9014a33aeeff4c0123cdb81115c954e1a4982c595b2d35614a30e5e42cf90160e31852de91bf9bd29569526edf59d9c3f8b85bf756173893c2c96105c088845890ce1e1c1966c575dfb757c79213d90878c50b0e0e12d739646513bddf0db4c43bf9ccced2ecd484463e8407e84b915d64c911dcb118cebf1d6e38203812942c685ee5cdc74415505da968a17c7d7d0a9d6a92293a687293c8f0246a7b350e04be704cc4190d61ace88ca6e4dba8afda9f6a8058684e0a87f808e6fb684ace5cfc0bf5f841f3716b4778ffd186341ae65bd597734e68d1054f3254986f0c6cc210f35d4d01fbc95083245a9a2702d0e497949c354dff428f82325d84b75672128aaf0a83b52076e33cd42eeb8f329d4ee67fe446c312346379c57136aa26f214e5020c47f36be2b3ad255ed07754f87e8b9b725ed3607366e484cc38839ad0e0ec2dae039fcd6bfcd31d4024324446c08e9d450ad91aab17b4173f37e9dbfc272ad9fc6241cb39fc0a44ec83f69381ce7fc6045f3670ee7f2dd14672ef60f0512fca332cfcffef67ac8c7b8dc420f58921956b020e2bc5f878a4f5b00f1539ff6a37fc7d45d830a6569a5e7687e4b1913d22cab53e25aa8bf61d0e01172dd911549ea4dcdb537c8e70601114eca1306d6a4f337cc602d9dbe118a7f790434d9872c5a8d4477333a0f20cf0654db66944de89166a868494144ddeedcdc57a784db9fbf004a369f77325d9ce9a8d91c117cbd994a00c6e0258917437ef7d0e070149de3c8e423a49f9a10160491bb4d60856f6c2e2e5f9484f195062082eaac504d054f7c6206602071c7fd46b134a630f3844d8d77fa3d360b164e398f1ba82a032a3e4366be98c582653b93b49c8c34c26fb62d997fd5b60faf7b005237a75c7edaeff497fa5b5d25740158aac89393bd8b69ee02ac9cc85dd38578120a7882fad04a50f0dabc86e9fe0d91da0a056d42830e6b1736b412d7f7fe5e319fd380afa8c6dc4f44ff743f29b46ce749cf2fd5d698cfbf644f9fc206380c703c9fdd43761e67541ca784bd4990010df394ebe356f3a7a644e4e1eb174ca90ec164214cb7f22067ba91cb064c3bb1a33f7e550393a74d6cd1ebb75bc07ab5899cb728ef578acd9cc26f0262582a48d9ca7e0155752cc4492afa5aaaadcff2a7c648a392961757be79481576656d4fae12791ba15a1a704f634e8f070bc0eee7d3491e1e638b8c5ac15401abf3d0845450b5c4429e7c64fdecb421d8d23bcf73fe3d4b38e45316f99dde3cb521699d5e9844d8f957d8530425e9510d30ff1c5eb59ce01641128efc74908e878a35c9f8e5f73885d28ae693cd7033d06d0c626e0b3b08715cd0ad8c855d16b2dd485054e48b5ae530446a2646ff1f0fb1288b8cf8bbe3fe2fa38ff23f44822e625195cea8b32eadc00ddee043ec84003210f72bf2323105a05d4f195a19f41cae764d7db74ec71993c4afc2d9244cebf6b446a5b814aa029fd331e019725d68646ea0f9ca7b606883e2fa942d55fb00","txid":"11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2","overwintered":true,"version":4,"last_notarized_height":757364,"versiongroupid":"892f2085","locktime":0,"expiryheight":757573,"vin":[],"vout":[],"vjoinsplit":[],"valueBalance":0.00010000,"vShieldedSpend":[{"cv":"5773080e06058142b741126056267a62a965f6379e8269707d82bbe77dd48958","anchor":"0e9e4f477031c474ac531ed1392248c193e81650598ceef031217562437830ff","nullifier":"c3d5d01825356ce766623aac83bff5ad641a1a5efdf584432804c560cd8f2c13","rk":"6049fe6b785b9fff867adf1d142e9fb13a5a9bdc5fcda425a927d3feaedea1a4","proof":"8064a462b466b944b3917002ca585b1028995550a23909f901395a95e4ece537efdd56fecfa2bdb5a360eb0f4de0279e88cab7f91a141654cd4bea5cfb25070b681a2edc739dad4aee58f15acd3b7dae492324ec7cbbc1a3fc416f441a4bc67501c00e90411c37289802c3cd29dec1afccc77051bea4ee7af5cbdd4ae2cf54fcb8b1e3cbe0ed7596bccd78eeba82fe75b675f2b157ce24f89f8c1437a0f5486496684f14bd58b5ad6cbdce5c25618c8bc62c470321d19635b5582f2cc8cc3b1f","spendAuthSig":"b01bfae14fd0e0e5174ea5d90049f984bcce4a4f0c56ed7173df5e4f0f243139928eb8b90deadd5c284778f0e7b9a12da31ca57d8f589257fb9c18c9642f8d08"}],"vShieldedOutput":[{"cv":"34bf3c1b58413eae483183f54f905c24025a607edf65ef656f6892de70cc6b37","cmu":"16d2105f4ce052f287afc3f07cc60b66689e07950e8cf13ead283e9bdc0d7c47","ephemeralKey":"a9a76f71d72b56f2025890d21b279772f65e2c47fdd12e78038e0ae3383be560","encCiphertext":"3f359bbce0f46c1ac0a6ff2d8ad723eb8164404029a5c46330d19be4088c17b312c2fb9aa74a1e1fdc11bcc040e25c256e5f79aafcda810e5d5c44643c6348ac361667e1053f62709cee5562f52ac5286762f3c8473b5677e6843a089f3c8f1bb3c5e08a8ef96c89bc5071661e3dc2fd0d41f6f04e18f6a0671330f73f4c41258a92eacb30087f93ed3d925116fa5640b168e461580d46b79432d5323c175757851c6bbf2869b24aeda5f9e2cbc288765fe4beb567f087f06960108544d922a8ab520c102925f1aef0bad664926dd5d937d59d966f85d24e74f56b0aa28f12f66a612029bd7d431a230bf0113a53ded4fbe64e6d04686295e5fe12faa341a2e8fe6e399bba8e527f34d6a8e0e5900b307b703e12af88cd57e1ff6b8ff94784e51a2758f117324952c856ce037d9960977823b8dd895de70ae1f4df3290c286d1a1e2a39c51abbba17ba2c328cae87de058e4c848fab75a2535147b5d31202ac9d48406884c5cf45c276011e9b9d88c0ad54e14dcdb149de4eee04a691aa9fd241a1d1f384c36cb58933f1564d67674884b4eab90923f3f438f35870f9a9b239a2113be827d5639c4998324bd6148561efcc971860137333d9dec002aec0511d2f5403481f5f06202cce137dcde402b80ab8bf7ff80711136a2a6bbbf844c5b1209ee71ca9887d347fc7177580812cd26acb008547aab57a6fb6e1f41455e7d354fe252c1bb71415d054bbcc36189ad63309f7879d590cf5cc7fd0a664a67d48a2ea16f14743c084f3413444826ff7448b4cb24527071fbbbd05f04219caf86a2ba2c9560","outCiphertext":"e8024303627198136798012288eaf68750afd745692e0d97d84dff5b4fce2e64c735e58e89274f7894d5243fb336eb975db2d2c39be7cc3a2a54e6557dfadb195bfa7337bc4b15bde860e4cfa2068a82","proof":"b0ae71128196c2cfd8aa8e1db44e78eb3270f047822eaac40f55997df5e0e932944cffa40d2b4a19f561e7a0e940871eab7eb21cce45e95cbc332b1fc182b197693b8388fddbc2955cda1dad92de9a6d5538c4fbc3d97c57d1912c53e30e420c128ad75a1b02e7cec4e3e27f11df6995d83c854681c1a1f690d927acd9014a33aeeff4c0123cdb81115c954e1a4982c595b2d35614a30e5e42cf90160e31852de91bf9bd29569526edf59d9c3f8b85bf756173893c2c96105c088845890ce1e1"}, {"cv":"cc9cbf434cdbf0dd3b514696732de1e0b0508c87903d21797c75fb5d576c96c1","cmu":"5cee85c64229810382e3d6f1eb8c11cb1d914cd615b9847e40e8634448cd2eed","ephemeralKey":"cc04e74be050b3a746028f3c2987a69322a9d6a9d0d7c7178a96da05554174dc","encCiphertext":"4190d61ace88ca6e4dba8afda9f6a8058684e0a87f808e6fb684ace5cfc0bf5f841f3716b4778ffd186341ae65bd597734e68d1054f3254986f0c6cc210f35d4d01fbc95083245a9a2702d0e497949c354dff428f82325d84b75672128aaf0a83b52076e33cd42eeb8f329d4ee67fe446c312346379c57136aa26f214e5020c47f36be2b3ad255ed07754f87e8b9b725ed3607366e484cc38839ad0e0ec2dae039fcd6bfcd31d4024324446c08e9d450ad91aab17b4173f37e9dbfc272ad9fc6241cb39fc0a44ec83f69381ce7fc6045f3670ee7f2dd14672ef60f0512fca332cfcffef67ac8c7b8dc420f58921956b020e2bc5f878a4f5b00f1539ff6a37fc7d45d830a6569a5e7687e4b1913d22cab53e25aa8bf61d0e01172dd911549ea4dcdb537c8e70601114eca1306d6a4f337cc602d9dbe118a7f790434d9872c5a8d4477333a0f20cf0654db66944de89166a868494144ddeedcdc57a784db9fbf004a369f77325d9ce9a8d91c117cbd994a00c6e0258917437ef7d0e070149de3c8e423a49f9a10160491bb4d60856f6c2e2e5f9484f195062082eaac504d054f7c6206602071c7fd46b134a630f3844d8d77fa3d360b164e398f1ba82a032a3e4366be98c582653b93b49c8c34c26fb62d997fd5b60faf7b005237a75c7edaeff497fa5b5d25740158aac89393bd8b69ee02ac9cc85dd38578120a7882fad04a50f0dabc86e9fe0d91da0a056d42830e6b1736b412d7f7fe5e319fd380afa8c6dc4f44ff743f29b46ce749cf2fd5d698cfbf644f9fc206380c703c9fdd43761e67541ca784","outCiphertext":"bd4990010df394ebe356f3a7a644e4e1eb174ca90ec164214cb7f22067ba91cb064c3bb1a33f7e550393a74d6cd1ebb75bc07ab5899cb728ef578acd9cc26f0262582a48d9ca7e0155752cc4492afa5a","proof":"aaadcff2a7c648a392961757be79481576656d4fae12791ba15a1a704f634e8f070bc0eee7d3491e1e638b8c5ac15401abf3d0845450b5c4429e7c64fdecb421d8d23bcf73fe3d4b38e45316f99dde3cb521699d5e9844d8f957d8530425e9510d30ff1c5eb59ce01641128efc74908e878a35c9f8e5f73885d28ae693cd7033d06d0c626e0b3b08715cd0ad8c855d16b2dd485054e48b5ae530446a2646ff1f0fb1288b8cf8bbe3fe2fa38ff23f44822e625195cea8b32eadc00ddee043ec84"}],"bindingSig":"3210f72bf2323105a05d4f195a19f41cae764d7db74ec71993c4afc2d9244cebf6b446a5b814aa029fd331e019725d68646ea0f9ca7b606883e2fa942d55fb00"})
paidid.830493024
iambob.0 (PIRATE/PIRATE) incomingfullypaid.({"origid":4266314784,"price":1,"openrequest":0,"base":"PIRATE","basesatoshis":"99990000","basetxfee":"10000","maxbaseamount":"200000000","rel":"PIRATE","relsatoshis":"100000000","reltxfee":"10000","maxrelamount":"200000000","alice":"","alicesecp":"","bob":"0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e","bobsecp":"02c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","paid":"in full","bobpayment":"11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","tobob":0}) status.5
closedid.2920806336
iambob.0 (PIRATE/PIRATE) incomingclose.({"origid":4266314784,"price":1,"openrequest":0,"base":"PIRATE","basesatoshis":"99990000","basetxfee":"10000","maxbaseamount":"200000000","rel":"PIRATE","relsatoshis":"100000000","reltxfee":"10000","maxrelamount":"200000000","alice":"","alicesecp":"","bob":"0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e","bobsecp":"02c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","closed":4266314784,"bobpayment":"11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2","bobZaddr":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","aliceZaddr":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","tobob":0}) status.6
alice 4266314784 100000000 444434976 finished

From Bob Node

./subatomic PIRATE "" PIRATE
start subatomic_loop iambob.1 PIRATE -> PIRATE, 0 0 0
initialized 25 messages, updated 90 out of total.90
4266314784 bob (PIRATE/PIRATE) gotopenrequest origid.4266314784 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) SENDERPUB.(01af3dd816abdf2499d37177a49987e9b9ac2a24965e3622f086fb954517ff1928)
error code: -1
error message:
 Invalid public key: 
4266314784 approvalid.2505557920 (01af3dd816abdf2499d37177a49987e9b9ac2a24965e3622f086fb954517ff1928)
4266314784 iambob.1 (PIRATE/PIRATE) channelapproved origid.4266314784 status.2
4266314784 openedid.4022227616
4266314784 iambob.1 (PIRATE/PIRATE) incomingpayment status.3
4266314784 bob waits for PIRATE.bb8c203311df63f677955eeab9273599d9de338728b2faa62cfecce5039e1e3f to be in mempool (1.00000000 -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0)
zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 received 1.00000000 vs 1.00000000
z_sendmany.( PIRATE) from.(zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) -> '[{"address":"zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t","amount":0.99990000,"memo":"3432363633313437383420"}]'
z_sendmany.() -> opid.(opid-a6b6806f-ffcf-40fa-9907-fc56660f4c45)
got Ztx txid.11e54f7d0622aabe33fe847d966dec96e6e2f004f5bdf7a360686721bd7d20f2
4266314784: 0.99990000 PIRATE -> zs12m6l9g2kmplkl459cuayzszls5fkalhqrhttqyvpsp2z5ew60ypdlsptqs3x907qgd2jsftly9t, paymentid[0] 1050667744
4266314784 SWAP COMPLETE <<<<<<<<<<<<<<<<
4266314784 iambob.1 (PIRATE/PIRATE) incomingfullypaid status.4
4266314784 paidid.4094230848
4266314784 iambob.1 (PIRATE/PIRATE) incomingclose status.5
4266314784 closedid.2158101216

KMD <> HUSH3 Subatomic OTC Swap Proof by SHossain#0007

Its the first HUSH3 subatomic swap.

KMD sent txid: b844b2da1928d5a831dda66f101ebab406a813a5171b693e4d0cb87187b9eb76
HUSH3 received txid: f8baeb97cec0a3ec8184574df9b0190311688e5fd1894b2cc6f2d773be0629a0

From Alice Node

time ./subatomic KMD "" 3968938656 0.05
subatomic_channel_alice KMD 3968938656 3968938656 with 0.05000000 5000000
initialized 17 messages, updated 59 out of total.59
rel.KMD openrequest 3968938656 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
3968938656 openrequest.319645472 -> (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
start subatomic_loop iambob.0 HUSH3 -> KMD, 3968938656 5000000 319645472
3968938656 iambob.0 (HUSH3/KMD) channelapproved origid.3968938656 status.1
3968938656 approvalid.2945741728 (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
3968938656 iambob.0 (HUSH3/KMD) incomingchannel status.2
sendtoaddress RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB 0.05000000 txid.(b844b2da1928d5a831dda66f101ebab406a813a5171b693e4d0cb87187b9eb76)
got txid.b844b2da1928d5a831dda66f101ebab406a813a5171b693e4d0cb87187b9eb76
3968938656: 0.05000000 KMD -> RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB, paymentid[0] 1021968192
3968938656 iambob.0 (HUSH3/KMD) incomingpayment status.4
3968938656 alice waits for HUSH3.f8baeb97cec0a3ec8184574df9b0190311688e5fd1894b2cc6f2d773be0629a0 to be in mempool (0.09980000 -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp)
RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp received 0.09980000 vs 0.09980000
3968938656 SWAP COMPLETE <<<<<<<<<<<<<<<<
3968938656 paidid.1794930368
3968938656 iambob.0 (HUSH3/KMD) incomingfullypaid status.5
3968938656 closedid.605942144
3968938656 iambob.0 (HUSH3/KMD) incomingclose status.6
alice 3968938656 5000000 319645472 finished

real    0m40.228s
user    0m0.687s
sys    0m0.223s

From Bob Node

./subatomic KMD "" HUSH3
start subatomic_loop iambob.1 HUSH3 -> KMD, 0 0 0
initialized 18 messages, updated 65 out of total.65
3968938656 bob (HUSH3/KMD) gotopenrequest origid.3968938656 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) SENDERPUB.(01f3500ac2446ba8113958447ce03767c9177e161a54015f42aaf67895ad3e816a)
3968938656 approvalid.3534731840 (01f3500ac2446ba8113958447ce03767c9177e161a54015f42aaf67895ad3e816a)
3968938656 iambob.1 (HUSH3/KMD) channelapproved origid.3968938656 status.2
3968938656 openedid.368365344
3968938656 iambob.1 (HUSH3/KMD) incomingpayment status.3
3968938656 bob waits for KMD.b844b2da1928d5a831dda66f101ebab406a813a5171b693e4d0cb87187b9eb76 to be in mempool (0.05000000 -> RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB)
RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB received 0.05000000 vs 0.05000000
sendtoaddress RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp 0.09980000 txid.(f8baeb97cec0a3ec8184574df9b0190311688e5fd1894b2cc6f2d773be0629a0)
got txid.f8baeb97cec0a3ec8184574df9b0190311688e5fd1894b2cc6f2d773be0629a0
3968938656: 0.09980000 HUSH3 -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp, paymentid[0] 1616512544
3968938656 SWAP COMPLETE <<<<<<<<<<<<<<<<
3968938656 iambob.1 (HUSH3/KMD) incomingfullypaid status.4
3968938656 paidid.997834176
3968938656 iambob.1 (HUSH3/KMD) incomingclose status.5
3968938656 closedid.3220515136

PIRATE <> RICK.demo Token Subatomic OTC Swap Proof by SHossain#0007

PIRATE sent txid: 17f9be0980dfe995f7d23369a6b58d848ae510451900572db3f486d1efbe2df1
RICK.demo Token received txid: 029bf721d2666f2e8a92b8bfb950143559986325a3e378a332bdccf1f6abdb5b

From Alice Node

time ./subatomic PIRATE "" 4200108192 1
subatomic_channel_alice PIRATE 4200108192 4200108192 with 1.00000000 100000000
initialized 27 messages, updated 85 out of total.85
rel.PIRATE  openrequest 4200108192 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
4200108192 openrequest.3380163680 -> (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
start subatomic_loop iambob.0 RICK -> PIRATE, 4200108192 100000000 3380163680
4200108192 iambob.0 (RICK/PIRATE) channelapproved origid.4200108192 status.1
4200108192 approvalid.925452640 (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
4200108192 iambob.0 (RICK/PIRATE) incomingchannel status.2
z_sendmany.( PIRATE) from.(zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn) -> '[{"address":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","amount":1.00000000,"memo":"3432303031303831393220"}]'
z_sendmany.() -> opid.(opid-7e6d6ec8-6dc4-4a4f-bc1d-f0854969fd75)
got Ztx txid.17f9be0980dfe995f7d23369a6b58d848ae510451900572db3f486d1efbe2df1
4200108192: 1.00000000 PIRATE -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0, paymentid[0] 523948608
4200108192 iambob.0 (RICK/PIRATE) incomingpayment status.4
4200108192 alice waits for RICK.029bf721d2666f2e8a92b8bfb950143559986325a3e378a332bdccf1f6abdb5b to be in mempool (1.00000000 -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp)
validated it is a token transfer!
RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp received 1.00000000 vs 1.00000000
4200108192 SWAP COMPLETE <<<<<<<<<<<<<<<<
4200108192 paidid.2923416992
4200108192 iambob.0 (RICK/PIRATE) incomingfullypaid status.5
4200108192 closedid.1122185664
4200108192 iambob.0 (RICK/PIRATE) incomingclose status.6
alice 4200108192 100000000 3380163680 finished

real    0m24.270s
user    0m0.461s
sys    0m0.218s

From Bob Node

4200108192 got open request
token balance 2b1feef719ecb526b07416dd432bce603ac6dc8bfe794cddf105cb52f6aae3cd
tokenbalance 100000
4200108192 bob (RICK/PIRATE) gotopenrequest origid.4200108192 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) SENDERPUB.(0164379df122a6b5ab3609a20ec847c96c7746bdb196f439f592182f490382a141)
4200108192 approvalid.3613637344 (0164379df122a6b5ab3609a20ec847c96c7746bdb196f439f592182f490382a141)
4200108192 iambob.1 (RICK/PIRATE) channelapproved origid.4200108192 status.2
4200108192 openedid.3538763328
4200108192 iambob.1 (RICK/PIRATE) incomingpayment status.3
4200108192 bob waits for PIRATE.17f9be0980dfe995f7d23369a6b58d848ae510451900572db3f486d1efbe2df1 to be in mempool (1.00000000 -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0)
zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 received 1.00000000 vs 1.00000000
broadcast RICK txid.(029bf721d2666f2e8a92b8bfb950143559986325a3e378a332bdccf1f6abdb5b)
tokentransfer returned ({"result":"success","hex":"0400008085202f8902a5849f751fbf608d70f025cffd60d59a7ee37424c5ac3adb308a6580bdbf58fe000000004847304402200697dfe692e37341ecfb368631c864be74b437cbec2009411ca8185539341e3c022074731ed00261562b750bbf922e1dcfaee0ca5aa7fcb6eede8113c756ea5c964101ffffffff8a411c9d4e2b9d47bc562baab95d0e503581f74405474b27aac7aa1ac255dd8d000000007b4c79a276a072a26ba067a565802102c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220814047074a25c5e4f6de238c862fb41e134bab6d100a73f67d7b26c3ee769e9fbfab2b5927c2fd7f276b600faa8854c1e624129b9ad196f15f6f9690988347ae1460a100af038001f2a10001ffffffff040100000000000000302ea22c8020c37edbe128f8cb845a3d66ff6936609ecbbc457849d42af414255fafb67997458103120c008203000401cc9f86010000000000302ea22c802042eef1960839b872cfe4529f303f4b5b647211a5bfefc05e58f20b9fb8384d958103120c008203000401ccb8e3530100000000232102c3af47b51a506b08b4ededb156cb4c3f9db9e0ac7ad27b8623c08a056fdcc220ac0000000000000000476a45f2742b1feef719ecb526b07416dd432bce603ac6dc8bfe794cddf105cb52f6aae3cd0121038e61fbface549a850862f12ed99b7cbeef5c2bd2d8f1daddb34809416f0259e100000000bf5404000000000000000000000000"})
got txid.029bf721d2666f2e8a92b8bfb950143559986325a3e378a332bdccf1f6abdb5b
4200108192: 1.00000000 RICK -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp, paymentid[0] 2437911136
4200108192 SWAP COMPLETE <<<<<<<<<<<<<<<<
4200108192 iambob.1 (RICK/PIRATE) incomingfullypaid status.4
4200108192 paidid.1290958880
4200108192 iambob.1 (RICK/PIRATE) incomingclose status.5
4200108192 closedid.4001898720

KMD <> CHIPS Subatomic OTC Swap Proof by NutellaLicka#4241 & SHossain#0007

KMD sent txid: https://kmdexplorer.io/tx/a0632693a8da82f7439f81abba58c1445f874b9d1089948c33a8af948d1a8bd4
CHIPS received txid: https://explorer.chips.cash/tx/333ae64fb230b8547bf20be5631061a681be90dd14daded67c3a6ebe8d986ba4

From Alice Node SHossain#0007

./subatomic KMD "" 1329994848 0.01
subatomic_channel_alice (KMD/KMD) 1329994848 1329994848 with 0.01000000 1000000
initialized 39 messages, updated 129 out of total.129
rel.KMD/KMD  openrequest 1329994848 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
1329994848 openrequest.1865814848 -> (0109cdadf0f1722e0c8acd9eb5244b81f5e5bc3bf22e4a18435d1ec1408811040d)
start subatomic_loop iambob.0 CHIPS -> KMD, 1329994848 1000000 1865814848
1329994848 iambob.0 (CHIPS/KMD) channelapproved origid.1329994848 status.1
1329994848 approvalid.674361568 (0109cdadf0f1722e0c8acd9eb5244b81f5e5bc3bf22e4a18435d1ec1408811040d)
1329994848 iambob.0 (CHIPS/KMD) incomingchannel status.2
sendtoaddress REraByiR9Mzf2kAD77AoeuZtN4xL98e8va 0.01000000 txid.(a0632693a8da82f7439f81abba58c1445f874b9d1089948c33a8af948d1a8bd4)
1329994848 got txid.a0632693a8da82f7439f81abba58c1445f874b9d1089948c33a8af948d1a8bd4
1329994848: 0.01000000 KMD -> REraByiR9Mzf2kAD77AoeuZtN4xL98e8va, paymentid[0] 1064777856
1329994848 iambob.0 (CHIPS/KMD) incomingpayment status.4
1329994848 alice waits for CHIPS.333ae64fb230b8547bf20be5631061a681be90dd14daded67c3a6ebe8d986ba4 to be in mempool (0.00100000 -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp)
RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp received 0.00100000 vs 0.00100000
1329994848 SWAP COMPLETE <<<<<<<<<<<<<<<<
dpow_broadcast.(completed/a0632693a8da82f7439f81abba58c1445f874b9d1089948c33a8af948d1a8bd4) [ ] a0632693a8da82f7439f81abba58c1445f874b9d1089948c33a8af948d1a8bd4 error.(-1)
1329994848 paidid.2958660288
1329994848 iambob.0 (CHIPS/KMD) incomingfullypaid status.5
1329994848 closedid.1338591200
1329994848 iambob.0 (CHIPS/KMD) incomingclose status.6
alice 1329994848 1000000 1865814848 finished

From Bob Node NutellaLicka#4241

./subatomic KMD "" CHIPS 
start subatomic_loop iambob.1 CHIPS -> KMD, 0 0 0
1329994848 got open request
1329994848 bob (CHIPS/KMD) gotopenrequest origid.1329994848 status.0 (REraByiR9Mzf2kAD77Aoeu$
1329994848 approvalid.1920452576 (017c42f2132af5dfad67f87d78f16d448b746d1f3b58b303366d2c1af0$
1329994848 iambob.1 (CHIPS/KMD) channelapproved origid.1329994848 status.2
1329994848 openedid.4174087296
1329994848 iambob.1 (CHIPS/KMD) incomingpayment status.3
1329994848 bob waits for KMD.a0632693a8da82f7439f81abba58c1445f874b9d1089948c33a8af948d1a8bd$
REraByiR9Mzf2kAD77AoeuZtN4xL98e8va received 0.01000000 vs 0.01000000
_subatomic_sendtoaddress RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp 0.00100000 txid.(333ae64fb230b8547bf20be5631061a681be90dd14daded67c3a6ebe8d986ba4)
1329994848 got txid.333ae64fb230b8547bf20be5631061a681be90dd14daded67c3a6ebe8d986ba4
1329994848: 0.00100000 CHIPS -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp, paymentid[0] 2216953440
dpow_broadcast.(completed/333ae64fb230b8547bf20be5631061a681be90dd14daded67c3a6ebe8d986ba4) [ ] 333ae64fb230b8547bf20be5631061a681be90dd14daded67c3a6ebe8d986ba4 error.(-1)
1329994848 SWAP COMPLETE <<<<<<<<<<<<<<<<
1329994848 iambob.1 (CHIPS/KMD) incomingfullypaid status.4
1329994848 paidid.3174583616
1329994848 iambob.1 (CHIPS/KMD) incomingclose status.5
1329994848 closedid.1507975360

PIRATE <> zVRSC Subatomic OTC Swap Proof by SHossain#0007

Its the first PIRATE <> VRSC subatomic swap using private address on both sides.

Pirate Sent txid: https://explorer.pirate.black/tx/e1467e2277d034f42f0d5448bfc8907b80acfe2b3b87e77fe940c92aa8bf91be
Verus Received txid: https://vrsc.explorer.dexstats.info/tx/01091ed90fbf8309cecbce3dfab0e3db18c0f6e09d7ecf57309490fce940af19

From Alice Node

./subatomic PIRATE "" 2862946912 0.1
subatomic_channel_alice (PIRATE/PIRATE) 2862946912 2862946912 with 0.10000000 10000000
initialized 89 messages, updated 312 out of total.312
rel.PIRATE/PIRATE  openrequest 2862946912 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
2862946912 openrequest.1675264448 -> (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
start subatomic_loop iambob.0 zVRSC -> PIRATE, 2862946912 10000000 1675264448
2862946912 iambob.0 (zVRSC/PIRATE) channelapproved origid.2862946912 status.1
2862946912 approvalid.657978208 (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
2862946912 iambob.0 (zVRSC/PIRATE) incomingchannel status.2
z_sendmany.( PIRATE) from.(zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn) -> '[{"address":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","amount":0.10000000,"memo":"3238363239343639313220"}]'
z_sendmany.() -> opid.(opid-f0facf8d-429c-4b03-ae37-31e1aa040694)
2862946912: 0.10000000 PIRATE -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0, paymentid[0] 1496598528
2862946912 iambob.0 (zVRSC/PIRATE) incomingpayment status.4
2862946912 alice waits for zVRSC.01091ed90fbf8309cecbce3dfab0e3db18c0f6e09d7ecf57309490fce940af19 to be in mempool (0.03333333 -> zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn received 0.03333333 vs 0.03333333
2862946912 SWAP COMPLETE <<<<<<<<<<<<<<<<
2862946912 paidid.2675000384
2862946912 iambob.0 (zVRSC/PIRATE) incomingfullypaid status.5
2862946912 closedid.2384031296
2862946912 iambob.0 (/PIRATE) incomingclose status.6
alice 2862946912 10000000 1675264448 finished

From Bob Node

2862946912 got open request
2862946912 bob (zVRSC/PIRATE) gotopenrequest origid.2862946912 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) SENDERPUB.(0160e93c82dd76fb06dc391fc46a729cae7f17af93e1ad4d761c15c3546543e57b)
2862946912 approvalid.1357246144 (0160e93c82dd76fb06dc391fc46a729cae7f17af93e1ad4d761c15c3546543e57b)
2862946912 iambob.1 (zVRSC/PIRATE) channelapproved origid.2862946912 status.2
2862946912 openedid.2176924704
2862946912 iambob.1 (zVRSC/PIRATE) incomingpayment status.3
2862946912 bob waits for PIRATE.e1467e2277d034f42f0d5448bfc8907b80acfe2b3b87e77fe940c92aa8bf91be to be in mempool (0.10000000 -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0)
zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 received 0.10000000 vs 0.10000000
z_sendmany.( VRSC) from.(zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) -> '[{"address":"zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn","amount":0.03333333,"memo":"3238363239343639313220"}]'
z_sendmany.() -> opid.(opid-fd1d3975-6d41-4c72-ac3e-063a27178097)
2862946912: 0.03333333 zVRSC -> zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn, paymentid[0] 2467845696
dpow_broadcast.(completed/01091ed90fbf8309cecbce3dfab0e3db18c0f6e09d7ecf57309490fce940af19) [ ] 01091ed90fbf8309cecbce3dfab0e3db18c0f6e09d7ecf57309490fce940af19 error.(-1)
2862946912 SWAP COMPLETE <<<<<<<<<<<<<<<<
broadcast b895261300000000000000000000000000000000000000000000000000000000 komodod (PIRATE 1.00000000)
2862946912 iambob.1 (zVRSC/PIRATE) incomingfullypaid status.4
2862946912 paidid.2141174880
2862946912 iambob.1 (zVRSC/PIRATE) incomingclose status.5
2862946912 closedid.492378208

MCL <> PIRATE Subatomic OTC Swap Proof by SHossain#0007

Its the first MCL <> PIRATE subatomic swap.

PIRATE sent txid: https://explorer.pirate.black/tx/4e0844701de644c260c0c330524c17288ec1762130a843bbd52fbcd521c96af0
MCL received txid: http://explorer.marmara.io/tx/3ea297a47c0836450be9ccbd8ecdea36487f1dd119c13da5e853af186e345ba6

From alice node

./subatomic PIRATE "" 1981179744 1
subatomic_channel_alice (PIRATE/PIRATE) 1981179744 1981179744 with 1.00000000 100000000
initialized 5 messages, updated 25 out of total.25
rel.PIRATE/PIRATE  openrequest 1981179744 status.0 (RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp/zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn)
1981179744 openrequest.911443072 -> (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
start subatomic_loop iambob.0 MCL -> PIRATE, 1981179744 100000000 911443072
1981179744 iambob.0 (MCL/PIRATE) channelapproved origid.1981179744 status.1
1981179744 approvalid.1965849312 (0133f63a3d4ae8db7e9efe8b8702e10ecc9ef44901dd2321c92132889bc6656b4e)
1981179744 iambob.0 (MCL/PIRATE) incomingchannel status.2
z_sendmany.( PIRATE) from.(zs1r3ptv82fn0yz6q47nwmgsak2dasl0v5zrprqu222f0r3mtc5p9202t82lt2vu4wmr386v2cx4tn) -> '[{"address":"zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0","amount":1.00000000,"memo":"3139383131373937343420"}]'
z_sendmany.() -> opid.(opid-5f42b61a-42f3-49c9-ac20-d2e256494d12)
1981179744: 1.00000000 PIRATE -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0, paymentid[0] 1379027968
1981179744 iambob.0 (MCL/PIRATE) incomingpayment status.4
1981179744 alice waits for MCL.3ea297a47c0836450be9ccbd8ecdea36487f1dd119c13da5e853af186e345ba6 to be in mempool (1.00000000 -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp)
RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp received 1.00000000 vs 1.00000000
1981179744 SWAP COMPLETE <<<<<<<<<<<<<<<<
dpow_broadcast.(completed/4e0844701de644c260c0c330524c17288ec1762130a843bbd52fbcd521c96af0) [ ] 4e0844701de644c260c0c330524c17288ec1762130a843bbd52fbcd521c96af0 error.(-1)
1981179744 paidid.371533632
1981179744 iambob.0 (MCL/PIRATE) incomingfullypaid status.5
1981179744 closedid.3827996192
1981179744 iambob.0 (/PIRATE) incomingclose status.6
alice 1981179744 100000000 911443072 finished

From bob node

start subatomic_loop iambob.1 MCL -> PIRATE, 0 0 0
initialized 129 messages, updated 514 out of total.514
1981179744 got open request
1981179744 bob (MCL/PIRATE) gotopenrequest origid.1981179744 status.0 (RQPZrM4yQaTZpEuoGmcGwzE4SaG2Tn9QiB/zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0) SENDERPUB.(0160e93c82dd76fb06dc391fc46a729cae7f17af93e1ad4d761c15c3546543e57b)
1981179744 approvalid.2994758272 (0160e93c82dd76fb06dc391fc46a729cae7f17af93e1ad4d761c15c3546543e57b)
1981179744 iambob.1 (MCL/PIRATE) channelapproved origid.1981179744 status.2
1981179744 openedid.3567467744
1981179744 iambob.1 (MCL/PIRATE) incomingpayment status.3
1981179744 bob waits for PIRATE.4e0844701de644c260c0c330524c17288ec1762130a843bbd52fbcd521c96af0 to be in mempool (1.00000000 -> zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0)
zs1wq40g4wvrzc2eq9xw7wtstshgar68ash659eq20ellm5jeqsyfwe5qs3tex9l3mjnrj2yf34hw0 received 1.00000000 vs 1.00000000
sendtoaddress RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp 1.00000000 txid.(3ea297a47c0836450be9ccbd8ecdea36487f1dd119c13da5e853af186e345ba6)
1981179744 got txid.3ea297a47c0836450be9ccbd8ecdea36487f1dd119c13da5e853af186e345ba6
1981179744: 1.00000000 MCL -> RXCJTaYVWJ1hBQEuN6o95Dgw275bRhuvpp, paymentid[0] 1741873824
dpow_broadcast.(completed/3ea297a47c0836450be9ccbd8ecdea36487f1dd119c13da5e853af186e345ba6) [ ] 3ea297a47c0836450be9ccbd8ecdea36487f1dd119c13da5e853af186e345ba6 error.(-1)
1981179744 SWAP COMPLETE <<<<<<<<<<<<<<<<
1981179744 iambob.1 (MCL/PIRATE) incomingfullypaid status.4
1981179744 paidid.1075902432
1981179744 iambob.1 (MCL/PIRATE) incomingclose status.5
1981179744 closedid.2707412608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment