Pages:
Author

Topic: sx command line utilities - Empower The Sysadmin With Bitcoin Tools - page 8. (Read 240157 times)

legendary
Activity: 1232
Merit: 1076
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).
legendary
Activity: 1120
Merit: 1016
090930
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.
member
Activity: 81
Merit: 1002
It was only the wind.
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.

If you need a GCC 4.8 or 4.9 toolchain for Windows, PM me.
member
Activity: 83
Merit: 10
What is the output of:

$ dpkg -s libconfig++-dev

?

thanks


Code:
main@computer:~$ dpkg -s libconfig++-dev
Package `libconfig++-dev' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
main@computer:~$ sudo apt-get install libconfig++-dev
[sudo] password for main:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libconfig++8-dev' instead of 'libconfig++-dev'
libconfig++8-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
main@computer:~$

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.

full member
Activity: 209
Merit: 148
Any windows binaries available? Or simple build instructions?
legendary
Activity: 1232
Merit: 1076
What is the output of:

$ dpkg -s libconfig++-dev

?

thanks
member
Activity: 83
Merit: 10
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!

Run the following command:

  $ sudo apt-get install git build-essential autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses5-dev


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?
newbie
Activity: 21
Merit: 0
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
legendary
Activity: 1232
Merit: 1076
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.
newbie
Activity: 21
Merit: 0
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

Code:
void deterministic_wallet::new_seed()
{
    constexpr size_t bits_needed = 8 * seed_size / 2;
    ssl_bignum rand_value;
    BN_rand(rand_value, bits_needed, 0, 0);
    bool set_success = set_seed(bignum_hex(rand_value));
    BITCOIN_ASSERT(set_success);
}

Best case would be something like...
Code:
>echo "6132235463233123456522124112542554365223124562346652123111266" | sx newseed | sx mnemonic
legendary
Activity: 1372
Merit: 1008
1davout
hero member
Activity: 531
Merit: 505
You can always roll enough times to generate at least 256-bit entropy, form it as e.g. string (1536123 ... ) and hash it.
newbie
Activity: 21
Merit: 0
Is there a way to generate a new seed/12-word mnemonic with dice rolls?
sr. member
Activity: 462
Merit: 250
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.
hero member
Activity: 900
Merit: 1000
Crypto Geek
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.
sr. member
Activity: 462
Merit: 250
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. Smiley

I really need to get sx working on windows as well... let me spend a bit of time and look into it.
legendary
Activity: 1232
Merit: 1076
oh this is wicked! this is exactly what I wanted! can I include them in the project?
member
Activity: 81
Merit: 1002
It was only the wind.
Okay, who added "--enable-testnet" to the libbitcoin-leveldb-git PKGBUILD?  Roll Eyes
sr. member
Activity: 462
Merit: 250
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
legendary
Activity: 1232
Merit: 1076
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.
Pages:
Jump to: