Our wallets will need to import from many different wallet.dat files which may be protected by a password. For easy of development we would like an API call implemented in the bitshares code base that can import a wallet.dat file.
Files to be created:
include/bts/bitcoin_wallet.hpp
src/bitcoin_wallet.cpp
namespace bts {
std::vector<fc::ecc::private_key> import_bitcoin_wallet( const fc::path& wallet_dat, const std::string& passphrase );
}
The bounty will be awarded to the first person who can complete the task with pull request that is accepted by our team. To be accepted, a unit test case must be provided using boost unit tests that verifies that the keys can be imported and converted to the proper PTS address. All code must follow the same conventions found in the bitshares repository. Code must compile with g++ and VC 2010 or newer. A 1 PTS penalty will be assessed (deducted from ultimate award) for every submission attempt that is sent back for coding style violations, compilation errors, or failed unit tests.
There is an additional 2 PTS bounty paid to the person who refers the winner of this bounty to this thread. You must be the first to post the name of the person who ultimately wins the bounty to this thread. You cannot refer yourself.
Any questions regarding the implementation of this method or about the requirements must be posted in this thread. More bounties will be forth coming.