Page 1 of 2

ANTPY - Atomic Name Trading Pythonscript

Posted: Thu Jun 12, 2014 9:59 am
by phelix
https://github.com/phelixnmc/antpy


ANTPY - Atomic Name Trading Pythonscript

phelix / blockchained d0t com

v0.1beta

Transfer a Namecoin name for NMC in a single Namecoin transaction.


How to use

1.) Buyer starts ant_buyer.py to create a half finished transaction and sends it to the seller as an offer.
2.) Seller starts ant_seller.py to accept, finish and broadcast the transaction.

To copy/paste you might have to click the icon on the top left of the command window.

Note this is an early version and there might still be vulnerabilities and bugs.

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Fri Jun 13, 2014 5:18 am
by domob
Thanks for your efforts here, I really appreciate you building a front-end for the raw tx atomic trades! This should make life easier. A quick review of the code from my side (although no real testing so far) looks good, BTW.

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Fri Jun 13, 2014 9:34 am
by virtual_master
I am not directly involved in name trading but I find it a good development. :)

How secure is such a name trading ?

What other implications could have for the future ? For example decentralized exchange or trading when name entries represent fiat bonds or stocks.

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Fri Jun 13, 2014 6:06 pm
by phelix
virtual_master wrote:I am not directly involved in name trading but I find it a good development. :)

How secure is such a name trading ?
Theoretically it should be perfectly secure. Name transfer and compensation transfer in a single transaction - both or nothing.
What other implications could have for the future ? For example decentralized exchange or trading when name entries represent fiat bonds or stocks.
It should make handling things like this much easier. I hope we will find out soon.

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Sat Jun 14, 2014 1:43 am
by snailbrain
has the rpc been committed to any of the repos yet?

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Sat Jun 14, 2014 9:14 am
by phelix
snailbrain wrote:has the rpc been committed to any of the repos yet?
Yup. All live. Also will be in the upcoming 0.3.75 release.

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Sat Jun 14, 2014 10:19 am
by snailbrain
ok, just checking

I tried this branch yestarday (on windows)
https://github.com/namecoin/namecoin/tree/namecoinq-rc

Code: Select all

Traceback (most recent call last):
  File "ant_seller.py", line 21, in <module>
    rpc = namerpc.CoinRpc()
  File "E:\antpy-master\namerpc.py", line 54, in __init__
    raise Exception("Could not connect to Namecoin client.")
Exception: Could not connect to Namecoin client.
i can do other rpc's from cmdline

i scanned through the commits and couldn't see it, but i saw a readme with some info in it, so i assumed it was in

what am i doing wrong :)

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Sat Jun 14, 2014 10:35 am
by phelix
snailbrain wrote:ok, just checking

I tried this branch yestarday (on windows)
https://github.com/namecoin/namecoin/tree/namecoinq-rc

Code: Select all

Traceback (most recent call last):
  File "ant_seller.py", line 21, in <module>
    rpc = namerpc.CoinRpc()
  File "E:\antpy-master\namerpc.py", line 54, in __init__
    raise Exception("Could not connect to Namecoin client.")
Exception: Could not connect to Namecoin client.
i can do other rpc's from cmdline

i scanned through the commits and couldn't see it, but i saw a readme with some info in it, so i assumed it was in

what am i doing wrong :)
This does not look like a problem with missing rpc functionality. For some reason it seems it can not connect to the client... maybe I put a bug in there, will take a look later.

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Sat Jun 14, 2014 2:22 pm
by phelix
snailbrain wrote:ok, just checking

I tried this branch yestarday (on windows)
https://github.com/namecoin/namecoin/tree/namecoinq-rc

Code: Select all

Traceback (most recent call last):
  File "ant_seller.py", line 21, in <module>
    rpc = namerpc.CoinRpc()
  File "E:\antpy-master\namerpc.py", line 54, in __init__
    raise Exception("Could not connect to Namecoin client.")
Exception: Could not connect to Namecoin client.
i can do other rpc's from cmdline

i scanned through the commits and couldn't see it, but i saw a readme with some info in it, so i assumed it was in

what am i doing wrong :)
Please give it another try, hopefully it will output a better error message now. If the problem is still there please send me your namecoin.conf (with password change to 123 or something).

Re: ANTPY - Atomic Name Trading Pythonscript

Posted: Sat Jun 14, 2014 3:23 pm
by snailbrain
phelix wrote:
snailbrain wrote:ok, just checking

I tried this branch yestarday (on windows)
https://github.com/namecoin/namecoin/tree/namecoinq-rc

Code: Select all

Traceback (most recent call last):
  File "ant_seller.py", line 21, in <module>
    rpc = namerpc.CoinRpc()
  File "E:\antpy-master\namerpc.py", line 54, in __init__
    raise Exception("Could not connect to Namecoin client.")
Exception: Could not connect to Namecoin client.
i can do other rpc's from cmdline

i scanned through the commits and couldn't see it, but i saw a readme with some info in it, so i assumed it was in

what am i doing wrong :)
Please give it another try, hopefully it will output a better error message now. If the problem is still there please send me your namecoin.conf (with password change to 123 or something).
will try later.. nothing special in conf (not sure why i add daemon=1, but always have :) )

Code: Select all

rpcuser=xx
rpcpassword=xx
server=1
daemon=1
rpcallowip=127.0.0.1
rpcallowip=192.168.0.*
did just notice i'm on a different subnet since i last changed it.. will change later just incase