Author

Topic: Litecoin brainwallet (Read 67 times)

full member
Activity: 291
Merit: 133
June 02, 2023, 10:41:08 AM
#3
Take a look at this Python library: python-litecoin-utils.

...

Thank you very much!
legendary
Activity: 1932
Merit: 1273
June 02, 2023, 08:29:30 AM
#2
Take a look at this Python library: python-litecoin-utils.

https://github.com/karask/python-litecoin-utils/blob/9e395f1281e3c84c5ff4644acb47be99e6205022/litecoinutils/keys.py#L177-L185
Code:
"""Returns key in WIFC or WIF string

        |  Pseudocode:
        |      network_prefix = (1 byte version number)
        |      data = network_prefix + (32 bytes number/key) [ + 0x01 if compressed ]
        |      data_hash = SHA-256( SHA-256( data ) )
        |      checksum = (first 4 bytes of data_hash)
        |      wif = Base58CheckEncode( data + checksum )
        """

Litecoin does seems also uses SHA256 and Base58Check. The only difference is in the version byte code. You can also refer to that about how to extract the public key and the address, just take a peek at the code since it is also available.

If you'd like to do that on JavaScript, I'm sure there is also a library for it, just search around about it.
full member
Activity: 291
Merit: 133
June 02, 2023, 04:09:17 AM
#1
What is the way to compute WIF and public address for Litecoin brainwallet? (Convert brainwallet to these?)

Can I do that in Python or Javascript?

What is the simplest way to do that?

For Bitcoin it is SHA256 and Base58Check, but I don't know for Litecoin...
Jump to: