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]
316
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(addr.data(), sizeof(addr))<<"\n";
memcpy( (char*)&bin_addr, (char*)&addr, sizeof(addr) );
std::cout<<"bin addr\t"<<fc::to_base58(bin_addr.data, 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.

317
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";

318
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(pk2.data,sizeof(pk2)));


319
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);
      EC_KEY_set_group(k,group);
      fc::sha256 sec=new fc::sha256 sec("5b5ca05c294f6778f84f0f5ea01f017a0c7e10fcf7a3cba6e67ae0e6318b389d");
      //int nbytes = BN_num_bytes(bn);
      //BN_hex2bn( &((unsigned char*)&sec)[32-nbytes], bn);
      EC_KEY_set_private_key(k,sec);
      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";

320
   I will be creating a how-to for running the test environment.
+5%

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

BOOST_AUTO_TEST_CASE
https://github.com/BitShares/bitshares_toolkit/blob/master/tests/blockchain_tests.cpp#L82

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?


322
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.. 


323
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: http://live.insight.is .. At github, the description says "A bitcoin blockchain API for web wallets". 

324
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 dogecoin.info .. the built abe-ci-frontend .. unfortunately. I did not receive any answer and sources are not open (yet?)

What about http://insight.bitcore.io ?  Also, here are some fresh ideas for a wallet using the insight explorer and something called WebRTC http://bitcore.io/blog/articles/cosign-our-multisignature-wallet-in-development.

325
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_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
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_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
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
# https://help.ubuntu.com/lts/serverguide/lxc.html
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
# https://github.com/InvictusInnovations/BitShares
apt-get install g++-4.6 --assume-yes
apt-get install wget --assume-yes
# http://www.boost.org/users/history/version_1_54_0.html
wget -O boost_1_54_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.gz/download
tar xzf boost_1_54_0.tar.gz
rm boost_1_54_0.tar.gz
pushd boost_1_54_0/
#???
popd
# https://github.com/InvictusInnovations/BitShares
apt-get install cmake --assume-yes
apt-get install uuid-dev
apt-get install git --assume-yes
git clone https://github.com/InvictusInnovations/BitShares.git
cd BitShares
git clone https://github.com/InvictusInnovations/fc.git
cmake .
make


326
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.

327
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: https://code.google.com/p/webit-krypto-kit

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


328
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.

http://www.linkedin.com/in/jcalfee

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



329
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 github.com:InvictusInnovations/ProtoShares.git).  I then started the Windows Wallet and it connected and started synchronizing right away.

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