• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer

iKomodo P2P

Peer to Peer News

AtomicDEX Orderbook Tutorial
  • 1st Web Story
  • News Relay
  • Applications
  • Podcasts
  • Videos
  • About Us

P2P Micropayment Channels – Private & Direct

February 19, 2020 by iKomodo Mylo

Sub-atomic swaps using direct P2P micropayment channels dates back to 2014 in the Komodo timeline when SuperNET and the early Komodo sub-projects were part of the NXT Asset Exchange. With the DEXP2P technology recently developed & tested, more use cases have been requested. Further development continues and pay-per-slice file sharing is on the horizon. Similar streaming money technology from other projects can be found with the COIL project and the InterLedger Protocol v4.

#DEX #P2P technology for mass adoption is finding new #micropayment use cases after a successful private transaction between two parties. Pay per slice #filesharing is nearly ready for testing Click To Tweet

Sub-atomic Swap Features

  • Use a onetime pubkey over tor and only z <-> z swaps (discord link to comment)
  • The UX for this will be very good as it is click and swap is done in 30 seconds, or one minute timeout is the worstthe GUI can display the handle of the bob along with the size of their security deposit (discord link to comment)
  • Dispute plan for sub-atomics (discord link to comment)
  • The design is to use the mempool for OTC, serially, ie. a bunch of small orders (not for big orders) (discord link to comment)
  • The subatomic app is very lightweight (discord link to comment)

sub-atomic micropayment swap dev gui
sub-atomic dev GUI

Quick Note Comparison To Lightning Network

Discord user Arno asked “What would be the difference in comparison to Lightning and its channels?” & the response was: here the channels are point to point, so we avoid all the routing issues it works with normal CLTV channels. Here is a link to malleability in micropayment channels from a stack exchange question. Orderbook, ordermatching and the swap negotiation is done via the dexp2p network, that is something LN doesnt have. (Link to discord chat)

Micropayment Channel Technology Description

Source of this description. Are you familiar with OTC swap? This is where you want to swap with someone directly, over the counter style.

lets say you sort of trust him, but not so much
you have a price
you agree to amount, but it is so small that worst case it wont bother you and you assume the other party wont put his reputation at risk over it
maybe $1so you send $1 worth of PIRATE
and he sends $1 worth of KMD
notice you trusted him with $1, so it isnt fully trustless
now lets do a trade for $100 worth
but now you hesitate as maybe for $100 this guy would just take the money and not send it back
today, you would need to do 100 separate trades for $1 each and make sure each one is complete to do $100 worth. quite a hassle, but maybe it can be automated so not so bad, but the OTC method has much to be desired as each $1 swap is 2 transactions onchain, with the txfees and blockchain space
so, now that the OTC mode is working, the next step is to make channels. what that does is create a way to do N microtransactions with only 4 blockchain transactions. you can do 100 or 1000 or even more microtransactions between each other
so now, it definitely needs to be automated, but i send 1% in an offchain transaction
you send me 1%we repeat until one side stops or we reach 100% swapped
the channels are closed and it becomes confirmedthis is a direct p2p channel between the two parties, so you need to make a special deposit tx and have it confirm firm, maybe even wait for it to notarize if it is for a lot of money
once it is notarized, it can be done for larger amounts
so the people running the bob nodes, they could decide to support many different coins. in this case alice can open a channel with X amount of funds. then she only has to wait for that to confirm (notarize) and then can do many different subatomic swaps (at speed) for all the different coins the bob has
additionally, all the bobs could open channels between themselves to help them replenish inventory as the alice is buying up all of one coin.by having a network of bobs that are interconnected to each other, each bob would be able to rapidly replenish any coin that is low in inventory and all the alices that are connected to any bob would be able to do the shopping spree i explain above
for smaller amounts, the subatomic swap is probably a lot faster than atomic swaps, and subatomics is not really for mobile, need to have full nodes. theoretically its possible but the bandwidth needed to do all the hundreds or thousands of swaps, it just isnt something i would want on a phone
so for desktop users that want speed and can run full nodes, that is the usecase for subatomic swaps
maybe in time it can be ported to mobile, but that wont be me, so maybe it will take a year or more to get that working
i can get it to work with fullnodes, i think relatively quickly
of course, there is no gui… so maybe its like it doesnt exist

