kiltro
Nickel Bitcoiner
Nickel Bitcoiner
Posts: 19
Joined: Mon Nov 20, 2017 4:22 am

HDWallet accounts keys with BITBOX

Sun Sep 08, 2019 7:57 am

Hi there,

I'm using BITBOX to construct a transaction that takes as input an address generated via account.getChainAddress(0) but I'm getting an error apparently because the keys don't match.

How could I get the keypair of the following address:

let parent = bitbox.HDNode.fromSeed(seedBuffer);
let child = bitbox.HDNode.deriveHardened(parent, index);
let account = bitbox.HDNode.createAccount([child]);
let address = account.getChainAddress(0);

Thank you guys.

Return to “Development & Technical Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest