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 - thisisausername

Pages: 1 2 3 4 5 [6]
76
General Discussion / Re: NoirShares Launch in 8 hours, don't panic.
« on: February 15, 2014, 07:32:02 am »
i am curious why the official website not update the client after the official chain launch, as the official client is connected to invalid chain now.

Oh.  I don't know about that.  I didn't see any binaries on the official site.  If the code in the GitHub repo is set to mine to the wrong genesis block then so is the binary I posted earlier, take note.


Edit: On this topic and to people coming from here, I think you are getting confused by this -- the NoirShares beta (last updated two days ago) and this (last updated 12 hours ago) which looks a bit less like a beta.

The binary I provided is built off the latter repository.

I'm not affiliated with the project and don't know if my conjecture is right, but that's what I think is happening here.

77
General Discussion / Re: NoirShares Launch in 8 hours, don't panic.
« on: February 15, 2014, 07:14:18 am »
why not upload the updated executable client to your website, i think nobody can mine on the offical  chain now except yourself.
+1

Here you are.

Keep in mind I could have loaded that up with all kinds of code to facilitate wallet stealing, making any mining go right to my address or rm -rf'ing /.  Not that I have, but you totally wouldn't know!  So with this and any other untrusted binaries run them in a well shielded VM or on a computer without important data.


Edit: I don't think it was only two of us mining.
Code: [Select]
    "hashespermin" : 3.97239188,
    "networkhashps" : 2,
If It was, I want one of those computers. :P


Edit edit: 9W1M9Py3xwCiDq95XF2395uqgo8xgBqium Eh, eh?  I certainly haven't hit any blocks yet...

78
General Discussion / Re: NoirShares Launch in 8 hours, don't panic.
« on: February 15, 2014, 06:40:15 am »
Quote
All modified redistributions will allocate 7% of their total lifetime value supply units to Noirshares at genesis
of said redistribution, also further allocate 3% of their total lifetime value supply units to Protoshares.

that is a quote from the license, it's been there all along.

What license?

The one in the source code, I'd think.

On the topic of mining, I find that whether I hit a block in the first day really colours my appreciation of a coin/commodity/token. ;)

79
Marketplace / Re: 2 x 300 PTS Bounty to Import Electrum or Armory Wallet
« on: February 14, 2014, 12:20:15 pm »
Regenerate keys needs 32 byte raw key data.

Awesomeness, thanks for the info.  Pull request updated with code that may work, much better than the previous code that certainly didn't!

80
Marketplace / Re: 2 x 300 PTS Bounty to Import Electrum or Armory Wallet
« on: February 14, 2014, 11:38:22 am »
Sorry for not getting to this yesterday, had to deal with some snow.

In any case, I think I'm done.  See pull request here.

A few caveats:


0) Haven't tested it yet (beyond that it compiles and that the generated C++ code properly dumps keys -- haven't tested the glue C++.)  I'll get on that as time permits in the next day or two.


1) I'm especially unsure about
Code: [Select]
fc::datastream<const char*> stream(keys[i].c_str(), keys[i].size());
fc::sha256 bits;
stream >> bits;
keysRet.push_back(fc::ecc::private_key::regenerate(bits));

I took it from DerKorb's multibit wallet import implementation.  In my case keys{i} is going to be a 51-character, starts-with-a-5 style uncompressed key -- but I haven't looked into whether that's what he was dealing with as well.


2) The cython-generated C++ file isn't very clean.  I realized that a better way to do things than to make a minimal private key extractor from the electrum code would be to minimally modify the electrum code, thereby making it easier to keep the import function working should electrum change the way they handle wallets.  In any case I added to vendor (wrong place, I know, there wasn't anywheres that fit too well) a makefile script and patch that lets one copy over the electrum lib directory and easily regenerate the C++ code.


3) I made the cmake file rely upon python 2.7.5 exactly.  This isn't right, we just need python 2.x, but I cannot for the life of me figure out how to set a maximum (minimum required versions are easy) that cmake will find and it always goes for 3.3 on my system.

81
Marketplace / Re: 2 x 300 PTS Bounty to Import Electrum or Armory Wallet
« on: February 13, 2014, 07:09:07 am »
Well, I spoke a bit soon.  Everything works great under python, but attempting to use the cython-generated code I get,
Code: [Select]
Exception NameError: "name 'WalletStorage' is not defined" in 'lib.wallet.pyimport_electrum_wallet' ignored at runtime.

Anyone have any idea what's up with that?  I've previously only ever cython'd much more simple programs and things have 'just worked'.  It works using nuitka, but I'm not sure how to specify nicely callable C++ functions using it (calling an external executable just seems too ugly.)

I'll hack on this a bit more tomorrow; see if I can figure it out.

82
Marketplace / Re: 2 x 300 PTS Bounty to Import Electrum or Armory Wallet
« on: February 13, 2014, 01:12:52 am »
FC_ASSERT( fc::exists( wallet_dat ), "unable to find ${wallet}", ("wallet",wallet_dat) ) is better than returning nothing...
or better yet use FC_THROW_EXCEPTION( file_not_found... )

Done.  Here are my changes as they currently stand, https://github.com/tiau/BitShares/compare .  I haven't initiated a pull request since I'm still waiting on boost to be able to test the changes.  There are almost certainly bugs in the not-cython-generated C++ portion and I doubt I did the CMakeList.txt changes right either...

One question: Is electrum_python.cpp okay as it stands (50,000 lines of mostly dead code) since the C++ compiler will remove all the cruft anyways or should it be cleaned up?

83
Marketplace / Re: 2 x 300 PTS Bounty to Import Electrum or Armory Wallet
« on: February 13, 2014, 12:07:35 am »
I'm almost finished with this for electrum.

I have cython generating

Code: [Select]
std::vector<std::string> pyimport_electrum_wallet(std::string &__pyx_v_path, std::string &__pyx_v_pp)
and am calling it like

Code: [Select]
namespace bts
{
   std::vector<fc::ecc:private_key> import_electrum_wallet( const fc::path& wallet_dat, const string& passphrase )
   {
      size_t i;
      std::vector<fc::ecc::private_key> keysRet;

      if (!fc::exists(wallet_dat)
         return std::vector<fc::ecc::private_key>();

      std::vector<string> keys = pyimport_electrum_wallet(wallet_dat.to_native_ansi_path(), passphrase);
      for( i = 0; i < keys.size(); i++ )
      {
         fc::datastream<const char*> stream(keys[i].c_str(), keys[i].size());
         fc::sha256 bits;
         stream >> bits;
         keysRet.push_back(fc::ecc::private_key::regenerate(bits));
      }
      return keysRet;
   }

I'm not so sure about the C++ part.  I still can't compile anything under BTS, waiting for my boost to finish upgrading to 1.53 (Gentoo...)

Also have to figure out how to do pull requests and whatnot.

84
General Discussion / Re: Bitshares versus Counterparty?
« on: February 03, 2014, 10:49:55 pm »
Proof of burn is riskier than PTS/AGS as well.   Keep in mind:

"Disclaimer: The code being released here is of alpha-quality and under heavy development. You should expect to encounter significant bugs when using it. It is even possible that a bug might cause you might lose some money. The Counterparty team will do everything in its power to prevent this from happening, but this technology is very new, and the implementation is not yet well-tested. In particular, we may at some point have to change the Counterparty protocol in a not backwards-compatible way, if such a change is necessary to fix a bad bug or an exploit. As always, don't invest more than you can afford to lose."

PTS and AGS have no such issue.  If the test bitshares fail due to bugs, they fail; but test bitshares 2 will simply take on the mantle and carry on.

85
General Discussion / Re: New Marketing Meme... +5%
« on: February 01, 2014, 07:19:30 pm »
"Free your market."?  Then you could have lots of variants to keep things interesting.  "Free your market from distance."  "Free your market from middle-men."

I like it.

86
Marketplace / Re: 1 PTS per Typo-Fix Pull Request Submitted to invictus.io
« on: February 01, 2014, 07:27:24 am »
The "BitShares X" page reads, "Earn 5% or more on anything." even though that no longer seems to be the case re: this.

I don't know if that counts as a typo, per se.

Pages: 1 2 3 4 5 [6]