online resources

How to generate Zcash addresses in Java/Kotlin [closed]

Im currently try to develop a wallet and im stuck at the zcash address generation: I cant generate them, my addresses are not found and dont start with t1 or t3. I would be really happy if someone can show me a working solution for Java/Kotlin. Before someone asks: I can generate valid btc and doge/dgb addresses with kotlin.

Continue Reading How to generate Zcash addresses in Java/Kotlin [closed]

Python: Why the addresses and keys generated by pywallet and bip32utils using the same 12 mnemonic words don’t match?

I tried to generate wallets by using pywallet and bip32utils (Python). But I noted that the addresses/keys of the 2 wallets, namely wallet_pywallet and wallet_bip39 don't match with each other. I noted that the addresses/keys of wallet_bip39 match with Exodus, but wallet_pywallet doesn't. We have been using pywallet for such a long time so I believe wallet_pywallet should be correct as well. Why is there such a discrepancy? Below is the code, while the code for wallet_bip39 is obtained from this post. from pywallet import wallet import binascii import mnemonic import bip32utils def bip39(mnemonic_words): mobj = mnemonic.Mnemonic("english") seed = mobj.to_seed(mnemonic_words)…

Continue Reading Python: Why the addresses and keys generated by pywallet and bip32utils using the same 12 mnemonic words don’t match?

How to convert M-address to L-address (Litecoin)

I decided to mine a litecoin block. I have installed a pool (miningcore) on my computer. In the pool settings, I specified the address MLLJufbZimcHZ4p7JsLnaHGpsEkitEP1Lx. I rented power on Nicehash and found block 1920755. But the block received the address LXf6wSzzJQgXvCXwG2g9c2jFcEEqSZhudF. I don't know how it was transformed, but there is no such address in my wallet. All block explorers, except for explorer.litecoin.net, show balance 0. litecoin.net shows the same balance for both addresses for MLLJufbZimcHZ4p7JsLnaHGpsEkitEP1Lx. How can I access the address LXf6wSzzJQgXvCXwG2g9c2jFcEEqSZhudF? I only have the private key for MLLJufbZimcHZ4p7JsLnaHGpsEkitEP1Lx. There must be a way to convert... Sorry for…

Continue Reading How to convert M-address to L-address (Litecoin)

Public Keys Prefixes and Derivation Paths

When importing an zpub, for example, to a wallet, does the wallet understand it should recreate a set of addresses using the derivation path "m/84'/0'/0'" and the script type "p2wpkh" ? So if I generate an zpub with correct script type but choose an arbitrary path like "m/77'/0'/0'", would it be conceptually wrong and can cause problems when exporting to other wallets ? I just trying to understanding if the concept of version bytes / prefixes in extended public keys are also path-dependent or can change just according script type. The SLIP 0132 mentions the path for some prefixes. But…

Continue Reading Public Keys Prefixes and Derivation Paths

Diffrent address prefix generated for same Altcoin

I created a altcoin with ltc 0.18 fork and I set the magic bytes to be : pchMessageStart[0] = 0x4d; pchMessageStart[1] = 0x41; pchMessageStart[2] = 0x4e; pchMessageStart[3] = 0x4e; and address prefix to be same as that of ltc i.e base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,48); base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5); base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,50); base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,176); base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; But every time I generate a new address with RPC command getnewaddress i get 2 diffrent sets of addresses, one with prefix L other M. Surprisingly transaction between both of them is…

Continue Reading Diffrent address prefix generated for same Altcoin

How Bitcoin nodes validate a new wallet

I have a cuple of questions about how wallet creation works. If I create a Bitcoin wallet offline, is there any way of like validate the new wallet, I mean, what if this wallet already exist? I know the posibilities are incredibly low. And, if I create an address offline, how Bitcoin nodes would accept my address as valid (or this isn't needed?) I mean, in which moment, Bitcoin nodes accept my offline-created address. I have create a script that creates bitcoin wallets, and I create one offline, then I search for that address on https://www.blockchain.com/explorer and it shows my…

Continue Reading How Bitcoin nodes validate a new wallet

Why does my implementation of hex to Base58check produce different results than the example?

Step 8 of this wiki page gives this hex value: 00010966776006953D5567439E5E39F86A0D273BEED61967F6 Step 9 converts it to this base58 string:16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM I'm trying to implement the conversion function using the pseudocode from this wiki page. This is my implementation (in Java): String input = "00010966776006953D5567439E5E39F86A0D273BEED61967F6" BigInteger bigInteger = new BigInteger(input , 16); String code_string = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; StringBuilder output = new StringBuilder(); while(bigInteger.compareTo(BigInteger.ZERO) == 1){ BigInteger[] divAndRemainder = bigInteger.divideAndRemainder(BigInteger.valueOf(58)); output.append(code_string.charAt(divAndRemainder[1].intValue())); bigInteger = divAndRemainder[0]; } int i=0; while(concat.charAt(i) == '0'){ i++; output.append(code_string.charAt(0)); } System.out.println(output.reverse()); This prints out 1116UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM. This is close to what the wiki page produces, but not quite, there are 2 extra…

Continue Reading Why does my implementation of hex to Base58check produce different results than the example?

End of content

No more pages to load