Title: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on July 21, 2013, 03:54:21 PM Website (tutorial): https://sx.dyne.org/
List of commands: Code: $ sx help Install globally: Code: $ wget https://sx.dyne.org/install-sx.sh Install locally (non-root): Code: $ wget https://sx.dyne.org/install-sx.sh Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: stevenh512 on July 22, 2013, 12:22:40 PM Interesting, I can see how these tools could be extremely useful for sysadmins and power users.
You mentioned deterministic wallets, are these BIP-32 compatible? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on July 22, 2013, 12:42:23 PM Interesting, I can see how these tools could be extremely useful for sysadmins and power users. You mentioned deterministic wallets, are these BIP-32 compatible? No, they are Electrum compatible. BIP-32 wallets will happen once Electrum and other clients start using them, and I have an implementation to follow and understand how to design a nice API for libbitcoin. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: stevenh512 on July 22, 2013, 01:55:24 PM Electrum compatible is probably good enough for now. :)
The latest Electrum from GitHub does have an up-to-date BIP-32 implementation, but I don't think there's any way to actually use it in Electrum yet. There are also a couple other Python and Java implementations on GitHub but I don't know how up to date those are. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jgarzik on July 22, 2013, 02:53:35 PM Very cool. It is much like my recently introduced txtool utility (https://bitcointalk.org/index.php?topic=249205.0).
I tend to prefer the git-like sub-command model, rather than putting all the utilities in PATH. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on July 22, 2013, 06:03:03 PM Very cool. It is much like my recently introduced txtool utility (https://bitcointalk.org/index.php?topic=249205.0). I tend to prefer the git-like sub-command model, rather than putting all the utilities in PATH. Yeah the point is that the installer should put them in a non-default location with a prefix like sx.newkey and then a bash script provides the wrapper on top together with the help and everything. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on July 23, 2013, 02:04:01 AM Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Red Emerald on July 23, 2013, 02:36:13 AM Maybe I missed it. Why the name "sx"?
Very cool. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on July 23, 2013, 09:47:21 AM The original: https://bitcointalk.org/index.php?topic=50721.0
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: K1773R on July 23, 2013, 10:46:08 AM thanks genjix, this will save alot time in the future :)
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: hahahafr on July 24, 2013, 12:17:31 AM Question: Does sx support multi-sig transactions?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on July 24, 2013, 01:39:30 AM Not yet. Will do.
New easy install/update script: START HERE: Code: $ wget http://sx.dyne.org/install-sx.sh sx should now be installed. Enjoy! Special thanks to Andrew Day and Vitalik Buterin. Big thanks to Santiago Mendez who put in the time to help me improve the tools offering valuable feedback. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on August 02, 2013, 09:41:27 PM Question: Does sx support multi-sig transactions? multisignature now works: Code: =============================== offline multisignature tx = micropayment channels (exchange raw tx, sign your input, exchange signatures) or you can do offline tx + MPK with multisig for doubly secure offline wallet. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: AsymmetricInformation on August 04, 2013, 05:32:14 PM I'm sorry but I always get:
In file included from ./../include/bitcoin/utility/big_number.hpp:6:0, from ./../include/bitcoin/constants.hpp:6, from ./../include/bitcoin/satoshi_serialize.hpp:4, from satoshi_serialize.cpp:1: ./../include/bitcoin/types.hpp:24:9: error: 'atomic' in namespace 'std' does not name a type ./../include/bitcoin/types.hpp:25:25: error: 'atomic_counter' was not declared in this scope ./../include/bitcoin/types.hpp:25:39: error: template argument 1 is invalid ./../include/bitcoin/types.hpp:25:59: error: invalid type in declaration before ';' token make[1]: *** [satoshi_serialize.lo] Error 1 make[1]: Leaving directory `/usr/local/src/libbitcoin-git/src' make: *** [all-recursive] Error 1 on the "libtool: compile" line. I tried to re-run the install.sh lines one by one, and libbitcoin-git seems to make it into /usr/local/src/ but then later on terminal seems to say that libbitcoin is not available. It suggested setting a directory but I could not figure it out." This is just like Gavin's multisig example, which I couldn't figure out either! DARN. Help would be appreciated. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on August 05, 2013, 03:09:00 PM Run 'g++ --version'
Your compiler should be 4.7 or higher. I think you might have an older version. I'm sorry but I always get: In file included from ./../include/bitcoin/utility/big_number.hpp:6:0, from ./../include/bitcoin/constants.hpp:6, from ./../include/bitcoin/satoshi_serialize.hpp:4, from satoshi_serialize.cpp:1: ./../include/bitcoin/types.hpp:24:9: error: 'atomic' in namespace 'std' does not name a type ./../include/bitcoin/types.hpp:25:25: error: 'atomic_counter' was not declared in this scope ./../include/bitcoin/types.hpp:25:39: error: template argument 1 is invalid ./../include/bitcoin/types.hpp:25:59: error: invalid type in declaration before ';' token make[1]: *** [satoshi_serialize.lo] Error 1 make[1]: Leaving directory `/usr/local/src/libbitcoin-git/src' make: *** [all-recursive] Error 1 on the "libtool: compile" line. I tried to re-run the install.sh lines one by one, and libbitcoin-git seems to make it into /usr/local/src/ but then later on terminal seems to say that libbitcoin is not available. It suggested setting a directory but I could not figure it out." This is just like Gavin's multisig example, which I couldn't figure out either! DARN. Help would be appreciated. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on August 08, 2013, 05:00:01 PM This script will automate creating, redeeming and sending an MN multisignature transaction for you:
http://sx.dyne.org/automsig.sh Read the first line and uncomment it to generate a new set of keys for the first time. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: juca on August 10, 2013, 08:58:54 PM thanks for all!
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Abdussamad on August 13, 2013, 06:58:09 AM Interesting. I especially like the electrum compatible wallet creation. But will wait for experts to go through the code.
BTW the OP has his own wikipedia page: http://en.wikipedia.org/wiki/Amir_Taaki Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on August 16, 2013, 11:42:46 AM Thanks all. I've added lots more commands for fetching raw transactions and working with block headers. The help should display all.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on August 18, 2013, 02:58:52 AM Code: $ sx help validtx Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: antonimasso on August 18, 2013, 10:10:09 AM ****
The author of the article answered my question, change that line to: for x in `seq 0 2`; do sx rawscript [ `cat sig$x` ] [ `cat pub1 | sx pubkey` ] | sx set-input txfile.tx $x > txfile2.tx; mv txfile2.tx txfile.tx; done **** Hello, I've been following the steps in this article (http://bitcoinmagazine.com/what-libbitcoin-and-sx-are-and-why-they-matter/), but can't seem to make a valid raw transaction from an address with multiple unspent inputs. It misses the scriptSig data from each prev_out. If I copy the raw transaction that for x in `seq 0 2`; do sx rawscript [ `cat sig$x` ] [ `cat pub1` ] | sx set-input txfile.tx $x; done returns it shows that only the first prev_out has the scriptSig data. When using an address with only one unspent transaction it works as expected. These are the steps I follow: sx history `cat addr1` | grep Unspent -B 2 | grep output | awk '{print $2}' > input sx mktx txfile.tx `cat input` -o 18qk7SqRHuS4Kf3f6dmsvqqv7iw1xy77Z6:90000 sx rawscript dup hash160 [ `cat addr1 | sx decode-addr` ] equalverify checksig > raw.script cat pk1 | sx sign-input txfile.tx 0 `cat raw.script` > sig sx rawscript [ `cat sig` ] [ `cat pub1` ] | sx set-input txfile.tx 0 sx broadcast-tx txfile.tx Any ideas? Thanks Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: davout on August 18, 2013, 10:13:06 AM Have you lowered the g++ dependency?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on August 19, 2013, 10:02:39 PM Have you lowered the g++ dependency? g++ 4.7 or higher as always. This is the version of g++ that properly implements the C++ standard. g++ 4.7 is in pretty much every Linux distro now. Older g++ do not fully implement the new C++ standard. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: davout on August 19, 2013, 10:22:22 PM g++ 4.7 or higher as always. This is the version of g++ that properly implements the C++ standard. g++ 4.7 is in pretty much every Linux distro now. Older g++ do not fully implement the new C++ standard. I personally use Ubuntu LTS or Debian stable for servers I manage, and as far as I know they don't have g++ 4.7. If you're targeting sysadmins (which I think is great) it would be good to have it build easily on these versions. I really like the idea of having ligthweight tools that I can use on my servers instead of running a resource-hungry client, but if I need to fiddle around to get g++ 4.7 or run cutting edge versions that's kind of a turn off. Then again I don't know shit about C++ so I have no idea about the difficulty of working around the limitations of g++ 4.6.3 which is present on Ubuntu LTS for example. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: ADgordo on September 02, 2013, 07:22:23 PM Github is spitting a 404 at
https://github.com/genjix/sx/ Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on September 08, 2013, 02:14:31 PM Github is spitting a 404 at https://github.com/genjix/sx/ https://github.com/spesmilo/sx/ sx now supports embedding files in the blockchain. $ echo foo | sx embed-addr $ 1N9v8AKBqst9MNceV3gLmFKsgkKv1bZcBU send some bitcoin to that address, and it will be a record in the blockchain of some data. But I recommend to use the install script instead. You can even specify a local path and you don't need to be root. It will build the dependencies needed and stuff. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Abdussamad on September 08, 2013, 06:39:21 PM Is there any documentation for how to use the network parts of this tool? Like how to setup obelisk with the blockchain data so that I can do sx history and so on?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on September 11, 2013, 01:58:24 AM Hey,
We're just working on a tool to convert the bitcoind bootstrap.dat into a libbitcoin blockchain which would make the transition easier. For now I would look at the config in /etc/obelisk/. You want the port of the frontend in balancer.cfg for your sx.cfg Commands to run: # Initialize blockchain $ mkdir blockchain $ sx initchain blockchain/ # Run the load balancer $ obbalancer # Run a worker $ obworker You can view debug.log and error.log to see the output of the worker. It's important that everyone setup an Obelisk server though. I will make a proper release though soon, and then it will include instructions and I'll be ready for everyone to run versions. Soon soon. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: greBit on September 13, 2013, 11:36:48 AM The simplest way to install sx, is to use the *install-sx.sh* bash script. Code: $ wget http://sx.dyne.org/install-sx.sh sx should now be installed. Just a quick note for future reference. Under Ubuntu 12.04 the script fails to install for a few reasons. Quote DEPENDENCIES="git build-essential autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses-dev" Firstly, in order to build libbitcoin, I require libboost1.48-all-dev instead of libboost-all-dev, which breaks your dependency checking. The same can be said for other dependencies which on my system, are named slightly differently - e.g. I have 'libncurses5-dev' which also breaks the dependency checking. Also I was unable to build obelisk without making modifications, I get Quote In file included from worker/publisher.hpp:4:0, from worker/publisher.cpp:1: /usr/include/zmq.hpp: In member function ‘zmq::context_t& zmq::context_t::operator=(zmq::context_t&&)’: /usr/include/zmq.hpp:207:13: error: ‘swap’ is not a member of ‘std’ std::swap(ptr, rhs.ptr); Which I fixed by making sure to include <algorithm> in various places in the code. Now it seems to be all nicely installed so I will have a play :) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: greBit on September 13, 2013, 12:13:11 PM Forgive the newbie question, but how do I actually configure SX so it has a blockchain database to query?
I just want to run the command `sx balance 1...` but this simply hangs with no output. I am guessing this is because it has no idea about how to get the information, i.e. it has no blockchain database. So please how do I configure this? Does it depend on bitcoin-qt/bitcoind ? cheers! Edit: I have tried an `sx initchain path-to-bitcoin-qt-blockchain` to no avail. this also just hangs with no response Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Abdussamad on September 13, 2013, 02:59:55 PM Hey, We're just working on a tool to convert the bitcoind bootstrap.dat into a libbitcoin blockchain which would make the transition easier. For now I would look at the config in /etc/obelisk/. You want the port of the frontend in balancer.cfg for your sx.cfg Commands to run: # Initialize blockchain $ mkdir blockchain $ sx initchain blockchain/ # Run the load balancer $ obbalancer # Run a worker $ obworker You can view debug.log and error.log to see the output of the worker. It's important that everyone setup an Obelisk server though. I will make a proper release though soon, and then it will include instructions and I'll be ready for everyone to run versions. Soon soon. Where do you create the blockchain directory? I mean the config file does not mention a full path. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: greBit on September 13, 2013, 06:44:35 PM Where do you create the blockchain directory? I mean the config file does not mention a full path. I don't have any answers im afraid :( Do you get any sort of output when executing `sx initchain blockchain/` ? I get literally zero and nothing in debug or error logs. It just hangs silently. I have no idea if it is expecting that directory to be an existing blockchain-dir (i.e. from bitcoin-qt) or a leveldb-based one. Or what that command is supposed to do, is it converting an existing blockchain? or connecting to the bitcoin network to build it up itself? There is a script /usr/local/bin/download-blockchain.sh which seems to try to rsync the blockchain from some server. But of course it fails miserably as it cannot authenticate. Im not making much progress :( Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on September 14, 2013, 08:18:56 PM Forgive the newbie question, but how do I actually configure SX so it has a blockchain database to query? I just want to run the command `sx balance 1...` but this simply hangs with no output. I am guessing this is because it has no idea about how to get the information, i.e. it has no blockchain database. So please how do I configure this? Does it depend on bitcoin-qt/bitcoind ? cheers! Edit: I have tried an `sx initchain path-to-bitcoin-qt-blockchain` to no avail. this also just hangs with no response Hey, My email is amir@unsystem.net if you ever want to reach me directly with questions. I've been making changes recently, so my server might sometimes experience downtime. Obelisk and SX aren't released yet but a release will be happening soon. Then we will create a stable production server, and keep a separate one for development. If you want to create your own: $ mkdir blockchain $ sx initchain blockchain/ INFO: Imported genesis block 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f You now have a blockchain with the genesis block. If you start the worker, it will begin downloading the blockchain. The rsync tool is obselete. We're working on a tool to bootstrap the Bitcoin blockchain but it is experimental: https://github.com/spesmilo/libbitcoin/tree/master/tools So you'll be able to use rtorrent to download it from bittorrent, then import it into libbitcoin (Obelisk). The blockchain path is in /etc/obelisk/worker.cfg That compile error is with ZeroMQ, and should be fixed by them. Since the problem doesn't occur in Debian Wheezy or Ubuntu 13.04, it's probably fixed. Thanks! Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: greBit on September 15, 2013, 08:46:49 AM If you want to create your own: $ mkdir blockchain $ sx initchain blockchain/ INFO: Imported genesis block 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f Hey Amir thanks for the reply. I guess I have a dodgy build then, as when I do 'sx initchain blockchain/' it just silently hangs :( But what does this command actually do? Where is it trying to get the data from? Anyways ill come back to this when it is released, it looks very promising :) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on September 16, 2013, 01:02:06 PM history/balance/wallet commands:
My host is unreachable for a bit: http://wiki.hetzner.de/index.php/Netzwerkkonfiguration_wegen_Switchanpassung/en Once my server is available, everything should be working again. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jago25_98 on November 15, 2013, 08:56:19 PM Just a quick one to say thanks and congrats for the first user level multisig implementation.
The stage is set for a website programmer now to build a frontend to assist democratic voting through payments. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jago25_98 on November 16, 2013, 10:22:15 PM Some deps that might be useful for CentOS? Hopefully might see a rpm for that at some stage - would be useful seeing as most webservers are CentOS.
fedora: Code: libcurl-devel.x86_64 openssl-devel.x86_64 gcc-c++ asio-devel leveldb.x86_64 Got through the deps but libbitcoin doesn't compile for me: Code: libbitcoin-git]$ ./configure --enable-leveldb --prefix /usr/local/ Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: moderate on November 16, 2013, 11:39:37 PM Code:
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: samson on November 17, 2013, 01:55:01 AM Maybe not related but could this be something to do with CentOS disabling all Elliptic Curve functionality in their standard packaged OpenSSL distribution ?
However in the next version which is going to be released very soon it will be restored after a long period of on and off support. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jago25_98 on November 17, 2013, 07:43:59 PM Are the sx tools stuck on testnet? No, it's fully operational AFAIK. Moderate: Thanks for that, missed the leveldb. ./configure should have spotted it. Will search and try again Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on November 19, 2013, 12:26:53 AM Hi! The instructions are here:
http://libbitcoin.dyne.org/obelisk-setup.html But you can also use a public Obelisk server as listed here: http://libbitcoin.dyne.org/servers.html (some might be down but after the crowd funding we are going to setup some nice stable servers for people) The config file for sx is in PREFIX/share/sx/sx.cfg. Copy this to ~/.sx.cfg (PREFIX is usually /usr/local/share/) You can install sx, obelisk and everything using: wget http://sx.dyne.org/install-sx.sh sudo bash install-sx.sh Wolf0, not sure why you get that? jago, everything works now? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: oys on November 19, 2013, 06:03:17 AM This is absolutely awesome. There are so many usecases for this. The one I am currently trying to solve is how to quickly fetch the history associated with an address.
I am running my own obelisk server which looks to be working, but the history command does not return anything even after letting it run for several minutes. bci-history works great, but relies on trusting blockchain.info from what I understand. Is my understanding correct that sx history should return a value within a couple of seconds at most, or does it parse the entire blockchain? ----- Edit: to answer my own question, it looks like I was trying to query a public obelisk server since that's the default. Reading the documentation and adding service = "tcp://localhost:9091" to ~/.sx.cfg fixed things. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: rbdrbd on November 24, 2013, 02:38:02 PM Just got sx built under Ubuntu, thanks! Just wondering how portable 'sx' is to windows? Do I need cygwin, or is it possible to compile with VC++? Any build instructions anywhere (or pre-built binaries)?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jago25_98 on November 24, 2013, 03:38:31 PM Could really do with an RPM...
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on November 24, 2013, 04:55:28 PM Just got sx built under Ubuntu, thanks! Just wondering how portable 'sx' is to windows? Do I need cygwin, or is it possible to compile with VC++? Any build instructions anywhere (or pre-built binaries)? never done it, but when our infrastructure is more setup (after crowd funding) we will be deploying/testing/making builds. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: rbdrbd on November 24, 2013, 08:33:23 PM Just got sx built under Ubuntu, thanks! Just wondering how portable 'sx' is to windows? Do I need cygwin, or is it possible to compile with VC++? Any build instructions anywhere (or pre-built binaries)? never done it, but when our infrastructure is more setup (after crowd funding) we will be deploying/testing/making builds. The big challenge for me was to figure out how to use sx in the first place (I would just run it and it would hang)...so then I figured out obworker/obbalancer. Since my goal was an automated setup for a Mastercoin-related project (mastercoind) that depends on 'sx', I made a script to allow for this (thats why some of the paths may reference mastercoind). You're welcome to use any of this code, if you find it helpful....it sure allows for more of an "out of the box" setup of everything: setup script for actually configuring obworker and obbalancer (as their own user, etc): http://pastebin.com/MWJsaXKY obbalancer init.d file: http://pastebin.com/43ivabs5 obworker init.d file: http://pastebin.com/MiFfgA3s obworker log rotation: http://pastebin.com/udJypGSa Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on November 24, 2013, 09:54:12 PM oh this is wicked! this is exactly what I wanted! can I include them in the project?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: rbdrbd on November 24, 2013, 10:35:01 PM oh this is wicked! this is exactly what I wanted! can I include them in the project? Yes, absolutely (that was my goal). Modify as needed and go for it! Then I can pull them out of mastercoind. :) I really need to get sx working on windows as well... let me spend a bit of time and look into it. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jago25_98 on November 25, 2013, 12:00:12 AM Couldn't get it to build on fedora.... could do with a rpm...
Just got sx built under Ubuntu, thanks! Just wondering how portable 'sx' is to windows? Do I need cygwin, or is it possible to compile with VC++? Any build instructions anywhere (or pre-built binaries)? never done it, but when our infrastructure is more setup (after crowd funding) we will be deploying/testing/making builds. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: rbdrbd on November 25, 2013, 02:29:06 AM and building on windows looks like it will be a LOT of work. cygwin may be a good first step, as it has g++ 4.7 I believe...but from what I understand of it, there's still a bunch of work that has to happen to the Makefiles, etc. A native windows port (using vc++) would be even more work.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: mikeg on November 30, 2013, 11:56:39 AM Is there a way to generate a new seed/12-word mnemonic with dice rolls?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Hawkix on November 30, 2013, 01:18:24 PM You can always roll enough times to generate at least 256-bit entropy, form it as e.g. string (1536123 ... ) and hash it.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: davout on November 30, 2013, 01:26:40 PM Is there a way to generate a new seed/12-word mnemonic with dice rolls? http://world.std.com/~reinhold/diceware.html Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: mikeg on November 30, 2013, 03:11:53 PM Is there a way to generate a new seed/12-word mnemonic with dice rolls? http://world.std.com/~reinhold/diceware.html I'm not looking to generate a private key. I'm trying to create a libbitcoin seed and the associated deterministic wallet from the dice rolls. The sx code that generates random seeds is in https://github.com/spesmilo/libbitcoin/blob/master/src/deterministic_wallet.cpp (https://github.com/spesmilo/libbitcoin/blob/master/src/deterministic_wallet.cpp) Code: void deterministic_wallet::new_seed() Best case would be something like... Code: >echo "6132235463233123456522124112542554365223124562346652123111266" | sx newseed | sx mnemonic Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 02, 2013, 04:24:33 AM Use this Python code:
$ python >>> "%x" % int("".join([str(int(c) - 1) for c in "6132235463233123456522124112542554365223124562346652123111266"]), 6) Replace the string "613...." with whatever you want. I'm assuming that each digit represents a dice roll from 1 to 6. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: mikeg on December 02, 2013, 04:24:01 PM Use this Python code: $ python >>> "%x" % int("".join([str(int(c) - 1) for c in "6132235463233123456522124112542554365223124562346652123111266"]), 6) Replace the string "613...." with whatever you want. I'm assuming that each digit represents a dice roll from 1 to 6. Thanks - that worked. I was playing around with libbitcoin/sx using a bash script wrapper to generate offline, electrum compatible wallets. https://github.com/gehlm/paper-btc (https://github.com/gehlm/paper-btc) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jcrubino on December 03, 2013, 04:35:48 AM Amir
Sx is not installing via the bash script on fresh Ubuntu 12.04 64 bit installs As posted on the sx.dyne page comments this is the result of running the script: Code: Error: libconfig++-dev is not installed! However all these libs are installed and the further attempts to install from the bash script just result in this message again. What is the fix; I saw it methioned in this thread but the "algo in code" fix was ambigous at best. Also how can we point sx at alt chains? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 03, 2013, 03:24:11 PM What is the output of:
$ dpkg -s libconfig++-dev ? thanks Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: RoxxR on December 03, 2013, 04:33:03 PM Any windows binaries available? Or simple build instructions?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jcrubino on December 03, 2013, 05:03:21 PM What is the output of: $ dpkg -s libconfig++-dev ? thanks Code: main@computer:~$ dpkg -s libconfig++-dev Thank you Amir. You contributions to the bitcoin community are always among the best. I am looking forward to using the darkwallet stack in production for not so dark things.... that said it would be nice if DarkWallet had a less ominous moniker. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: flatfly on December 03, 2013, 06:22:42 PM Any windows binaries available? Or simple build instructions? Just check out page 3 of this thread. The short answer is, not at this time, unfortunately. @genjix: Many thanks for your efforts. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 04, 2013, 02:19:42 AM investigating the issue. will deploy a vps to test. if you want to skip that step for now, you can delete change DEPENDENCIES="" in the install script (it will skip the dependencies check).
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jcrubino on December 04, 2013, 04:03:14 AM Thanks
I can maintain debian / buntu docker files for sx / oblisk etc once I understand the dependencies in more depth. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jcrubino on December 04, 2013, 04:16:13 AM you can delete change DEPENDENCIES="" in the install script (it will skip the dependencies check). Got further but ended with this: Code: make[1]: Entering directory `/usr/local/src/libbitcoin-git/src' Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 05, 2013, 06:07:34 PM redownload your install-sx.sh script and continue. i've patched it now to work.
you need g++ 4.7 or higher. http://askubuntu.com/questions/76885/where-can-i-find-a-g-4-7-package you need to install a newer leveldb also. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 05, 2013, 07:23:07 PM New library for interfacing with Obelisk servers and doing Bitcoin functionality.
Pure Python so library is easily portable to platforms that can run a Python interpreter. https://bitcointalk.org/index.php?topic=354607 https://github.com/darkwallet/python-obelisk/ See examples/ directory. This is a collaboration between Pablo Martin's ZMQ/Obelisk implementation, Robert Williamson's blockalchemy (https://github.com/Bobalot/blockalchemy) library and code from ThomasV's Electrum (http://electrum.org/). Obelisk is a scalable blockchain query infrastructure. See the setup guide (http://libbitcoin.dyne.org/obelisk-setup.html). There is a public server available at 37.139.11.99:9091 but I wouldn't use it for anything production (besides testing). A pure Python library is great because it can be deployed easily without requiring dependencies. This allows code to be ported across many platforms such as the mobile phone with Kivy, desktops or any platform running Python. Features: * Blockchain queries and navigation through Obelisk servers. * Construct & sign transactions. * BIP32 hierarchical wallet. * Traverse the blockchain using a syntax similar to Django ORM / SQL alchemy. Use cases: * Website payment backend (store and manage the keys yourself). * Wallet software. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gluk64 on December 08, 2013, 09:54:57 PM now obelisk doesn't link:
Code: Making all in include/obelisk snappy is installed. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 09, 2013, 07:46:41 AM This looks like a problem with LevelDB. Is your platform packaging a recent version of LevelDB?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gluk64 on December 09, 2013, 10:18:47 AM Thank you, updating leveldb to 1.14.0 and recompiling it worked.
git clone https://code.google.com/p/leveldb/ points to 1.12, that was the problem. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 14, 2013, 03:20:46 AM Thanks I can maintain debian / buntu docker files for sx / oblisk etc once I understand the dependencies in more depth. just been reading about this. I'm not an admin guy but docker sounds really cool. update any progress you make on this. we have a wiki: https://wiki.unsystem.net/ let me know your user if you make an account Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 14, 2013, 03:35:06 AM setup script for actually configuring obworker and obbalancer (as their own user, etc): http://pastebin.com/MWJsaXKY obbalancer init.d file: http://pastebin.com/43ivabs5 obworker init.d file: http://pastebin.com/MiFfgA3s obworker log rotation: http://pastebin.com/udJypGSa There's a setup script, obbalancer init.d script, obworker init.d script and obworker log rotation script. Questions to everyone: 1. Where should the scripts normally reside on your system? Would the setup script be installed with the package? 2. What's the standard GNU way of distributing them? scripts/? How would I name them? Thanks. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 14, 2013, 09:38:47 PM Thanks to rbdrbd, in Obelisk there are now init.d scripts, setup script and logrotation:
https://github.com/spesmilo/obelisk/tree/master/scripts Going to be testing these. Would appreciate any feedback to improve them. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 16, 2013, 04:44:24 PM sx now auto creates a config for your user if one doesn't exist.
https://github.com/spesmilo/sx/commit/71eebef3d702507643058863206a79a047623c7a next goal is support for BIP32 deterministic wallets. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: phillipsjk on December 16, 2013, 11:32:25 PM Okay, who added "--enable-testnet" to the libbitcoin-leveldb-git PKGBUILD? ::) Does this imply that there is no way to switch to testnet at run-time? Sometimes you don't want to risk "real" coins. Is there a sane way to have both versions installed? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on December 17, 2013, 02:38:05 PM Okay, who added "--enable-testnet" to the libbitcoin-leveldb-git PKGBUILD? ::) Does this imply that there is no way to switch to testnet at run-time? Sometimes you don't want to risk "real" coins. Is there a sane way to have both versions installed? I'm going to add runtime support of testnet in the future. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on December 18, 2013, 02:52:42 AM I'm getting the following issue when trying to install sx using the install-sx.sh file. I left out earlier output.
Code: obelisk now installed. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: qrius1111 on January 01, 2014, 12:04:57 PM i'm trying to install sx. i get close i think but it dies as there is a missing file in obelisk:
Code: ... i'm on debian wheezy. grebit you may have had a similar error? Also I was unable to build obelisk without making modifications, I get Quote In file included from worker/publisher.hpp:4:0, from worker/publisher.cpp:1: /usr/include/zmq.hpp: In member function ‘zmq::context_t& zmq::context_t::operator=(zmq::context_t&&)’: /usr/include/zmq.hpp:207:13: error: ‘swap’ is not a member of ‘std’ std::swap(ptr, rhs.ptr); Which I fixed by making sure to include <algorithm> in various places in the code. Now it seems to be all nicely installed so I will have a play :) can you explain what modifications you made to get it working? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: qrius1111 on January 01, 2014, 12:32:08 PM hmm well i got obelisk to install after all, like so:
Code: $ cd obelisk-master and now sx has installed too :) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on January 01, 2014, 01:23:49 PM qrius1111 did you use the install-sx.sh script? http://sx.dyne.org/install-sx.sh
I recommend all to use git until next release which is coming soon. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: qrius1111 on January 01, 2014, 10:34:40 PM yeah i did use install-sx.sh but it had a lot of problems for me. firstly with zeromq then with obelisk. i got it working by downloading these from git then installing manually before running the sx installer again. anyway its working now :)
is there a way to check the progress when running the history command? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: malefice on January 04, 2014, 08:29:13 PM i changed install-sx.sh to compile for testnet, but it seems not to work.
Code: ./configure --enable-testnet --enable-leveldb --prefix $INSTALL_PREFIX at github there is a reference to -DENABLE_TESTNET for CFLAGS https://github.com/spesmilo/sx/issues/9 I dont know C, could you explain what I need to do to have sx enabled for testnet? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on January 05, 2014, 01:05:26 AM I changed the first line of Makefile.am (https://github.com/spesmilo/sx/blob/master/src/Makefile.am#L1).
Old: Code: AM_CPPFLAGS = ${libbitcoin_CFLAGS} ${libwallet_CFLAGS} New: Code: AM_CPPFLAGS = ${libbitcoin_CFLAGS} ${libwallet_CFLAGS} -DENABLE_TESTNET Then compile as normal (./configure; make; sudo make install). Now mktx doesn't complain when I create a transaction with an address that begins with m. I have not tested beyond that. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: malefice on January 05, 2014, 11:55:51 AM @jbs1
truth is that it still operates on the main block chain, e.g. sx history Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on January 05, 2014, 04:48:14 PM Yes, but if you point to a Testnet obelisk server in your sx.cfg file, it should fix that. The list of servers is at https://wiki.unsystem.net/index.php/Obelisk/Servers. There is one Testnet server listed and it appears to not be working for me.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: malefice on January 05, 2014, 07:23:49 PM Yes, but if you point to a Testnet obelisk server in your sx.cfg file, it should fix that. The list of servers is at https://wiki.unsystem.net/index.php/Obelisk/Servers. There is one Testnet server listed and it appears to not be working for me. Thanks jbis1 tried to guesswork and compile obelisk wih -DENABLE_TESTNET. No chance. And this is all the documentation I have: cat /usr/local/share/doc/obelisk/* | grep testnet https://wiki.unsystem.net/index.php/Obelisk At this point I consider moving to bitcoinj - after all I'm looking for the easiest way to work with transactions. thx, malefice Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on January 12, 2014, 10:58:07 PM I'd just like to announce that I'm running an Obelisk server with the publisher enabled on ottrbutt.com, default ports. added to wiki feel free to make an account and let me know username Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on January 16, 2014, 11:32:30 AM btw sx supports new stealth address payments:
https://wiki.unsystem.net/index.php/Sx/Stealth still waiting for others to finalise the address scheme, but the basic kit is there. many thanks jeremy spillman, peter todd and others! Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on January 16, 2014, 02:50:48 PM WARNING: I just upgraded libbitcoin to new style compressed public keys. This will produce incompatibility with generating addresses on old-style Electrum deterministic wallets. Generating private keys is still fine, but the addresses will look different. I suggest moving funds off your wallet before upgrading and then moving them back after.
Anyone who needs the old style uncompressed keys, can use the latest libbitcoin tarball release off the website rather than the Git repo. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: ShadowOfHarbringer on January 16, 2014, 03:03:08 PM btw sx supports new stealth address payments: https://wiki.unsystem.net/index.php/Sx/Stealth This page has invalid SSL certificate. Can you copy/paste the certificate fingerprint, so I can add it to permanent exceptions ? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: marcus_of_augustus on January 16, 2014, 10:07:49 PM btw sx supports new stealth address payments: https://wiki.unsystem.net/index.php/Sx/Stealth still waiting for others to finalise the address scheme, but the basic kit is there. many thanks jeremy spillman, peter todd and others! nice work genjix Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on February 11, 2014, 05:08:59 AM I've implemented some changes to stealth from Peter Todd.
The nonce is now called 'ephemeral public key'. The stealth address format has changed slightly too. If needed, I can provide a conversion utility for old-style stealth addresses. This page is updated to reflect latest changes: https://wiki.unsystem.net/index.php/Sx/Stealth Developer documentation about stealth: https://wiki.unsystem.net/index.php/DarkWallet/Stealth Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: 99Percent on March 09, 2014, 07:53:41 AM for those doing install on a fresh Linux Mint or Ubuntu machine run this before trying to install from the install-sx.sh script
Code: sudo apt-get install ncurses-dev libconfig++-dev libzmq-dev libleveldb-dev libboost-dev build-essential g++ libcurl4-gnutls-dev dh-autoreconf git It will satisfy many dependencies needed to build sx though probably not all. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: grue on March 11, 2014, 02:58:47 AM for those doing install on a fresh Linux Mint or Ubuntu machine run this before trying to install from the install-sx.sh script you do realize a full list of dependencies is in the installation script, right?Code: sudo apt-get install ncurses-dev libconfig++-dev libzmq-dev libleveldb-dev libboost-dev build-essential g++ libcurl4-gnutls-dev dh-autoreconf git It will satisfy many dependencies needed to build sx though probably not all. Code: echo "Ubuntu/Debian users require the following packages:" tl;dr Code: sudo apt-get git build-essential autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses5-dev Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: luv2drnkbr on March 11, 2014, 05:38:07 AM I also always get errors about ecdsa and some other python stuff when I install SX on a new Ubunutu. So I'd add
Code: sudo apt-get install python-pip to the "do before you install SX" guide. I also had trouble with zmq and I don't remember which thing I had to install to stop getting that error. It may have been "pip install zeroqm" but I honestly don't remember. I know that that zmq error took me a few minutes to solve. (I'm new to Linux, so I have to look up literally everything.) I just know the default libzmq-dev package wasn't enough and I had to install some other zmq thing. As always, Google is your friend, and other people have had similar errors. Even if there's no SX-specific posts about it, somebody has had that module missing for something else and posted about it. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: 99Percent on March 12, 2014, 12:15:48 AM I did not realize it.
Because it is echo-ed right at the beginning it quickly gets lost after a lot of building and compilation output. Perhaps it would be better to just issue a apt-get command to install all the required packages when ubuntu type linux is detected? Better yet, why not just make a dpkg for those doing install on a fresh Linux Mint or Ubuntu machine run this before trying to install from the install-sx.sh script you do realize a full list of dependencies is in the installation script, right?Code: sudo apt-get install ncurses-dev libconfig++-dev libzmq-dev libleveldb-dev libboost-dev build-essential g++ libcurl4-gnutls-dev dh-autoreconf git It will satisfy many dependencies needed to build sx though probably not all. Code: echo "Ubuntu/Debian users require the following packages:" tl;dr Code: sudo apt-get git build-essential autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses5-dev Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 12, 2014, 12:47:05 AM Sorry about this. The install script should install those packages but the build stuff for sx and the rest of the libbitcoin-related tools need some work.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 12, 2014, 05:14:52 PM Hey everyone,
The new Obelisk has support for server-client encryption and signing using ed25519 crypto. The client can specify a key, and the server can specify which client pubkeys it will accept (or all) and a whitelist of IP addresses. See this config file for reference: https://github.com/spesmilo/obelisk/blob/master/src/worker/worker.cfg#L24 The install-sx.sh script will be broken because of new dependencies .etc so I will fix it now. Sorry for any difficulties. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 16, 2014, 12:39:01 AM I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy.
WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 16, 2014, 11:59:14 AM I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy. WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found Nope it looks fine. Those errors aren't a problem. Example: memory pool isn't full yet and there's txs depending on other txs in the mempool that aren't yours. It's normal. I'll make the wording sound less extreme. Important is that you're able to run 'sx fetch-last-height' and the block height matches blockchain.info or somewhere else. I need to document these tools better. Sorry about that. I'll be making efforts towards that goal as documentation is important. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 16, 2014, 01:20:09 PM If anyone is using unSYSTEM Obelisk servers, then they will be upgraded today (Sun 16 March). If you experience problems with the new unSYSTEM servers, then upgrade SX:
Code: $ wget http://sx.dyne.org/install-sx.sh or Code: $ wget http://sx.dyne.org/install-sx.sh You also have the option to run a different server with an older version of Obelisk, although I'll be encouraging operators to upgrade soon. List of servers: https://wiki.unsystem.net/index.php/Obelisk/Servers - let me know if you have a server to add to the list. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 16, 2014, 02:15:36 PM I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy. WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found Nope it looks fine. Those errors aren't a problem. Example: memory pool isn't full yet and there's txs depending on other txs in the mempool that aren't yours. It's normal. I'll make the wording sound less extreme. Important is that you're able to run 'sx fetch-last-height' and the block height matches blockchain.info or somewhere else. I need to document these tools better. Sorry about that. I'll be making efforts towards that goal as documentation is important. The docs aren't that bad and the error does make sense - if it hasn't got the full blockchain then there are going to be transactions that don't make sense to it, so it can't store them. It's sticking on block 278746 every time and once it gets to that block it is still using CPU but nowhere near the levels it normally uses when sync'ing. Looking up the blocks around this time it doesn't seem to be a gorilla block. Any ideas? Perhaps start fresh without my local bitcoind as one of the manual nodes.. is there any way my bitcoind could have a bad blockchain and not know about it? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 16, 2014, 04:03:01 PM have you configured it to only connect to your bitcoind? if so, how many blocks does your bitcoind have? use ./bitcoind getinfo to see. if bitcoind has the correct number of blocks then try restarting obelisk and/or restarting bitcoind. does it start syncing?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 16, 2014, 06:22:02 PM bitcoind has been running for months, fully up-to-date and regularly used. I've tried pointing obelisk to it exclusively, not pointing to it at all and pointing to it with other public connections too. restarting obelisk makes no difference and like I say I have started a fresh obelisk on a different server and when it hits this block, the same happens.
Edit: Debian 7 servers (one 64, one 32), open files limits increased, installed using your automatic install script and I'm very familiar with Linux & coding so feel free to get technical. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 16, 2014, 06:34:05 PM I'm using Debian Wheezy, what are you using? When did you install it? When did you start the daemon? Are you using an SSD? I would recommend an SSD because a lot of the code assumes you're using SSDs (0 seek times) as I believe they're the future of storage.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 16, 2014, 07:20:08 PM One is a fresh Wheezy and one is an upgraded Debian 6 that has been in use for years. I installed Obelisk about 10 days ago but I've done a few attempts to sync in that time.. I'm not using SSD but they are VirtualBox VMs so it's sortof SSD - that wouldn't explain why it always gets to this specific block and then never any further. I guess I'll just try another sync from the start.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 16, 2014, 08:11:44 PM ok, if you do then run the latest script. I've made lots of changes.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 16, 2014, 09:17:16 PM ok, if you do then run the latest script. I've made lots of changes. FYI on the latest install script it fails to remove the package libzmq on debian because it doesn't exist, only libzmq-dev does in the standard repositories (or at least on mine install).. removing that item from the script corrects the issue. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 16, 2014, 11:52:21 PM ok, if you do then run the latest script. I've made lots of changes. FYI on the latest install script it fails to remove the package libzmq on debian because it doesn't exist, only libzmq-dev does in the standard repositories (or at least on mine install).. removing that item from the script corrects the issue. Weird, because I'm testing on Debian Wheezy virtual machines. I'll look further, thanks. Edit: OK, I've changed it to a wildcard. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 18, 2014, 02:39:11 AM From now on use tcp://obelisk.unsystem.net:8081 as your server if you don't have one. No guarantees about uptime (at least for now) but I'll try to migrate it as I get more servers and maintain it as a public one.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 18, 2014, 02:55:50 AM From now on use tcp://obelisk.unsystem.net:8081 as your server if you don't have one. No guarantees about uptime (at least for now) but I'll try to migrate it as I get more servers and maintain it as a public one. If I donate a cheap VPS and point it at your balancer does that help? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 18, 2014, 02:06:00 PM From now on use tcp://obelisk.unsystem.net:8081 as your server if you don't have one. No guarantees about uptime (at least for now) but I'll try to migrate it as I get more servers and maintain it as a public one. If I donate a cheap VPS and point it at your balancer does that help? It's OK, we did the darkwallet campaign. It's more about manpower to develop the tools since we're testing and improving the software. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: instagibbs on March 18, 2014, 08:27:32 PM edit2: Getting an error with the libbitcoin step now. Help? I already checked, my libbitcoin dependencies all seem correct:
Quote make[1]: Entering directory `/usr/local/src/libbitcoin-git/src' CXX satoshi_serialize.lo CXX getx_responder.lo CXX threadpool.lo CXX network/network.lo network/network.cpp: In member function 'void libbitcoin::perform_connect_with_timeout::start(boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator, size_t, libbitcoin::network::connect_handler)': network/network.cpp:77:9: error: 'async_connect' is not a member of 'boost::asio' Getting this error. I think I've installed everything people are saying to install, and can't find any obvious packages via googling. edit: It appears that software needs g++ newer than the version I'm running, according to its github page. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 22, 2014, 03:19:04 AM Sorry but I have to conclude that Obelisk doesn't work on low memory (1.5 Gb), non-SSD virtual machines. Just for anyone out there trying. I've lost count how many times I've had to rm -R ./* and start again over the past 4 weeks or so due to some fatal error or another. Shame, because I really didn't want to use any more electricity with yet another physical server but I really want to have these sx tools available to me so I guess it has to be so.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 22, 2014, 12:29:00 PM edit2: Getting an error with the libbitcoin step now. Help? I already checked, my libbitcoin dependencies all seem correct: Quote make[1]: Entering directory `/usr/local/src/libbitcoin-git/src' CXX satoshi_serialize.lo CXX getx_responder.lo CXX threadpool.lo CXX network/network.lo network/network.cpp: In member function 'void libbitcoin::perform_connect_with_timeout::start(boost::asio::ip::basic_resolver<boost::asio::ip::tcp>::iterator, size_t, libbitcoin::network::connect_handler)': network/network.cpp:77:9: error: 'async_connect' is not a member of 'boost::asio' Getting this error. I think I've installed everything people are saying to install, and can't find any obvious packages via googling. edit: It appears that software needs g++ newer than the version I'm running, according to its github page. yep although this error is caused by using an older version of boost Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on March 22, 2014, 12:29:43 PM Sorry but I have to conclude that Obelisk doesn't work on low memory (1.5 Gb), non-SSD virtual machines. Just for anyone out there trying. I've lost count how many times I've had to rm -R ./* and start again over the past 4 weeks or so due to some fatal error or another. Shame, because I really didn't want to use any more electricity with yet another physical server but I really want to have these sx tools available to me so I guess it has to be so. you can still use the tools and we're running a public server at obelisk.unsystem.net:8081 Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on March 24, 2014, 10:12:15 PM Ugh, my server is currently down because ever since I've updated the sx stack, it errors out. Tried removing the blockchain, no luck. Code: Using config file: /etc/obelisk/worker.cfg I'm no expert and I'm sure Amir will reply, until then.. did you "init blockchain" correctly (matching your configured folder) after removing the data and also have you tried a new location just in case of some kind of lock preventing access to the DB file. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: grue on March 27, 2014, 11:35:34 PM the multisig documentation is broken. sx sign-input ouputs debug messages so it breaks the shell substitution in the second last step. Even if you fix that, you will get:
Code: Usage: set-input FILENAME N SIGNATURE_AND_PUBKEY_SCRIPT Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: dexX7 on April 04, 2014, 04:50:19 PM Hmm.. I'm not sure, what I'm doing wrong. I installed sx with the install script on several systems.
After running "sx fetch-last-height" and some other commands I receive the following error: Code: terminate called after throwing an instance of 'std::logic_error' Any help is very appreciated! :) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 05, 2014, 01:52:41 AM Hmm.. I'm not sure, what I'm doing wrong. I installed sx with the install script on several systems. After running "sx fetch-last-height" and some other commands I receive the following error: Code: terminate called after throwing an instance of 'std::logic_error' Any help is very appreciated! :) What system are you using? 32 bit or 64 bit? Thanks. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: dexX7 on April 05, 2014, 01:56:21 AM I tried Ubuntu 13.10 x64, Ubuntu 12.04.3 x64, Debian 7.0 x64, Arch Linux 2013.05 x64 and Fedora 19 x64.
The installation process was close to https://github.com/mastercoin-MSC/omniwallet#setup. I used droplets with 1 GB RAM. To confirm I'm not missing something very, very essential: After a basis setup with apt-get updates etc. running the install script should be sufficient to get results from sx without setting up an obelisk server, correct? Edit: Error remains. This time with a 4 GB Ubuntu 13.10 x64 box and libboost1.54-dev. Edit 2: Running an Obelisk worker fails at some point: Code: INFO [poller]: Block #495 00000000e47349de5a0193abc5a2fe0be81cb1d1987e45ab85f3289d54cddc4d Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 05, 2014, 04:53:25 PM ok, investigating this.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: dexX7 on April 06, 2014, 09:20:20 AM ok, investigating this. Thanks a lot. I'm using Digital Ocean as hoster, if this helps and if you like, I'll set up a fresh droplet for some tests. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 06, 2014, 02:09:30 PM ok, investigating this. Thanks a lot. I'm using Digital Ocean as hoster, if this helps and if you like, I'll set up a fresh droplet for some tests. yep a regression has been introduced. if you know how to use git you can revert to this commit in libbitcoin which works: ae5f9b3 Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 06, 2014, 03:47:41 PM fixed.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: dexX7 on April 06, 2014, 06:45:25 PM fixed. Installation was smooth but the error remains: Code: root@sx:~# sx fetch-last-height In the meanwhile I was able to set up a working sx with the following script: https://github.com/mastercoin-MSC/install-msc/blob/master/res/install-sx.sh Which seems to use the following commits: https://github.com/spesmilo/libwallet/commit/21447cc https://github.com/spesmilo/libbitcoin/commit/335489f https://github.com/spesmilo/obelisk/commit/58f326d https://github.com/spesmilo/sx/commit/a97f7be Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 07, 2014, 02:55:21 PM Which OS? 32bit or 64bit?
I will setup a VM and test once I know that info. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: dexX7 on April 07, 2014, 04:13:13 PM Ubuntu 12.10 x64
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: drwasho on April 08, 2014, 01:22:50 AM fixed. Installation was smooth but the error remains: Code: root@sx:~# sx fetch-last-height In the meanwhile I was able to set up a working sx with the following script: https://github.com/mastercoin-MSC/install-msc/blob/master/res/install-sx.sh Which seems to use the following commits: https://github.com/spesmilo/libwallet/commit/21447cc https://github.com/spesmilo/libbitcoin/commit/335489f https://github.com/spesmilo/obelisk/commit/58f326d https://github.com/spesmilo/sx/commit/a97f7be I've had the same problem. Latest version of Ubuntu. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: drwasho on April 08, 2014, 01:30:58 AM Hi folks,
Here is a screenshot: http://s28.postimg.org/4pk74rfdp/GUI_3.png -- drwasho Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: sd on April 09, 2014, 03:10:09 PM Code: root@sx:~# sx fetch-last-height I have that too with the latest sx from git. Ubuntu 13.10 x86_64. Is this fixed somewhere or should I hack the code? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 09, 2014, 11:25:48 PM I'm going to setup a VPS and test.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: drwasho on April 14, 2014, 03:18:30 AM I'm going to setup a VPS and test. Please do Amir, I can't broadcast transactions on sx because of this problem... it's the last thing I need to implement on the sx GUI. This is where the sx GUI is up to: http://s27.postimg.org/wehwwkcgz/GUI_3.png Edit: Grammar... it was late at night. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Lisa Sheridan on April 14, 2014, 07:56:56 AM investigating
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 15, 2014, 01:47:05 PM sorry guys for the delay as I've been at the bitcoin expo this weekend: http://bitcoinexpo.ca/
ok I've fixed the issue in git. going forwards we are going to switch to the git flow model, therefore there will be a stable master and an unstable develop branch. http://nvie.com/posts/a-successful-git-branching-model/ this will ensure breaking changes made during development don't impact people's ability to use the repo as a user. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 15, 2014, 05:02:56 PM you need to build czmq with libsodium and use 4.0
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 15, 2014, 06:27:11 PM you need to build czmq with libsodium and use 4.0 What do you mean, use 4.0? if you check out the install script: http://sx.dyne.org/install-sx.sh it should make more sense what's needed to build all. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 15, 2014, 07:41:39 PM added an example showing 3 of 5 multisignature
http://sx.dyne.org/multisig.html#generalizing-for-m-of-n-expressions Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 16, 2014, 12:47:18 AM Hi,
We will keep the master branch for periodic merges with some guarantee of stability for our users. Development will happen on the develop branch. This is a simplified version of the git-flow branching model: http://nvie.com/posts/a-successful-git-branching-model/ We can adopt the fuller scheme later if need be. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: sd on April 16, 2014, 09:23:27 AM It's working great for me now. Thanks genjix.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 16, 2014, 05:54:30 PM My Obelisk server is syncing, and with 4GB of RAM on my VPS, it's STILL getting whacked by the OOM killer. Could you possibly do something about that? OK, we should have a fix for this (things should drop blocks not go OOM) but it isn't easy. Use an SSD, not a spinning disk. It isn't built for spinning disk. Eventually we should have a way to distribute the blockchain, and I'm looking for good suggestions for how people could download it from a server. I'm sure people wouldn't appreciate untarring many gigabytes. BTW obelisk.unsystem.net is running for the public. I try to keep that one up. https://wiki.unsystem.net/index.php/Libbitcoin/Servers Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 17, 2014, 03:31:55 AM ok, do you want to give me temp access to have a look and then later you can revoke my access?
put my ssh pubkey below in ~/.ssh/authorized_keys I only need user access (no root) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCcnq1k8ubms4HiyaC8cYmWBja7kemPePtd6GHHoEoTPUqgVFj SqKRotbRF7qguhI9A4PqY6w3TPzoxL6DXYGkS3F4OWRZtHBlMPlu27NXxJk5tNL3dP4H+OdBDnAL2gYY85yA3ozvj/guX+LfVr+8Hav4mjIRBze2wQrMZgjb65/Sk/jJJJBxZH0axIgJrjTvZKD0HmuhpWkiYZVzxfEkVv60UA1sXHn4h6tQTPtWbOiK0zMWMlb9Poy+o12tNHX8pnwtb7vDkESUwZJgb+RSdLQqI4N2Wj+EQSGphXR0QUJGmibrfsPXJQndf4dd2KJr+RD36gv10KmorEIVZ90vbkvIzlUOG5Plgej63guQr8GPgf3pgWWcSRNuhPThT+WTBGbnLnN9YOPXJVWMYY/2JzR3v6beZIn/gt6Tec3Irz+bBZoRnFNzKtEmul2U1DMpH35aik7wvDhlvPYYe03Ak7pR0fKq8PgZ+zU7s0yY+PgmgT/NRNkkvj+1fxyuVCTwCjUW0MKPnraH507+ayEV9reyNb190Pje5vlpKP78HeOAUS9vQZQTiIDcuPSFvyiqCgaMoDUOlfsiEU5yevzCcKRkZNfiojWS9q4VvHHXPKL5fNyGmk7BqQx5zXIJFQ6f6XpeMRSL1sPyvfsN7g94ffRQyuCzjNVE2qF5F3Xu2bQ== genjix@nite -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJTT0tSAAoJELA70IOMMKqanVoP/izHYVjLx4dV05/CZaVfOZic ADtXIl4ODgR3M187r97uZKliAj4pN6oY0Uq4DwR6JGqGS81OxnB6f19iJ/EB9BNE bdricZ+bhSqxqdg1OGidEPX8Qj1c2iUdAHsayvbSNL3lcfWut+cowT+bQWmDbD+K gx+aT5cj/tAhb2QgTV9IJw41Ob0UPpZkly/LUfOeMesRo+Zw0ZBFCVZ5Fry5TJy0 lEjdZfLj3QQUXuv6m1qJUx5qmqDUgj7qXshZDZll7SldQ5RXVv+fjA73l1gGq7dI sezSGx4eqcXP/vUyS6IwYJeUDobE37yVL6kHxTsKhgQSWNvpMmlk3U9oYOy7UpYy vVTv4ew5YBB1IAsfDqbjFN153iKLZFMMvkqNNI2ir4bQQ2y/c+0zpQyzuDW8xrPi kvf/SGazEJN+di+5YsedRFMqEoGdmCCb1s93uGtls+ryMdeVM/ujy4W2B3eahLIZ YHTg68lRY7sqGeb/Od45qY0uI5TIPgxUAJi+3dSKHYWaz7zliCAjKjBkAksr/O3l YRZsogvnns1RE1EnFsfyMkv2nQDhNrRvx2oW6NEvaIBiOckiavPM57v9jO+vT7eh V5dINYd75Mqu68OUI45wEg7I4kpGO5zm1A6mo71hUcTrBZBHKptpztsYoPbrbprJ YRBuVbXMURfjiq91kiXD =XdUa -----END PGP SIGNATURE----- https://github.com/libbitcoin/libbitcoin.github.io/blob/master/keys/amir-taaki.asc.pgp Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 17, 2014, 05:16:24 PM ok, as long as it's working. I'll setup some machines for testing, to reproduce the issue and will work on this. I think new blockchain arch in coming month(s) will fix this.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 17, 2014, 05:46:11 PM ok thx for the tip
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on April 19, 2014, 02:13:00 AM Just came across this on BBC video http://www.bbc.co.uk/news/technology-26996936
Impressive guys! I'd join you if it wasn't for the wife... lol. Watch the video ppl. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 20, 2014, 03:17:49 AM The shell script needs to be updated for the new repos. Also, maybe a --develop switch? good idea! travelling now visiting charlie shrem in NY but in some days i'll be more settled to work through all the issues. sorry. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: drwasho on April 20, 2014, 03:46:57 PM Just made a couple of changes to the multi-signature GUI... essentially sanity testing to make sure that any pubkeys that you enter as part of the multisig transactions are valid addresses. Next I will be integrating custom M-of-N multisig transactions (upper limit: 15 of 20) into the GUI. From what I understand, 15 of 20 is the scripting constraint... feel free to correct me if I'm wrong.
After that, I'll finally add into the GUI the ability to create transactions offline, signing and broadcasting at the click of a few buttons. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 23, 2014, 12:07:32 PM Just made a couple of changes to the multi-signature GUI... essentially sanity testing to make sure that any pubkeys that you enter as part of the multisig transactions are valid addresses. Next I will be integrating custom M-of-N multisig transactions (upper limit: 15 of 20) into the GUI. From what I understand, 15 of 20 is the scripting constraint... feel free to correct me if I'm wrong. After that, I'll finally add into the GUI the ability to create transactions offline, signing and broadcasting at the click of a few buttons. I'm not sure 15 of 20 is the limit, but I'd test this out to see what you're actually able to submit. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on April 24, 2014, 08:02:19 AM develop branch has new hd keys commands:
Code: HD KEYS https://wiki.unsystem.net/index.php/Sx/HD_keys Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: grue on April 27, 2014, 06:30:15 PM the installation script at http://sx.dyne.org/install-sx.sh needs to be updated because the libbitcoin, libwallet and obelisk git repos have moved.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on May 09, 2014, 01:09:45 PM SX may release - stealth tools, EC commands, HD keys
See the tutorials on HD keys (http://sx.dyne.org/hdkeys.html) and stealth payments (http://sx.dyne.org/stealth.html). Code: $ sx stealth-newkey Code: $ SEED=$(sx hd-seed) Code: $ sx help Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on May 12, 2014, 11:30:10 PM soon I'm going to be removing the old electrum deterministic wallet commands. people should switch to using the newer HD commands which all wallets (electrum included) are adopting.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on May 14, 2014, 11:16:24 AM Because the old repo links haven't been fixed, I decided to take another look at the install-sx script. I fixed several bugs (the wrong repo links and sx always failing on Arch due to being run with python3), simplified the logic, and added a feature (you can now use a command-line switch to build and install the develop branches of the repos.) Before I post it, I want to say, I am not the greatest at bash, and I did not test this. That means look it over before running it. You can find it here: https://ottrbutt.com/tmp/wolf-install-sx.sh OK, will you merge this with the latest version, and I will commit it to git for you. Last changes (see veox): https://github.com/spesmilo/sx/commits/develop Download: https://github.com/spesmilo/sx/raw/develop/install-sx.sh BTW we have --develop switch now in install-sx.sh Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 20, 2014, 08:36:51 PM Forgive me if this is not the best location to post about Obelisk.
How do you install obelisk mainnet and testnet side by side on the same computer? I have used the install_sx.sh script to install Obelisk mainnet. I am running Linux. Thanks. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on May 20, 2014, 08:53:40 PM If you run 'sx-install.sh --help' then it shows you some usage info. You can either pass the installation prefix and data dir to the install script or just edit the install script variables at the top. That would be one way to achieve what you would like, as you could have one datadir /srv/obelisk-main and another /srv/obelisk-test - I don't know if you need different binaries but it wouldn't hurt as you can test new versions then without affecting the main copy.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 20, 2014, 11:21:50 PM Hm, I think I figured out what I need to do, but now I'm getting the following when building obelisk:
Code: In file included from worker/main.cpp:8:0: Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on May 20, 2014, 11:22:48 PM try --enable-leveldb
also as per your question before, try installing under different users and configuring your environment variables accordingly (as install-sx.sh tells you). Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 20, 2014, 11:28:38 PM Okay, I get how to install it, but how do I actually run it so obelisk will sync with testnet instead of mainnet?
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on May 22, 2014, 02:17:03 AM Okay, I get how to install it, but how do I actually run it so obelisk will sync with testnet instead of mainnet? what I said on the previous page: " If you run 'sx-install.sh --help' then it shows you some usage info. " Regards, RTFM. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 22, 2014, 12:57:58 PM Okay, I get how to install it, but how do I actually run it so obelisk will sync with testnet instead of mainnet? what I said on the previous page: " If you run 'sx-install.sh --help' then it shows you some usage info. " Regards, RTFM. And tell me where it mentions anything about testnet. It doesn't. I would RTFM if there was a FM. Code: ~$ bash install-sx.sh --help Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 22, 2014, 01:05:20 PM RTFM doesn't tell him shit - you have to configure libbitcoin with --enable-testnet. Thank you, for actually being helpful. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on May 22, 2014, 01:12:30 PM sorry, I am trying to be helpful, I didnt actually run it with --help I just looked at the install script which clearly shows that it would display info that would help you see that you need to add --testnet .. but seemingly that's not what you're seeing when you actually execute it.
Code: usage() { Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 22, 2014, 01:16:00 PM sorry, I am trying to be helpful, I didnt actually run it with --help I just looked at the install script which clearly shows that it would display info that would help you see that you need to add --testnet .. but seemingly that's not what you're seeing when you actually execute it. Sorry, I guess there was a misunderstanding. The latest version of the installation script does not have a testnet option. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 22, 2014, 02:00:24 PM Hm, adding --enable-testnet to ./configure doesn't seem to be working. I did it for libbitcoin, obelisk, and sx. It is still giving me the following, which is the hash of mainnet genesis block. Yes I am sure I am using the correct sx binary.
Code: ~/sx/worker$ ../bin/sx initchain blockchain/ Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on May 22, 2014, 02:17:59 PM Hm, adding --enable-testnet to ./configure doesn't seem to be working. I did it for libbitcoin, obelisk, and sx. It is still giving me the following, which is the hash of mainnet genesis block. Yes I am sure I am using the correct sx binary. Code: ~/sx/worker$ ../bin/sx initchain blockchain/ try: $ make clean $ make ... it probably didn't rebuild the modules Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: jbis1 on May 22, 2014, 02:52:15 PM Hm, adding --enable-testnet to ./configure doesn't seem to be working. I did it for libbitcoin, obelisk, and sx. It is still giving me the following, which is the hash of mainnet genesis block. Yes I am sure I am using the correct sx binary. Code: ~/sx/worker$ ../bin/sx initchain blockchain/ try: $ make clean $ make ... it probably didn't rebuild the modules Nope, I deleted the entire ~/sx directory and reran the installer with the --enable-test on libbitcoin, obelisk, and sx. I saw it rebuild everything. I still get the same genesis block hash. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on May 23, 2014, 12:24:32 PM libbitcoin has to be rebuilt with testnet support, so you need to make clean libbitcoin, and ./configure needs the argument --enable-testnet
I just looked, and the latest install script (with --testnet) wasn't uploaded. OK now I've re-uploaded it. So redownload http://sx.dyne.org/install-sx.sh and see the help text. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Summer,69 on May 26, 2014, 08:35:50 AM how many special terms are here! I don't understand a word!
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on June 01, 2014, 10:24:46 PM We have a forum for collaboration and discussion of all related projects (darkwallet, libbitcoin, sx .etc):
Forum: https://forum.unsystem.net/ Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Altoidnerd on June 22, 2014, 09:46:38 AM This is the greatest thing of all time. Thanks.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Altoidnerd on June 25, 2014, 11:16:56 AM I like using bitcoind together with sx
Code: altoidnerd@LEPTON:~$ bitcoind getnewaddress > a.txt; a=$(cat a.txt);bitcoind dumpprivkey $a | sx addr It works! But in the other direction, I can't get it quite right; Code: altoidnerd@LEPTON:~$ priv=$(sx newkey); echo $priv | sx addr > a.txt; a=$(cat a.txt); echo $a I want to do something like Code: altoidnerd@LEPTON:~$ bitcoind importprivkey $priv or Code: altoidnerd@LEPTON:~$ echo $priv | bitcoind importprivkey both of which seem to freeze bitcoind or return an error. I guess because bitcoind importprivkey doesn't like stdin? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: DannyHamilton on June 25, 2014, 01:11:30 PM Code: altoidnerd@LEPTON:~$ bitcoind importprivkey $priv or Code: altoidnerd@LEPTON:~$ echo $priv | bitcoind importprivkey both of which seem to freeze bitcoind or return an error. I guess because bitcoind importprivkey doesn't like stdin? Is your wallet encrypted? If so, you'll probably need to unlock the wallet with walletpassphrase before you try to import a private key. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Altoidnerd on June 25, 2014, 05:11:52 PM No actually, this is a toy build I'm using to play. In fact the source is not that of an actual release... It's a post 0.9.2 clone and carries a warning.
I thought I might be making an obvious bash mistake. I should note that if I were to do Code: echo $priv literally copy the resulting string and verbosely do Code: bitcoind importprivkey "<key>" At least there isn't an error message. But I'm not home now and can't recall if that totally worked or not. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: phillipsjk on June 28, 2014, 08:46:45 PM I ran into a similar problem trying to follow the tutorial here (https://sx.dyne.org/offlinetx.html) for offline transactions:
Code: james@torchlight:~/coinjoin$ sx mktx jun272014pool.tx --input 43f1c3e735560f7b1e4c396a55a2e62d2e83b7c4ed1efc5a7d29358c84ca7807:1 --output 1Ft1DZ4EcpH1jFttDoPwsFbe11a6diyZ1H:25000000 After some trial and error, I find this works: Code: james@torchlight:~/coinjoin$ sx set-input jun272014pool.tx 0 $(sx rawscript [ $SIGNATURE ] [ $(cat 1ExAmpLEf.key | sx pubkey) ]) > signed.tx I also found that Bitcoind 0.9.2 seems to ignore transactions sent with sendtx-node (https://github.com/bitcoin/bitcoin/issues/4432). This appears to be a regression, since I believe I had it work at least once in the past. I since updated and rebuilt sx tools. I may have upgraded the bitcoind node to 0.9.2 (from 0.8.x) as well. I really need to keep better maintenance logs :P PS: I briefly considered posting on the unsystem forum, but I see no categories. I have always thought web-forums are a poor imitation of USENET, but doing away with categories altogether (because people don't use them?) is worse IMO. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Mashuri on September 24, 2014, 05:11:28 PM I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy. WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found I am having this exact same issue on Ubuntu 64 (latest version) running in VirtualBox on my MacBook Pro Retina. I have 70GB of SSD and 6GB RAM allocated to the VM. The block chain has simply stopped updating at right around 300,000 block height. What solved this problem for you? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on September 26, 2014, 03:27:09 PM big changes coming to libbitcoin, obelisk and sx. stay tuned...
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: inBitweTrust on September 27, 2014, 09:05:03 PM big changes coming to libbitcoin, obelisk and sx. stay tuned... Wow , exciting and I thought this video was concerning a new version of the Liberator: https://www.youtube.com/watch?v=fO30z2o6-t0 An update on libbitcoin is more important, but I would be happy with either. Thanks for your hard work. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on October 17, 2014, 12:06:39 AM I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy. WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found I am having this exact same issue on Ubuntu 64 (latest version) running in VirtualBox on my MacBook Pro Retina. I have 70GB of SSD and 6GB RAM allocated to the VM. The block chain has simply stopped updating at right around 300,000 block height. What solved this problem for you? I'm afraid nothing solved the problem for me, I gave it a good go but submitted defeat assuming that the h/ware I was using was too slow. I'll try again though one day when I have spare hardware in the hope that whatever caused it is solved. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: micax1 on October 22, 2014, 02:44:03 PM do I need to run obelisk to get response from "sx balance addreess" command
also it seems that i cant install obelisk - ERROR: --> You need to have installed libbitcoin, sx and obelisk before run this script. Read the header of this script: after i install-sx.sh Please advise. Thank you. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on October 22, 2014, 03:07:44 PM do I need to run obelisk to get response from "sx balance addreess" command also it seems that i cant install obelisk - ERROR: --> You need to have installed libbitcoin, sx and obelisk before run this script. Read the header of this script: after i install-sx.sh Please advise. Thank you. yes, though you can point it at public servers rather than a local one if you dont want to / cant run it. http://sx.dyne.org/introduction.html#installation (note running the install script as root) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: micax1 on October 22, 2014, 04:26:04 PM do I need to run obelisk to get response from "sx balance addreess" command also it seems that i cant install obelisk - ERROR: --> You need to have installed libbitcoin, sx and obelisk before run this script. Read the header of this script: after i install-sx.sh Please advise. Thank you. yes, though you can point it at public servers rather than a local one if you dont want to / cant run it. http://sx.dyne.org/introduction.html#installation (note running the install script as root) i ran it as root. /usr/local/src/sx-git# sx balance 1Lmc3kNttoyiU2ivPLizEBhE9UvQj6rquD ^CTraceback (most recent call last): File "/usr/local/bin/sx", line 1163, in <module> sys.exit(main(sys.argv)) File "/usr/local/bin/sx", line 1157, in main return subprocess.call([binary] + args) File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 1301, in wait pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0) File "/usr/lib/python2.7/subprocess.py", line 478, in _eintr_retry_call return func(*args) KeyboardInterrupt sx.cfg: # ~/.sx.cfg Sample file. service = "tcp://obelisk.unsystem.net:8081" # Use CZMQ program 'makecert' to generate these values. #client-certificate = "/home/genjix/.sx.cert" #server-public-key = "W=GRFxHUuUN#En3MI]f{}X:KWnV=pRZ$((byg=:h" it seems like it is public server by default - but query dose not return anything, until i ctrl+c please advise. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on October 22, 2014, 04:42:53 PM Change to obelisk.coinkite.com:9091 or another from https://wiki.unsystem.net/en/index.php/Obelisk/Servers
Using the coinkite one I get.. Code: sx balance 1Lmc3kNttoyiU2ivPLizEBhE9UvQj6rquD Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: micax1 on October 22, 2014, 07:31:29 PM Change to obelisk.coinkite.com:9091 or another from https://wiki.unsystem.net/en/index.php/Obelisk/Servers Using the coinkite one I get.. Code: sx balance 1Lmc3kNttoyiU2ivPLizEBhE9UvQj6rquD thank you that worked for me. sometimes getting: after sx balance address quyery Assertion failed: ok (mailbox.cpp:82) Resource temporarily unavailable (signaler.cpp:236) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on October 22, 2014, 09:55:34 PM Change to obelisk.coinkite.com:9091 or another from https://wiki.unsystem.net/en/index.php/Obelisk/Servers Using the coinkite one I get.. Code: sx balance 1Lmc3kNttoyiU2ivPLizEBhE9UvQj6rquD thank you that worked for me. sometimes getting: after sx balance address quyery Assertion failed: ok (mailbox.cpp:82) Resource temporarily unavailable (signaler.cpp:236) Probably a rate limiter as it's a public server, I believe using obelisk balancer you can specify more than one public server and it will balance the queries. Whether it does auto-failover or weighted balancing I don't know off the top of my head. Or you could go back to trying to install a local obelisk server, then you wouldn't need the public ones. I'm no expert, just trying to help, give the website/docs a read. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: contactlight on October 29, 2014, 09:24:57 AM I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy. WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found I am having this exact same issue on Ubuntu 64 (latest version) running in VirtualBox on my MacBook Pro Retina. I have 70GB of SSD and 6GB RAM allocated to the VM. The block chain has simply stopped updating at right around 300,000 block height. What solved this problem for you? I'm afraid nothing solved the problem for me, I gave it a good go but submitted defeat assuming that the h/ware I was using was too slow. I'll try again though one day when I have spare hardware in the hope that whatever caused it is solved. I'm now on my fifth attempt using 2 different servers (one a pretty much clean Debian VM and one an established server).. every time I get nearly to the end of the blockchain sync it just seems to sit around not receiving new blocks and spewing reams of errors such as below. I'm assuming blockchain database corruption but it always seems to be somewhere in the 27#### block range (I've just noticed this). Is this normal? Is there maybe something about this range of blocks, was that when someone was spamming the blockchain? Getting a bit frustrated here sapping so much time and bandwidth and still haven't got a sync'd copy to play with. I don't want to download a torrent copy. WARNING: Error storing memory pool transaction c0c958698d61b260a885115a7e2ccec1a25c8a121c0da9ec6165f0ce11920c9b: Spent input not found I am having this exact same issue on Ubuntu 64 (latest version) running in VirtualBox on my MacBook Pro Retina. I have 70GB of SSD and 6GB RAM allocated to the VM. The block chain has simply stopped updating at right around 300,000 block height. What solved this problem for you? I was having the same problem and I even have the same configuration with the MBP Retina. It has nothing to do with the hardware or virtualization. It has to do with the systemwide file descriptor limits. Linux limits the number of files a process can have open and how many files can be open globally. While excessively lenient of a policy, applying these settings wiil fix the issue: Code: sysctl -w fs.file-max=409600 Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: HeadsOrTails on October 30, 2014, 03:50:55 AM Can someone kindly advise me what the issue is with Ubuntu 14 LTS installation? I'm a Ubuntu newbie but have followed the instructions and running sudo bash ./install-sx.sh file from / (root) always gives this install error:
Code: checking if g++ supports -c -o file.o... (cached) yes Everything is fine up until this point. Any help would be greatly appreciated; have literally spent 2 days trying to work this out with LTS 12 now LTS 14 (ie I'm not here as first resort, I've RTFM!) TL;DR: Ubuntu 14 LTS, how to fix this error? Code: utility/ec_keys.cpp: In function 'bool libbitcoin::ec_multiply(libbitcoin::ec_secret&, const ec_secret&)': Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: contactlight on October 30, 2014, 04:35:37 PM Can someone kindly advise me what the issue is with Ubuntu 14 LTS installation? I'm a Ubuntu newbie but have followed the instructions and running sudo bash ./install-sx.sh file from / (root) always gives this install error: Code: checking if g++ supports -c -o file.o... (cached) yes Everything is fine up until this point. Any help would be greatly appreciated; have literally spent 2 days trying to work this out with LTS 12 now LTS 14 (ie I'm not here as first resort, I've RTFM!) TL;DR: Ubuntu 14 LTS, how to fix this error? Code: utility/ec_keys.cpp: In function 'bool libbitcoin::ec_multiply(libbitcoin::ec_secret&, const ec_secret&)': I had the same issue and fixed it. Make sure you have: 1- secp256k1 installed 2- libbitcoin installed To install secp256k1: Code: $ git clone https://github.com/bitcoin/secp256k1 To install libbitcoin: Code: $ git clone https://github.com/libbitcoin/libbitcoin You will likely need to do the following as well: Code: $ sudo apt-get install build-essential autoconf automake libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libssl-dev Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: luv2drnkbr on November 03, 2014, 07:48:00 AM Can someone kindly advise me what the issue is with Ubuntu 14 LTS installation? I'm a Ubuntu newbie but have followed the instructions and running sudo bash ./install-sx.sh file from / (root) always gives this install error: Code: checking if g++ supports -c -o file.o... (cached) yes Everything is fine up until this point. Any help would be greatly appreciated; have literally spent 2 days trying to work this out with LTS 12 now LTS 14 (ie I'm not here as first resort, I've RTFM!) TL;DR: Ubuntu 14 LTS, how to fix this error? Code: utility/ec_keys.cpp: In function 'bool libbitcoin::ec_multiply(libbitcoin::ec_secret&, const ec_secret&)': I had the same issue and fixed it. Make sure you have: 1- secp256k1 installed 2- libbitcoin installed To install secp256k1: Code: $ git clone https://github.com/bitcoin/secp256k1 To install libbitcoin: Code: $ git clone https://github.com/libbitcoin/libbitcoin You will likely need to do the following as well: Code: $ sudo apt-get install build-essential autoconf automake libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libssl-dev I still get HeadsOrTails's error of "utility/ec_keys.cpp:134:1: warning: control reaches end of non-void function" whenever I try to make libbitcoin after the configure step. Any advice or things to try? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: contactlight on November 03, 2014, 05:47:54 PM Can someone kindly advise me what the issue is with Ubuntu 14 LTS installation? I'm a Ubuntu newbie but have followed the instructions and running sudo bash ./install-sx.sh file from / (root) always gives this install error: Code: checking if g++ supports -c -o file.o... (cached) yes Everything is fine up until this point. Any help would be greatly appreciated; have literally spent 2 days trying to work this out with LTS 12 now LTS 14 (ie I'm not here as first resort, I've RTFM!) TL;DR: Ubuntu 14 LTS, how to fix this error? Code: utility/ec_keys.cpp: In function 'bool libbitcoin::ec_multiply(libbitcoin::ec_secret&, const ec_secret&)': I had the same issue and fixed it. Make sure you have: 1- secp256k1 installed 2- libbitcoin installed To install secp256k1: Code: $ git clone https://github.com/bitcoin/secp256k1 To install libbitcoin: Code: $ git clone https://github.com/libbitcoin/libbitcoin You will likely need to do the following as well: Code: $ sudo apt-get install build-essential autoconf automake libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libssl-dev I still get HeadsOrTails's error of "utility/ec_keys.cpp:134:1: warning: control reaches end of non-void function" whenever I try to make libbitcoin after the configure step. Any advice or things to try? That's just a warning, you should be able to build it despite that message. If it isn't building successfully, it must be another error. To get rid of the warning, find the function and have it return something at the end. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on November 04, 2014, 10:18:56 PM hey so just an update as to what's going on:
- Obelisk has been renamed to libbitcoin-server and is undergoing lots of changes. - libbitcoin has a new faster blockchain backend. - SX is renamed to libbitcoin-explorer and has been improved. we're still working on testing & improving the software, but once that's complete, there will be a new release. sorry about all the troubles. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: contactlight on November 04, 2014, 10:35:52 PM hey so just an update as to what's going on: - Obelisk has been renamed to libbitcoin-server and is undergoing lots of changes. - libbitcoin has a new faster blockchain backend. - SX is renamed to libbitcoin-explorer and has been improved. we're still working on testing & improving the software, but once that's complete, there will be a new release. sorry about all the troubles. No problem at all, we really appreciate the work that you guys put into this. Do you know when we will have access to this new release? Is it already on GitHub? Are you guys aware that obelisk-server's syncing routine stalls in certain cases? I had to write a script to make sure that obelisk processes at least 5 blocks per minute, and if that's not the case, restarts it in order to continue syncing. I suspect this is happening due to the following error that's exposed to the user: Code: Failed to store transaction in mempool <Transaction-Hash>: Spent input not found Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: gwlloyd on November 05, 2014, 02:20:43 AM hey so just an update as to what's going on: - Obelisk has been renamed to libbitcoin-server and is undergoing lots of changes. - libbitcoin has a new faster blockchain backend. - SX is renamed to libbitcoin-explorer and has been improved. we're still working on testing & improving the software, but once that's complete, there will be a new release. sorry about all the troubles. Sounds great, thank you for your hard work. I look forward to firing up the VMs again soon and trying it out. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: genjix on November 06, 2014, 01:06:17 PM we're working on the server a lot, see this:
https://wiki.unsystem.net/en/index.php/Libbitcoin/Blockchain/htdb_slab_Performance here are the development repos: https://github.com/libbitcoin/libbitcoin-explorer (formerly sx) https://github.com/libbitcoin/libbitcoin-server (formerly Obelisk) sx has basically been rewritten by eric voskuil, and the server will undergo more improvements too (see https://github.com/libbitcoin/libbitcoin-protocol ) which will allow SPV for wallets with the new protocol. Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: inBitweTrust on November 06, 2014, 01:51:19 PM Awesome, I can't wait to start testing. ;D
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: HeadsOrTails on November 23, 2014, 11:55:11 AM I had the same issue and fixed it. Make sure you have: 1- secp256k1 installed 2- libbitcoin installed To install secp256k1: Code: $ git clone https://github.com/bitcoin/secp256k1 To install libbitcoin: Code: $ git clone https://github.com/libbitcoin/libbitcoin You will likely need to do the following as well: Code: $ sudo apt-get install build-essential autoconf automake libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libssl-dev I did get it to work; between this reply (which I just saw) and a question on Stack Exchange it's all up and running. I should add, while I understand these tools aren't meant to be for the complete newb, I have found them exceedingly difficult to use. Documentation scarce at best... For eg, Code: sx history `cat addr` (ie history of outputs for an address will just not work) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: HeadsOrTails on November 26, 2014, 04:11:34 AM I cannot get the code from http://sx.dyne.org/offlinetx.html to run:
Code: $ DECODED_ADDR=$(cat private.key | sx addr | sx decode-addr) Error returned is similar to (haven't got it in front of me): Code: sx set-input FILENAME N SIGANDPUBKEYSCRIPT Running sx set-input txfile.tx 0 `cat rawscript.tx` or even Code: sx set-input txfile.tx 0 4730...... Any advice? TL;DR: Code: sx rawscript [ $SIGNATURE ] [ $(cat private.key | sx pubkey) ] | sx set-input txfile.tx 0 > signed-tx This code from the eg doesn't work (and variants of it) Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Altoidnerd on December 08, 2014, 06:24:20 AM This seems odd. I cannot understand why sx seems to disagree with vbuterin/pybitcointools (https://github.com/vbuterin/pybitcointools)
If you need to install pybitcointools do Code: $ git clone https://github.com/vbuterin/pybitcointools I am not getting the same result for simple sha256 hashes from pybitcointools and sx. See: Code: $ python sx gives something else...or am i stupid? Code:
Why? Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: Altoidnerd on December 08, 2014, 06:27:39 AM Heres the kicker...
Code: $ echo -n "ok" | openssl dgst -sha256 edit - issue opened here https://github.com/spesmilo/sx/issues/95 Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: brituspol on February 02, 2015, 03:18:25 PM Checking this out today. Very interesting. Good luck to the creator.
Title: Re: sx command line utilities - Empower The Sysadmin With Bitcoin Tools Post by: ziomik on November 13, 2015, 08:33:18 AM mmm..
Code: --> Updating libbitcoin... |