Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jamesc

Pages: 1 ... 15 16 17 18 19 20 21 [22]
Technical Support / Re: Handling keys (API)
« on: May 06, 2014, 08:54:46 pm »
New question ... If I run this In address.cpp std::string, why do I get two different encodings?
Code: [Select]
std::cout<<"bts 58\t"<<fc::to_base58(, sizeof(addr))<<"\n";
memcpy( (char*)&bin_addr, (char*)&addr, sizeof(addr) );
std::cout<<"bin addr\t"<<fc::to_base58(, sizeof(bin_addr))<<"\n";

EDIT: Both cout lines seem to work because I get hashes that match; a) 1st cout matches my javascript port of this code, b) 2nd cout matches bts_create_key.cpp (the BTS public key, the one the public uses)...  I just don't know why the hashes are different.  So I suspect the mem copy is doing something unexpected.  The mem copy line is original.

Technical Support / Re: Handling keys (API)
« on: May 02, 2014, 06:56:04 pm »
This is what I ended up with:

      std::cout << "public b58:\t" << fc::variant( k2.get_public_key().to_base58() ).as_string()<< "\n";
      std::cout << "public hex:\t" << fc::variant( k2.get_public_key().serialize() ).as_string()<< "\n";

Technical Support / Re: Handling keys (API)
« on: May 02, 2014, 06:02:27 pm »
Works... Now, I need to see the fill public key in hex... Something like this:

      auto k2 = fc::ecc::private_key::regenerate(key.get_secret());
      auto pk2=k2.get_public_key().serialize();
      std::cout << std::string(fc::to_hex(,sizeof(pk2)));

Technical Support / Handling keys (API)
« on: May 02, 2014, 04:09:51 pm »
I would like to go from a private HEX key back into public keys.  I'm not really a C coder, but here is my attempt.  Is there a better way, perhaps a way that actually compiles?  Or perhaps there is something already in the toolkit to do this.

      EC_KEY* k= EC_KEY_new();
      EC_GROUP *group = EC_GROUP_new_by_curve_name(NID_secp256k1);
      fc::sha256 sec=new fc::sha256 sec("5b5ca05c294f6778f84f0f5ea01f017a0c7e10fcf7a3cba6e67ae0e6318b389d");
      //int nbytes = BN_num_bytes(bn);
      //BN_hex2bn( &((unsigned char*)&sec)[32-nbytes], bn);
      std::cout << "bts address: "
                      << std::string( bts::blockchain::address( k.get_public_key() ) ) <<"\n";

      std::cout << "pts address: "
                      << std::string( bts::blockchain::pts_address( k.get_public_key() ) ) <<"\n";

   I will be creating a how-to for running the test environment.

Technical Support / Creating a new test block chain with server
« on: April 25, 2014, 04:07:34 pm »
This creates a test block chain:


Could I then go into the temp directory it created and start the server (bts_xt_server)?  I assume I need a public key and balance in genesis.json.  Where do I get these values?

bytemaster has shown interest in a BitShares X JavaScript wallet.  With this in mind, is there a repository I can look at?  How about BitShares/BitShares-PTS at GitHub? 

bitshares_js looks interesting by name at least, it is still empty though.. 

I found a project out there, looks rather promising.  I'm wondering if we could make this compatible with BitShares XT.  The project is called Insight: .. At github, the description says "A bitcoin blockchain API for web wallets". 

General Discussion / Re: Pure JavaScript port of the Krypto Kit wallet
« on: March 26, 2014, 07:04:43 pm »
I once contacted the guys form .. the built abe-ci-frontend .. unfortunately. I did not receive any answer and sources are not open (yet?)

What about ?  Also, here are some fresh ideas for a wallet using the insight explorer and something called WebRTC

General Discussion / cmake error
« on: March 08, 2014, 01:26:02 am »
I'm getting a basic cmade error.  I guess this is not BitShares related, but I don't see anything like it on the web.  Does this make any since?

Ubuntu 12.04

 # cmake .
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMake Error: Could not find cmake module file:/BitShares/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMake Error: Could not find cmake module file:/BitShares/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

This is in a minimal ubuntu environment, so I may be missing a dependancy that one might usually expect.  This is how to recreate the entire environment and build error:

# BitShares
sudo su
apt-get install lxc --assume-yes
lxc-create -n bitshares -t ubuntu -- --release precise
lxc-start -n bitshares -d
lxc-wait  -n bitshares
lxc-attach -n bitshares
apt-get install g++-4.6 --assume-yes
apt-get install wget --assume-yes
wget -O boost_1_54_0.tar.gz
tar xzf boost_1_54_0.tar.gz
rm boost_1_54_0.tar.gz
pushd boost_1_54_0/
apt-get install cmake --assume-yes
apt-get install uuid-dev
apt-get install git --assume-yes
git clone
cd BitShares
git clone
cmake .

General Discussion / Re: Pure JavaScript port of the Krypto Kit wallet
« on: March 03, 2014, 05:50:39 pm »
Does it make since to get the wallet working using say a small nodejs program to interface the daemon to the web-wallet?  The Satoshi client has a command line interface.

General Discussion / Pure JavaScript port of the Krypto Kit wallet
« on: February 26, 2014, 06:48:25 pm »

I made a few changes to the Krypto Kit chrome plug-in and Walla!, we have a bitcoin wallet running directly in the browser from static files.  I was able to view a balance and send some coins from the wallet.  Honestly, that is the only thing that works so far.  So, I will continue on and fix the GPG wallet encryption next and perform more testing... 

Feel free to give me some feedback or run some test.  It would be really cool to have a pure client-side web-wallet that supports block chain storage and other block chain implementations like BTS.

Here is the project page:

the code: the repository history starts with the original Krypto Kit source files with a comment to indicate this.

General Discussion / Re: List your skills and be known
« on: February 09, 2014, 05:39:44 pm »
Professional Java programmer since 1997 (17 years).  I have many other technical skills including Python and C/C++ reading and programing. 

-GUI Skills - HTML, JavaScript, Swing/JFC, MVC frameworks, Android development and deployment processes

-Cross Platform Development Skills - Java & Java Web-start, Bash, Ruby/JRuby, JavaScript, Python/Jython, SQL

-Ability to write efficiently - I reduce lines of code and write very clear easy to understand programs and documentation

-Crypto Skills - Private Key, Public Key, SHA libs, and block-chain programming with bitcoinj .. Understand algorithms at a high-level or low level when required

-Graphics Skills - Layers and manipulations in Gimp

When looking for work on the Internet in 2002 (after the .com bubble), my interest in P2P software peeked.  Projects like Freenet and Tor and some anonymous bot networks became the center of my study.  Studying these things served me well because I recognized the benefit in Bitcoins and the block-chain.  Ignoring skepticism, I invested in Bitcoins in 2012.  Today, I am also investing in alt-coins and DACs like those offered by Invictus.  These are very exciting times, I feel like we are going through this all over again and I'm very eager to make the most of every minute.

Interests: Family, organic living, fermented foods, digital music and technology

BitShares PTS / Re: Seed Node IPs
« on: February 07, 2014, 05:34:37 pm »
I could not get any connections using ProtoShares/src/bitcoind (from  I then started the Windows Wallet and it connected and started synchronizing right away.

Pages: 1 ... 15 16 17 18 19 20 21 [22]