Bitcoin Forum

Bitcoin => Armory => Topic started by: pf on August 03, 2016, 10:15:30 PM



Title: How hard would it be to create a Litecoin Armory?
Post by: pf on August 03, 2016, 10:15:30 PM
I hope it's not too hard, given that Litecoin is basically Bitcoin with a few tweaks.

If it's not too hard, could someone here do it? ;)

If it's not quite as easy as that, how come?

Thank you.


Title: Re: How hard would it be to create a Litecoin Armory?
Post by: achow101 on August 03, 2016, 10:18:16 PM
There would certainly be a great deal of changes, but since I have not studied Litecoin (nor have any interest), I don't know the specifics. I don't think anyone working on Armory right now is interested in adapting it for altcoins.

At a minimum, there would need to be changes to the hashing algorithms for verifying blocks as Litecoin uses Scrypt and not SHA256d. The genesis block, magic bytes, and other blockchain parameters would also have to be changed as well.


Title: Re: How hard would it be to create a Litecoin Armory?
Post by: droark on August 08, 2016, 06:05:58 AM
There is a Namecoin version of Armory. You could use that as a guide. Not sure how up-to-date it is but it should work.


Title: Re: How hard would it be to create a Litecoin Armory?
Post by: josephbisch on August 09, 2016, 12:54:30 AM
Here's the repo for the Namecoin fork of Armory: https://github.com/namecoin/BitcoinArmory. If you are checking out the commit history, make sure you look as far back as this commit: https://github.com/namecoin/BitcoinArmory/commit/90351e11601cc5e2c09481dad6b56f6a7a4f620e.

As you can see it hasn't been updated since late 2014. For now, it is abandoned. You can see some reasoning in the remaining open issue (https://github.com/namecoin/BitcoinArmory/issues/6). That issue also links to this thread (https://bitcointalk.org/index.php?topic=1219010.0;all) of which you are also the original poster, so you are probably already aware of that thread.

The necessary changes were already covered well by knightdk. For Namecoin, we still needed to touch the C++ code even though Namecoin uses the same hash algorithm as Bitcoin, because we needed to use a different directory to load blocks from (~/.bitcoin versus ~/.namecoin on Linux) and because Namecoin uses merged mining, so the block parsing needs to account for that. For Litecoin you definitely need to touch the C++ code to use scrypt as the hashing algorithm (as knightdk already stated).

If you don't know where to start, the Namecoin fork is better to use as a reference than nothing, even though it is outdated.