Author

Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread - page 591. (Read 1276933 times)

hero member
Activity: 756
Merit: 502
It is important to make a strict distinction between the developers of Counterparty, and the Counterparty protocol itself. Burning BTC is only secondarily a demonstration of trust in the developers, it is primarily a demonstration of confidence in the protocol, whereas, by sending BTC and XCP to the Counterparty donation address, the community is trusting the Counterparty team to deal honestly and competently with funds meant for bounties. Faith in the protocol does not necessarily imply faith in the developers, and it is unreasonable to force those who want to invest in the former to donate to the latter. In the long run the protocol and the current developers aren't tied together.

In our view, the short term benefits gained by more donations are outweighed by the medium- to long-term benefits of sticking with proof-of-burn. Counterparty's long-term success depends on it being maximally trustless and decentralized throughout the entire initialization-of-balances period.

The value of the Bitcoins burned is the price paid for a fair launch.

+1 - awesome post.

It's so refreshing to finally find people who launch a new project for the sake of advancing the crypto community, and not for getting rich fast (NXT, I'm looking at you! Smiley ).
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Maybe a noob question but I hope someone can answer.

How do user created assets work? If I create an asset called Bitcoin, and issue 10 of those. Is that asset backed by the trust of the address which issued it? I am guessing people would sign messages with the address saying, "These 10 issuances of User Created Asset Bitcoin represent my full faith to issue one Bitcoin to whoever owns this asset?"

So the asset is only as good as the address/person who issues it.

Is this correct?

Yes, that is, in general, correct.
legendary
Activity: 1320
Merit: 1007
Maybe a noob question but I hope someone can answer.

How do user created assets work? If I create an asset called Bitcoin, and issue 10 of those. Is that asset backed by the trust of the address which issued it? I am guessing people would sign messages with the address saying, "These 10 issuances of User Created Asset Bitcoin represent my full faith to issue one Bitcoin to whoever owns this asset?"

So the asset is only as good as the address/person who issues it.

Is this correct?
sr. member
Activity: 462
Merit: 250
Come on ya cheapskates, we all want a GUI, we get an announcement that bounty is being raised to fund one, and one dude donates 0.1 BTC.  Now I understand a lot of small investors may not have much to give, but I know we got a handful of whales among all these burnt BTC who are cheaping out.  Typical, crypto-community always wants something for nothing and all devs to work for free.

Sent over another donation, I am now approx. a 0.45% stakeholder in XCP and a 9.5% stakeholder in the dev fund  Roll Eyes
member
Activity: 118
Merit: 104
Counterparty
After installing, open a command window and run counterpartyd in the foreground via:

Code:
cd C:\counterpartyd_build
C:\Python32\python.exe run.py server
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 22, in
 
    from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\zeromq.py", line 14, in odule>
    import zmq
ImportError: No module named zmq


Can you tell me what am I doing wrong?

Code:
ImportError: No module named zmq

You need pyzmq: if windows, download here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Thank you very much!
I installed pyzmq.
Then
Code:
C:\counterpartyd_build>C:\Python32\python.exe run.py server
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 22, in
 
    from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\zeromq.py", line 14, in odule>
    import zmq
  File "C:\Python32\lib\site-packages\zmq\__init__.py", line 33, in
    _libzmq = ctypes.cdll.LoadLibrary(bundled[0])
  File "C:\Python32\Lib\ctypes\__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python32\Lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 127] 找不到指定的程序。

 Huh

Apologies guys. I updated the docs earlier but forgot to rebuild them at readthedocs. Please see http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#on-windows

The pyzmq package you should be using is listed there. Please uninstall that package you are using and install the one linked to instead, which should fix the problem.

Thank you all the same!
updated.
Code:
C:\counterpartyd_build>C:\Python32\python.exe run.py server
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 507, i
n
    util.bitcoind_check(db)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\util.py", line 48, in bitc
