ExtKey
'ExtKey' is a class representing Extended keys and operations on it.
Static Methods
fromSeed
Creates ExtKey from given seed.
Params
seed
const core::Buffer &
the seed used to generate Key
Returns
ExtKey
·
ExtKey object
fromBase58
Decodes ExtKey from Base58 format.
Params
base58
const std::string &
the ExtKey in Base58
Returns
ExtKey
·
ExtKey object
generateRandom
Generates a new ExtKey.
Returns
ExtKey
·
ExtKey object
Methods
derive
Generates child ExtKey from a current ExtKey using BIP32.
Params
index
uint32_t
number from 0 to 2^31-1
Returns
ExtKey
·
ExtKey object
deriveHardened
Generates hardened child ExtKey from a current ExtKey using BIP32.
Params
index
uint32_t
number from 0 to 2^31-1
Returns
ExtKey
·
ExtKey object
getPrivatePartAsBase58
Converts ExtKey to Base58 string.
Returns
std::string
·
ExtKey in Base58 format
getPublicPartAsBase58
Converts the public part of ExtKey to Base58 string.
Returns
std::string
·
ExtKey in Base58 format
getPrivateKey
Extracts ECC PrivateKey.
Returns
std::string
·
ECC key in WIF format
getPublicKey
Extracts ECC PublicKey.
Returns
std::string
·
ECC key in BASE58DER format
getPrivateEncKey
Extracts raw ECC PrivateKey.
Returns
core::Buffer
·
ECC PrivateKey
getPublicKeyAsBase58Address
Extracts ECC PublicKey Address.
Returns
std::string
·
ECC Address in BASE58 format
getChainCode
Returns
core::Buffer
·
Raw chain code
verifyCompactSignatureWithHash
Params
message
const core::Buffer &
data used on validation
signature
const core::Buffer &
signature of data to verify
Returns
bool
·
message validation result
isPrivate
Checks if ExtKey is Private.
Returns
bool
·
returns true if ExtKey is private
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.