ExtKey
Class representing Extended keys and operations on it.
Static Methods
fromBase58
Decodes ExtKey from Base58 format.
Params
base58
String
the ExtKey in Base58
Returns
ExtKey
·
ExtKey object
fromSeed
Creates ExtKey from given seed.
Params
seed
byte[]
the seed used to generate Key
Returns
ExtKey
·
ExtKey object
generateRandom
Generates a new ExtKey.
Returns
ExtKey
·
ExtKey object
Methods
close
derive
Generates child ExtKey from a current ExtKey using BIP32.
Params
index
int
number from 0 to 2^31-1
Returns
ExtKey
·
ExtKey object
deriveHardened
Generates hardened child ExtKey from a current ExtKey using BIP32.
Params
index
int
number from 0 to 2^31-1
Returns
ExtKey
·
ExtKey object
getChainCode
Gets the chain code of Extended Key.
Returns
byte[]
·
Raw chain code
getPrivateEncKey
Extracts raw ECC PrivateKey.
Returns
byte[]
·
ECC PrivateKey
getPrivateKey
Extracts ECC PrivateKey.
Returns
String
·
ECC key in WIF format
getPrivatePartAsBase58
Converts ExtKey to Base58 string.
Returns
String
·
ExtKey in Base58 format
getPublicKey
Extracts ECC PublicKey.
Returns
String
·
ECC key in BASE58DER format
getPublicKeyAsBase58Address
Extracts ECC PublicKey Address.
Returns
String
·
ECC Address in BASE58 format
getPublicPartAsBase58
Converts the public part of ExtKey to Base58 string.
Returns
String
·
ExtKey in Base58 format
isPrivate
Checks if ExtKey is Private.
Returns
boolean
·
returns true if ExtKey is private
verifyCompactSignatureWithHash
Validates a signature of a message.
Params
message
byte[]
data used on validation
signature
byte[]
signature of data to verify
Returns
boolean
·
message validation result
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.