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 Stable Nxt Client: Nxt 1.11.15 | Latest Experimental Nxt Client: Nxt 1.12.0e

Pages: 1 [2] 3 4 ... 7  All

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

chanc3r

  • Hero Member
  • *****
  • Karma: +124/-50
  • Offline Offline
  • Posts: 1019
  • NXTInspect
    • View Profile
Re: NXTsubatomic - atomic crosschain exchange
« Reply #20 on: April 22, 2014, 11:15:30 pm »


With subatomic, we have effectively atomic crypto <-> crypto
with NXTatomic, we have NXT tx <-> NXT tx
Now toss in multigateway crypto assets and NXT atomic becomes crypto asset <-> NXT/crypto asset

So, an external crypto wallet <-> multigateway <-> NXT acct is an atomic path, but multigateway is in the middle. I want a trustless way to do:
external crypto <-> NXT assets

Hmmm....
...
OK, I have an idea. More later

James

Could see how MGW would help - I assumed you would want decentralised peering - if the IP for the offer is stored in the AM the Accepting SubAtomic could connect directly to the Offering SubAtomic... NXT Peer network is then assisting the connection...

Lol takes me back to my chemistry with catalysts and electron transfers...
« Last Edit: April 22, 2014, 11:18:32 pm by chanc3r »
Logged
NXT: 29996814460165 (NXT-JTA7-B2QR-8BFC-2V222)
@imrimr @NXTinspect

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: NXTsubatomic - atomic crosschain exchange
« Reply #21 on: April 22, 2014, 11:25:51 pm »


With subatomic, we have effectively atomic crypto <-> crypto
with NXTatomic, we have NXT tx <-> NXT tx
Now toss in multigateway crypto assets and NXT atomic becomes crypto asset <-> NXT/crypto asset

So, an external crypto wallet <-> multigateway <-> NXT acct is an atomic path, but multigateway is in the middle. I want a trustless way to do:
external crypto <-> NXT assets

Hmmm....
...
OK, I have an idea. More later

James

Could see how MGW would help - I assumed you would want decentralised peering - if the IP for the offer is stored in the AM the Accepting SubAtomic could connect directly to the Offering SubAtomic... NXT Peer network is then assisting the connection...

Lol takes me back to my chemistry with catalysts and electron transfers...
yes, NXT AM's for seeding of peers and once connected to one peer, you get the rest. That is already done in InstantDEX.

I need to figure out one more thing about bitcoin tx and then I think I can create a decentralized atomic swap between bitcoin <-> 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

swartzfeger

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

Sorry, getting close... I need to update the doge blockchain. Also, is a dynamic IP a problem?
Logged

chanc3r

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

Sorry, getting close... I need to update the doge blockchain. Also, is a dynamic IP a problem?

I have dynamic IP - as long as you don't reboot your router we should be ok... I would hope..

Lol wait until you make the conf changes and re-index the DOGE and LTC block chains....

JAMES - is this still needed txindex=1

If it is ALL Potential SubAtomic testers PLEASE DO THIS NOW (see link) as it takes a while... like hours!!!

https://nxtforum.org/index.php?topic=665.msg9829#msg9829
Logged
NXT: 29996814460165 (NXT-JTA7-B2QR-8BFC-2V222)
@imrimr @NXTinspect

jl777

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

Sorry, getting close... I need to update the doge blockchain. Also, is a dynamic IP a problem?

I have dynamic IP - as long as you don't reboot your router we should be ok... I would hope..

Lol wait until you make the conf changes and re-index the DOGE and LTC block chains....

JAMES - is this still needed txindex=1

If it is ALL Potential SubAtomic testers PLEASE DO THIS NOW (see link) as it takes a while... like hours!!!

https://nxtforum.org/index.php?topic=665.msg9829#msg9829
I dont think txindex=1 is needed, but only one way to find out
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/

Sorry, getting close... I need to update the doge blockchain. Also, is a dynamic IP a problem?

I have dynamic IP - as long as you don't reboot your router we should be ok... I would hope..

Lol wait until you make the conf changes and re-index the DOGE and LTC block chains....

JAMES - is this still needed txindex=1

If it is ALL Potential SubAtomic testers PLEASE DO THIS NOW (see link) as it takes a while... like hours!!!

https://nxtforum.org/index.php?topic=665.msg9829#msg9829

Understood, thanks.

I'm at block 143k out of 192k. Ugh, this is why Doge is such a pain. Ignore the wallet for a few weeks and bam, 9 hour blockchain update.

At least my LTC is set to go.
Logged

swartzfeger

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

Obviously missing something simple. From the terminal:


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Logged

jl777

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

Obviously missing something simple. From the terminal:


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
It seems to happen randomly with libcurl. Annoying, but just slows things down a bit

working on a new release that will allow you to configure things properly
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/

Obviously missing something simple. From the terminal:


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
It seems to happen randomly with libcurl. Annoying, but just slows things down a bit

working on a new release that will allow you to configure things properly


That's great, James. What time zone are you, btw? I'm east coast US, but I will be up for at least another 5 hours (until about 6AM EDT). I'll stay up later if chanc3r gets back on and we can take 'one giant leap.'
Logged

jl777

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

