How to tweak this library for Litecoin?
Hi,
I'm working on a project where I'd be using your codebase :)
I was wondering if it can be tweaked for LTC addresses?
My use-case is to convert hexa private key to wallet address
Mainly, it would just require replacing the sha256 hash function with the scrypt one
So either using this solution https://github.com/cmpscabral/cryptobits/tree/master/php/scrypt or this one https://github.com/DomBlack/php-scrypt
Scrypt has nothing to do with it. In the constructor you have to change networkPrefix from '00' to '30' and in getPrivatePrefix() change return from '80' to 'b0'.
My mistake then, I believed they were using Scrypt to generate the address.