Other Links Developer Activity

  • Testing guide for doing subatomic swaps
  • The first z<->t (private to transparent) swap using sub-atomic swaps, tweet by Satinder
  • Filed Under: Community Blockchain Development Tagged With: dexp2p, file sharing, otc, private

Primary Sidebar

  • GitHub
  • Pinterest
  • Twitter

Atomic Swaps For Dummies

The atomic swap infographic explains how the network negotiates the exchange between two users directly P2P!

atomic swaps for dummies - ikomodo infographic

More to See

electrum server load summary

Electrum Server Load During AtomicDEX Stress Test

December 15, 2020 By iKomodo Mylo

Blockchain Dev Kit v1, Electrumx & DEX in 1 hour

August 6, 2020 By iKomodo Mylo

Portable WASM Smart Contracts

June 10, 2020 By iKomodo Mylo

AtomicDEX Orderbook Tutorial – Part 2

May 1, 2020 By iKomodo Mylo

Verus Crypto Mining & Staking Wallet With Blockchain ID – Part 1

April 14, 2020 By Ahmed Shah

Convert Private Key To Bitcoin Private Key

April 21, 2020 By iKomodo Mylo

AtomicDEX Orderbook Tutorial – Part 1

April 30, 2020 By iKomodo Mylo

About atomicDEX orderbook

April 13, 2020 By iKomodo Mylo

Vote Mylo Notary Node Election 2020

Notary Node Election 2020

April 10, 2020 By iKomodo Mylo

TORUS OAuth dApp Authentication

January 6, 2020 By Ahmed Shah

Easily view your crypto wallet with Opera Touch menu

Kyber Swap Review with Opera Touch Crypto Wallet

December 19, 2019 By iKomodo Mylo

Tags

atomic swap Binance browser cdp CEX collaboration collateralized collectibles community composer demo dex dexp2p docker dpow efficiency ethereum gaming gas fees interview iPad listing marketmaker MetaMask mining nft opera touch polkadot presentation price data Proxy Token redfox smartchain stablecoin streaming support synthetic team member trading trading fees tutorial wallet waves webapp whitelabel

Developer API Examples

Atomic Swap API released by Komodo

August 13, 2019 By iKomodo Mylo

Using Insomnia to Get API Data

June 4, 2019 By Ahmed Shah

How To Get Historical Price Data from CoinLayer

June 4, 2019 By Ahmed Shah

How to Get Price Data from Binance

May 27, 2019 By Ahmed Shah

How to use HitBTC public api – example price, pair & volume

May 18, 2019 By Ahmed Shah

How to Get Price Data from BITTREX

May 3, 2019 By Ahmed Shah

How to get Price Index API from Bitcoin Average

April 23, 2019 By Ahmed Shah

Footer

About iKomodo P2P News

A news site for updates in the Komodo Platform P2P ecosystem. This is a Coin Gateways Blockchain Lab blog.

Recent

  • Electrum Server Load During AtomicDEX Stress Test
  • Blockchain Dev Kit v1, Electrumx & DEX in 1 hour
  • Portable WASM Smart Contracts
  • AtomicDEX Orderbook Tutorial – Part 2
  • AtomicDEX Orderbook Tutorial – Part 1

Search

Tags

atomic swap Binance browser cdp CEX collaboration collateralized collectibles community composer demo dex dexp2p docker dpow efficiency ethereum gaming gas fees interview iPad listing marketmaker MetaMask mining nft opera touch polkadot presentation price data Proxy Token redfox smartchain stablecoin streaming support synthetic team member trading trading fees tutorial wallet waves webapp whitelabel

Copyright © 2021 · Magazine Pro on Genesis Framework · WordPress · Log in