elective-stereophonic
elective-stereophonic
NXTsubatomic - atomic crosschain exchange & NXTatomic - atomic NXT tx swap singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Pages: 1 ... 5 6 [7]  All

Author Topic: NXTsubatomic - atomic crosschain exchange & NXTatomic - atomic NXT tx swap  (Read 34694 times)

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Almost had a subatomic transaction happen via NXTsync, but things werent quite in sync
After a week of UDP wonkiness, I figured Windows couldnt be as bad, so I started porting everything to Windows.
Down to just 12 compiler errors. Of course, need to make networking and timers and threads cross platform, plus all the other libraries, but not as bad as I feared

James


Can we expect v10 this weekend?
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

Almost had a subatomic transaction happen via NXTsync, but things werent quite in sync
After a week of UDP wonkiness, I figured Windows couldnt be as bad, so I started porting everything to Windows.
Down to just 12 compiler errors. Of course, need to make networking and timers and threads cross platform, plus all the other libraries, but not as bad as I feared

James
yes


Can we expect v10 this weekend?
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

It is finally there 209.126.71.170/NXTsubatomic_v10.zip

This version has NXTsync built into it
It is only for MAC
As before, you need to get all the fields right to make sure you match up with the other party
It is critical that you establish direct UDP contact with the other party.

Currently, the name used for the chat is set to the name that your NXT account has been set to. Let's assume bob and alice are trading with each other. To establish UDP contact, you need to hole punch by /<chat name>

So bob would type:
/alice

And alice would type:
/bob

You need to verify this is working by just chatting a bit by typing anything to each other. You can even send files by typing @<chat name> "<filename>"

The file will just get stored in /tmp/<filename> This is not really a supported feature yet, but might as well test it to see how well it works.

OK, so assuming there is good comms between alice and bob and NXTsubatomic matches up the trade properly from the AM's that are submitted, it will start the overlapped negotiations. Now that bidirectional comms are working, I decided to go to a state machine driven process to incrementally complete the transaction. There will be ~100 actual transactions for each side during this process and if all goes well you will see the percentage printed once per second.

There will also be printouts of the raw transactions that are being created. Currently not being broadcast, so this wont actually do any transactions. However, the signed raw transactions would actually send money if you manually broadcast it. Once we get verification on the accuracy of the transactions and the process, I will enable the submission to the respective networks.

So, I will await test results and until then, this project for me is on hold

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

chanc3r

  • Hero Member
  • *****
  • Karma: +124/-50
  • Offline Offline
  • Posts: 1019
  • NXTInspect
    • View Profile

There will be ~100 actual transactions for each side during this process and if all goes well you will see the percentage printed once per second.

James - what does this mean in terms of the network tx fees for the xxxcoind being traded?
Logged
NXT: 29996814460165 (NXT-JTA7-B2QR-8BFC-2V222)
@imrimr @NXTinspect

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

There will be ~100 actual transactions for each side during this process and if all goes well you will see the percentage printed once per second.

James - what does this mean in terms of the network tx fees for the xxxcoind being traded?
There will only be two network txfees, one for the funding tx and one for either the refund tx or the claiming tx. All the transactions are peer to peer. The key is that they are signed and as long as all the inputs are valid, good as money in pocket, at least thats the theory

Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/


There will be ~100 actual transactions for each side during this process and if all goes well you will see the percentage printed once per second.

James - what does this mean in terms of the network tx fees for the xxxcoind being traded?

Ian, where in the world are you this weekend? :)

I should be home and ready to test by 3am EDT/7am GMT. Will you be awake and available?

I can test as late 11am GMT.


Sent from my iPhone using Tapatalk
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

I wanted to finish up the NXTatomic side of things. It went a LOT faster than the bitcoin stuff!

209.126.71.170/NXTsubatomic_v11.zip

No difference from v10, except that this one processes NXTatomic swaps using a method similar to the method described on https://nxtforum.org/nrs-releases/nrs-v0-9-9/msg10942/#msg10942

It doesnt actually submit the txbytes, and I have only tested NXT for NXT, which is not too useful, but proves the mechanism. I will add asset transfers next, so that you can swap NXT assets for NXT.

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

After doing both the NXTsubatomic and NXTatomic, I was hoping that I would be able to see how to combine them somehow. If I could, that would mean a trustless exchange of bitcoin (and any bitcoin fork) for NXT (actually any supported NXT tx, like asset transfer)

Ignoring the difficulty in actually specifying the trade, eg. having to generate the raw transaction bytes and prearranging an exchange, I did have an idea on how to create a hybrid NXTsubatomic-NXTatomic exhange. What to call it is a problem...

The big issue is that it is totally asymmetric, but I think I was able to get a pretty good approach to it initially coded up. Still need to debug and autocreate a reference trade, but the hard part was abstracting the NXTsubatomic process and interfacing the NXTatomic to that. That's done. Too late today to finish debugging, but now that the UDP wonkiness is behind me, it feels like driving on the open highway, instead of hacking through the jungle on foot

No promises, but NXTsubatomic_v12 could actually implement direct peer to peer bitcoin <-> NXT trades
However, before I can even test it, I will need to get a much better API for it, and also trade matching. This just happens to be very similar to what NXTorrent needs and it is sorely needing an update so I will switch to that tomorrow. Also need to finish porting to Windows. I am now just networking functions away from getting it to compile and link, but not sure what sorts of bugs there will be.

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

TimmyD

  • Hero Member
  • *****
  • Karma: +27/-6
  • Offline Offline
  • Posts: 639
    • View Profile
    • The NXT Community Raised £644 For Hospice at Home West Cumbria

Just keep it simple NXTomic
Logged
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬  ▄▀▀▀▀▀▀▀▀▄  ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●  nimirum  ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬ ◖ENDING CENSORSHIP ONLINE◗  ◖ ICO OPEN NOW◗ ▬▬▬

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Where are we, James?
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

Where are we, James?
I'm fighting Windows trying to get networking stable on it.
I am also waiting for your test results with v11
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

btc2nxt

  • Full Member
  • ***
  • Karma: +42/-1
  • Offline Offline
  • Posts: 211
    • View Profile
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile


http://209.126.71.170/NXTsubatomic_v09.ubuntu.zip


cannot run it . ???

incorrect command.
that is very old version. also I havent added POST support yet, so you need to disable that in the .conf file

Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org

when release the windows test ?
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

when release the windows test ?
as soon as I get keyboard input to work properly, everything else seems to be working
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org

when release the windows test ?
as soon as I get keyboard input to work properly, everything else seems to be working
wow,cannot wait to test it. :D
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org

this some same with
Quote
6. After Smart Leasing, ChuckOne plans to focus on Atomic Cross-Chain Trading
from https://nxtforum.org/news-and-announcements/development-roadmap-update-2014-07-05/ ?
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ
Pages: 1 ... 5 6 [7]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly