I use bitcore.io library:
~snip~
but still using m/49(not m/44) I get the adresses which beginning from "1".(but I need "3"). Where is my fault?
~snip~
but still using m/49(not m/44) I get the adresses which beginning from "1".(but I need "3"). Where is my fault?
According to the official documentary of the bitcore.io libary (https://bitcore.io/api/lib/address#new_Address_new) the only way to create a nested P2SH address is to call new Address(data, network, [type]).
The function hdPrivateKey.derive(arg, hardened) seems to not be supporting nested P2SH. (https://bitcore.io/api/lib/hd-keys#HDPrivateKey+derive).
I might just not have found the correct function. But it seems that this is currently not possible with this libary
Is there a specific reason you want to use javascript? This python libary does give you the ability to derive the desired P2SH address from your mnemonic seed.
I have tried the library you have suggested, but the docs there are full mess, and I was not able to grasp the way to generate private key from mnemonic.
Could you, please, tip me on the code or at least methods I should use?
If not, may be you can give another library on Java or JavaScript.
Thank you!