Bitcoin Forum
June 17, 2024, 05:19:53 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Derivation path of trezor wallet on: May 19, 2018, 04:33:58 PM
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?

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  Huh


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!
2  Bitcoin / Development & Technical Discussion / Re: Derivation path of trezor wallet on: May 14, 2018, 12:01:45 PM
I use bitcore.io library:

var code = new Mnemonic(mnemonic);
var hdPrivateKey = code.toHDPrivateKey();
var derived = hdPrivateKey.derive("m/49'/0'/0'");
var address = derived.privateKey.toAddress().toString();
console.log("address:", address);

but still using m/49(not m/44) I get the adresses which beginning from "1".(but I need "3"). Where is my fault?
3  Bitcoin / Development & Technical Discussion / Derivation path of trezor wallet on: May 14, 2018, 10:21:28 AM
Hi everyone! I'm trying to derive my private key for BTC from Trezor with 24 seed.
I'm lost as I can not find the right private key for the right Address that holds the funds. (Derivation path m/44'/0'/0' is not match)
Maybe problem in bitcore.io libriary?
Can anyone help me find the derivation path BTC of trezor wallet?(1.6.1)
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!