hdKey()
Feature
Generate a key randomly using the HD wallet method. (BIP-32 standard) 815 is a coin type for imFact.
Parameters
-
Return Value
object
HDAccount {
privatekey
: private key,
publickey
: public key,
address
: address,
phrase
: phrases made up of 12 mnemonic words,
path
: derivation path for HD wallet. Default set to "m/44'/815'/0'/0/0"
}
example
const randomKeyPair = mitum.account.hdKey();
console.log(randomKeyPair);
//output
{
privatekey: '210a0059a40d142f558f4fbbbedfd657b9bf40e7f00ea0cedf434bf852c158acfpr',
publickey: '02b54452bf9ddb4bee7e9a7e183185b7e5545369dbade0329c57df5403701ca659fpu',
address: '0x2156f81F51b22be742187E313248bc429e97825Efca',
phrase: 'visa cash blossom vote shuffle enhance dizzy moon worth split outside ensure',
path: "m/44'/815'/0'/0/0"
}
Last updated