Obviously missing something simple. From the terminal:


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
It seems to happen randomly with libcurl. Annoying, but just slows things down a bit

working on a new release that will allow you to configure things properly


That's great, James. What time zone are you, btw? I'm east coast US, but I will be up for at least another 5 hours (until about 6AM EDT). I'll stay up later if chanc3r gets back on and we can take 'one giant leap.'
I am on a 28 hour per "day" schedule, the body's natural biorhythm for a day.
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/

The exchange supports fractional amounts, correct? I don't hold a lot in either DOGE or LTC (edit: just checking cryptsy, I don't hold any LTC anymore, so I'll log into my old mining pages and see if I have some crumbs to cash out).
Logged

jl777

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

The exchange supports fractional amounts, correct? I don't hold a lot in either DOGE or LTC (edit: just checking cryptsy, I don't hold any LTC anymore, so I'll log into my old mining pages and see if I have some crumbs to cash out).
its all satoshi based
mintx fee for DOGE is set to 2 as when I had it at 1, most multisig tx were rejected. If you need DOGE, I can send you some
mintx for LTC is .001
there is also a small donation set at .002 of tx value, which is the same as what centralized exchanges charge

If you are trading small amounts, the txfees will be a much larger percentage. Also, no actual trades will happen unless you explicitly enable it, but if your acct is underfunded, it will abort

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

Had to find the sequenceid inside a bitcoin rawtransaction. Unlike the locktime which is at the very end, the sequenceid is buried inside input structures, variable length, etc. I figured it would be useful someday, so I wrote a full parser for rawtransactions. I did look for one in C, but no luck, now I has one. It even seems to have all the txids and amounts correct, at least for the few tx I tested it with.

bunch of minor fixes.

You also dont need to put in your own IP address, I find it automatically

I also fixed the hardcoding of strings by using the NXT setAccountInfo!
got to 127.0.0.1:6876/test and find the setAccountInfo command
Set name to be how you want to be seen by others, easiest would be your handle
Then in the description field you need to put in JSON for your PC's "username" that your OS uses. I use this to find the ".conf" files, which all seem to be in the user specific directory.
For example: description field {"username":"jl777"}

dont worry if everything isnt quite right, if you go to 127.0.0.1:7777 it will display if anything needs to be done. There were some strange race conditions with both the historical and realtime processing, so I make the realtime processing wait until the historical is done now. Since the processing is a lot faster than before it shouldnt take more than a minute or so. You can tell if it is caught up to realtime when the NXT lines dont show "HIST". At that point the 127.0.0.1:7777 should appear

http://209.126.71.170/NXTsubatomic_v01.zip

Finally, I can start on the atomic swaps.

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

swartzfeger

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

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Logged

jl777

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

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Is that the only thing that appears, or anything else?
You do have testnet NXT running?
what happens if you put http://127.0.0.1:6876/nxt?requestType=getTime in your browser?
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/

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Is that the only thing that appears, or anything else?
You do have testnet NXT running?
what happens if you put http://127.0.0.1:6876/nxt?requestType=getTime in your browser?


Mea culpa. test net running now. Here's what I see with getTime:

{"time":12938006}


and http://127.0.0.1:7777 looks fine too.
Logged

jl777

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

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Is that the only thing that appears, or anything else?
You do have testnet NXT running?
what happens if you put http://127.0.0.1:6876/nxt?requestType=getTime in your browser?


Mea culpa. test net running now. Here's what I see with getTime:

{"time":12938006}
:)

what about 127.0.0.1:7777
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/

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Is that the only thing that appears, or anything else?
You do have testnet NXT running?
what happens if you put http://127.0.0.1:6876/nxt?requestType=getTime in your browser?


Mea culpa. test net running now. Here's what I see with getTime:

{"time":12938006}
:)

what about 127.0.0.1:7777


Yup. Looks fine.
Logged

jl777

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

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Is that the only thing that appears, or anything else?
You do have testnet NXT running?
what happens if you put http://127.0.0.1:6876/nxt?requestType=getTime in your browser?


Mea culpa. test net running now. Here's what I see with getTime:

{"time":12938006}
:)

what about 127.0.0.1:7777


Yup. Looks fine.
It is important to make sure that NXTsubatomic is communicating properly with the LTC and DOGE RPC
at the beginning of the test window you should see messages about extract_userpass and there should be no errors from the coin daemons

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

swartzfeger

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

When I ./NXTsubatomic_v01, I still get


curl_easy_perform() failed: Couldn't connect to server NXT.(http://127.0.0.1:6876/nxt?requestType=getTime (null) (null) )
Is that the only thing that appears, or anything else?
You do have testnet NXT running?
what happens if you put http://127.0.0.1:6876/nxt?requestType=getTime in your browser?


Mea culpa. test net running now. Here's what I see with getTime:

{"time":12938006}
:)

what about 127.0.0.1:7777


Yup. Looks fine.
It is important to make sure that NXTsubatomic is communicating properly with the LTC and DOGE RPC
at the beginning of the test window you should see messages about extract_userpass and there should be no errors from the coin daemons

James


looks like it's trying to load a file from your machine?


couldnt load.(/Users/*censored*/Documents/NXT/gateway/gateway/NXTprotocol.html
Logged
Pages: 1 [2] 3 4 ... 7  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly