possible to generate privatekey based on private key using bitcore.io?

0

Is is possible to generate the private key based on private key, means suppose if i am having one set as bellow :

privatekey : '02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXacdefd'
publickey  : '032XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
Address    : 'MnasXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

suppose we consider for example above is one wallet now i want to create sub wallet of it then is possible something

privatekey : '02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXacdefe'
publickey  : '032XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
Address    : 'MnasXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

just change last digit of private key like 'd' to 'e' and we consider that one is sub wallet.

Is it possible with bitcore library.? or it the correct way to do..?

Codebrekers

Posted 2017-10-10T11:52:20.097

Reputation: 137

Answers

-1

I think BIP-32 "Hierarchical Deterministic Wallets" (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) is usefull for you.

Bjarne

Posted 2017-10-10T11:52:20.097

Reputation: 752

How is this related to bitcore?Pieter Wuille 2017-10-10T23:06:34.483

https://bitcore.io/api/lib/hd-keysBjarne 2017-10-11T06:26:49.723