ANTPY - Atomic Name Trading Pythonscript

Forum rules
Warning !
Avoid using binary softwares from untrusted users.
Prefer compiling it yourself and verify sources.
phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

ANTPY - Atomic Name Trading Pythonscript

Post 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.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

domob
Posts: 1129
Joined: Mon Jun 24, 2013 11:27 am
Contact:

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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.
BTC: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | NMC: NCdomobcmcmVdxC5yxMitojQ4tvAtv99pY
BM-GtQnWM3vcdorfqpKXsmfHQ4rVYPG5pKS
Use your Namecoin identity as OpenID: https://nameid.org/

virtual_master
Posts: 541
Joined: Mon May 20, 2013 12:03 pm
Contact:

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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.
http://namecoinia.org/
Calendars for free to print: 2014 Calendar in JPG | 2014 Calendar in PDF Protect the Environment with Namecoin: 2014 Calendar in JPG | 2014 Calendar in PDF
BTC: 15KXVQv7UGtUoTe5VNWXT1bMz46MXuePba | NMC: NABFA31b3x7CvhKMxcipUqA3TnKsNfCC7S

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

snailbrain
Posts: 309
Joined: Tue Jul 19, 2011 9:33 pm

Re: ANTPY - Atomic Name Trading Pythonscript

Post by snailbrain »

has the rpc been committed to any of the repos yet?

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

snailbrain
Posts: 309
Joined: Tue Jul 19, 2011 9:33 pm

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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 :)

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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).
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

snailbrain
Posts: 309
Joined: Tue Jul 19, 2011 9:33 pm

Re: ANTPY - Atomic Name Trading Pythonscript

Post 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

Post Reply