oind_check
    raise exceptions.BitcoindError('Bitcoind is running about {} seconds behind.
'.format(round(time_behind)))
lib.exceptions.BitcoindError: Bitcoind is running about 17314277 seconds behind.

 Sad
sr. member
Activity: 390
Merit: 254
Counterparty Developer
My bitcoin-qt finished reindexing, but I restarted it and it's starting to reindex from the beginning??

Has anyone else had this problem or know the cause?

Edit: I am on Ubuntu 13.10. My .bitcoin is a soft link to my data directory stored in another partition on the same drive. Perhaps that's the reason?

Did you specify the --reindex switch again by accident? (is it in your bitcoin config file?... if that's even possible with that particular parameter...I'd check it just in case)
jr. member
Activity: 43
Merit: 30
If anybody has the patience to help a newbie I'd appreciate it.

You're almost there.  You're exactly right -- you need to keep the one cmd window open and running the counterpartyd server (there are easier ways to do this as a service but if you only want to do it once this is fine).  While you're doing this, open another cmd window, and run the exact same command, only replacing "server" with whatever command you want to run ("wallet" would be a good one first time).

But you have to wait until the server has caught up with the current bitcoin block.  You can check the current number on blockchain.info or on blockscan.com

Thank you brite_enclave for taking the time. I am away from my bitcoin wallet computer so I can't check but I think I was forgetting to

to include the full command line before I input the desired command. Thank you kindly for pointing it out to me.
newbie
Activity: 13
Merit: 0
If anybody has the patience to help a newbie I'd appreciate it.

You're almost there.  You're exactly right -- you need to keep the one cmd window open and running the counterpartyd server (there are easier ways to do this as a service but if you only want to do it once this is fine).  While you're doing this, open another cmd window, and run the exact same command, only replacing "server" with whatever command you want to run ("wallet" would be a good one first time).

But you have to wait until the server has caught up with the current bitcoin block.  You can check the current number on blockchain.info or on blockscan.com
newbie
Activity: 13
Merit: 0

Actually, rpc-host is set to what local interface IP counterpartyd will bind to (with 0.0.0.0 meaning "all interfaces"). So, it must be a local interface on the box (e.g. rpc-host=68.122.255.122 will bind to the local interface that has IP 68.122.255.122... that interface must exist on the system).

Yes -- stupid mistake on my part.  I wasn't thinking that one through.  rpc-host just specifies which IP address cherrypy binds to.  The only way you can accept external IP connections is to bind to 0.0.0.0, and there's no way to limit that by IP.  Actually, I'm not sure how bitcoind even implements rpcallowip -- I'll have to check it out.  But agreed that firewalls are the way to go.

It's also pretty simple to configure nginx as reverse proxy to limit external connections to certain hosts, using the "location" block and `allow x.x.x.x` then `denyall`.  Check me on that if you do it, can't quite remember if there's anything else to do.
jr. member
Activity: 43
Merit: 30
If anybody has the patience to help a newbie I'd appreciate it. I am not a computer technical person. I followed the steps to install from source
on windows. I installed everything I needed and brought up a cmd.exe command window. I typed the

cd C:\
git clone https://github.com/xnova/counterpartyd_build
cd counterpartyd_build
C:\Python32\python.exe setup.py

I then follow the directions to run from source.

cd C:\counterpartyd_build
C:\Python32\python.exe run.py server

After doing this it takes a while showing all the blocks and transactions and burns up till now correct?

Well my question is after it has caught up, what do I do to use counterparty exactly? In the same command window it doesn't let me

type anything. So do i open a new command window while that one is running? If so when i go to counterpartyd_build prompt in a new cmd

all the commands do not work. Everything says is not a recognized command or something. I do not understand where the actualy

counterparty progam is. Please explain to me in a literal step by step manner like you would explaining to your grandmother. I just want to be able

to use counterpary to confirm my balance has successfully transferred when I transferred my private key from blockchain.info. And to move my xcp

to another bitcoin address. Thank you so much to any member willing to explain it layman to me.
sr. member
Activity: 390
Merit: 254
Counterparty Developer

Is there an equivalent rpcallowip?

If I'm not mistaken, rpc-host is essentially the same as rpcallowip.

This will allow any IP to connect:
Code:
rpc-host=0.0.0.0

If you specify the IP number, connections should be limited to that IP only:

Code:
rpc-host=68.122.255.122

However, IP addresses can be spoofed, so make sure you're using a very strong password if you've opened the connection to the Internet (20+ chars).  I would be very, very careful about exposing the API on the open Internet if you're storing any significant amount of XCP/BTC on that wallet.  It would be better to put it behind a proxy server, like nginx.

You probably know all this, but I mention this for the sake of others reading.

Actually, rpc-host is set to what local interface IP counterpartyd will bind to (with 0.0.0.0 meaning "all interfaces"). So, it must be a local interface on the box (e.g. rpc-host=68.122.255.122 will bind to the local interface that has IP 68.122.255.122... that interface must exist on the system).

That being said, rpcallowip semantics do not exist in counterpartyd currently. We can consider adding them in a future release (or a pull request with the feature is welcome!). So currently, to restrict connections to that port down to a specific IP or set of IPs, please use your firewall (i.e. windows firewall, linux iptables, or some other firewall device like Cisco ASA/PIX or pfsense, etc).

In thinking about it, that is the best way to do it. Firewalls have much better (and proven!) feature sets for restricting access like this.
sr. member
Activity: 390
Merit: 254
Counterparty Developer
I’m on xubuntu 13.10 and get the same "import zmq" error after updating.

If you're on ubuntu, just run: sudo apt-get install python3-zmq

As long as you're using the system Python3 (running commands with `python3 cmd`) then you should be ok.

Yes, that should work. You could also just re-run setup.py, which should issue that command as it rebuilds the environment.

rerunning setup.py didn’t work but installing python3-zmq with apt-get did it. Thanks.

Thanks for bringing that up to my attention. The build system actually did not have the zmq deps for Ubuntu in there. Fixed in the newest push to git (should work for 12.04 for 13.10 -- they have different approaches due to python3-zmq not existing on 12.04).
full member
Activity: 149
Merit: 100
I’m on xubuntu 13.10 and get the same "import zmq" error after updating.

If you're on ubuntu, just run: sudo apt-get install python3-zmq

As long as you're using the system Python3 (running commands with `python3 cmd`) then you should be ok.

Yes, that should work. You could also just re-run setup.py, which should issue that command as it rebuilds the environment.

rerunning setup.py didn’t work but installing python3-zmq with apt-get did it. Thanks.
newbie
Activity: 13
Merit: 0

Is there an equivalent rpcallowip?

If I'm not mistaken, rpc-host is essentially the same as rpcallowip.

This will allow any IP to connect:
Code:
rpc-host=0.0.0.0

If you specify the IP number, connections should be limited to that IP only:

Code:
rpc-host=68.122.255.122

However, IP addresses can be spoofed, so make sure you're using a very strong password if you've opened the connection to the Internet (20+ chars).  I would be very, very careful about exposing the API on the open Internet if you're storing any significant amount of XCP/BTC on that wallet.  It would be better to put it behind a proxy server, like nginx.

You probably know all this, but I mention this for the sake of others reading.
legendary
Activity: 876
Merit: 1000
Etherscan.io
Hi PhantonPhreak/Xnova

With reference to the Counterparty API, is there a way to set it up so that It accepts request from non local IP (external public IP)

Cheers


Yes, edit the counterpartyd.conf file and insert something like the following:
Code:
rpc-host=0.0.0.0

(you should also set rpc-user and rpc-password if you haven't already)

Thank you.

Is there an equivalent rpcallowip?
sr. member
Activity: 390
Merit: 254
Counterparty Developer
Hi PhantonPhreak/Xnova

With reference to the Counterparty API, is there a way to set it up so that It accepts request from non local IP (external public IP)

Cheers


Yes, edit the counterpartyd.conf file and insert something like the following:
Code:
rpc-host=0.0.0.0

(you should also set rpc-user and rpc-password if you haven't already)
sr. member
Activity: 390
Merit: 254
Counterparty Developer
I’m on xubuntu 13.10 and get the same "import zmq" error after updating.

If you're on ubuntu, just run: sudo apt-get install python3-zmq

As long as you're using the system Python3 (running commands with `python3 cmd`) then you should be ok.

Yes, that should work. You could also just re-run setup.py, which should issue that command as it rebuilds the environment.
newbie
Activity: 13
Merit: 0
I’m on xubuntu 13.10 and get the same "import zmq" error after updating.

If you're on ubuntu, just run: sudo apt-get install python3-zmq

As long as you're using the system Python3 (running commands with `python3 cmd`) then you should be ok.
full member
Activity: 149
Merit: 100
After installing, open a command window and run counterpartyd in the foreground via:

Code:
cd C:\counterpartyd_build
C:\Python32\python.exe run.py server
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 22, in
 
    from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\zeromq.py", line 14, in odule>
    import zmq
ImportError: No module named zmq


Can you tell me what am I doing wrong?

Code:
ImportError: No module named zmq

You need pyzmq: if windows, download here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Thank you very much!
I installed pyzmq.
Then
Code:
C:\counterpartyd_build>C:\Python32\python.exe run.py server
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 22, in
 
    from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\zeromq.py", line 14, in odule>
    import zmq
  File "C:\Python32\lib\site-packages\zmq\__init__.py", line 33, in
    _libzmq = ctypes.cdll.LoadLibrary(bundled[0])
  File "C:\Python32\Lib\ctypes\__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python32\Lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 127] 找不到指定的程序。

 Huh

Apologies guys. I updated the docs earlier but forgot to rebuild them at readthedocs. Please see http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#on-windows

The pyzmq package you should be using is listed there. Please uninstall that package you are using and install the one linked to instead, which should fix the problem.

I’m on xubuntu 13.10 and get the same "import zmq" error after updating.
legendary
Activity: 876
Merit: 1000
Etherscan.io
Hi PhantonPhreak/Xnova

With reference to the Counterparty API, is there a way to set it up so that It accepts request from non local IP (external public IP)

Cheers
Jump to: