Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to tweak this library for Litecoin? #38

Open
themohitmadan opened this issue Oct 10, 2019 · 4 comments
Open

How to tweak this library for Litecoin? #38

themohitmadan opened this issue Oct 10, 2019 · 4 comments

Comments

@themohitmadan
Copy link

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

@rgex
Copy link
Contributor

rgex commented Oct 10, 2019

Mainly, it would just require replacing the sha256 hash function with the scrypt one

@rgex
Copy link
Contributor

rgex commented Oct 10, 2019

@ErikPelli
Copy link
Contributor

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

@rgex
Copy link
Contributor

rgex commented Dec 4, 2019

My mistake then, I believed they were using Scrypt to generate the address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants