Helios API/ API Reference/ Classes/
RootPrivateKey
Implements
Implements
Index
Constructors
constructor
• new RootPrivateKey(entropy
)
Parameters
Name | Type |
---|---|
entropy | number [] |
Accessors
bytes
• get
bytes(): number
[]
Returns
number
[]
entropy
• get
entropy(): number
[]
Returns
number
[]
Methods
derive
▸ derive(i
): Bip32PrivateKey
Parameters
Name | Type | Description |
---|---|---|
i | number | childIndex |
Returns
derivePath
▸ derivePath(path
): Bip32PrivateKey
Parameters
Name | Type |
---|---|
path | number [] |
Returns
derivePubKey
▸ derivePubKey(): PubKey
Returns
Implementation of
deriveSpendingKey
▸ deriveSpendingKey(accountIndex?
, i?
): Bip32PrivateKey
Parameters
Name | Type |
---|---|
accountIndex? | number |
i? | number |
Returns
deriveSpendingRootKey
▸ deriveSpendingRootKey(accountIndex?
): Bip32PrivateKey
Parameters
Name | Type |
---|---|
accountIndex? | number |
Returns
deriveStakingKey
▸ deriveStakingKey(accountIndex?
, i?
): Bip32PrivateKey
Parameters
Name | Type |
---|---|
accountIndex? | number |
i? | number |
Returns
deriveStakingRootKey
▸ deriveStakingRootKey(accountIndex
): Bip32PrivateKey
Parameters
Name | Type |
---|---|
accountIndex | number |
Returns
sign
▸ sign(message
): Signature
Parameters
Name | Type |
---|---|
message | number [] |
Returns
Implementation of
toPhrase
▸ toPhrase(dict?
): string
[]
Parameters
Name | Type |
---|---|
dict? | string [] |
Returns
string
[]
fromPhrase
▸ Static
fromPhrase(phrase
, dict?
): RootPrivateKey
Parameters
Name | Type |
---|---|
phrase | string [] |
dict? | string [] |
Returns
isValidPhrase
▸ Static
isValidPhrase(phrase
, dict?
): boolean
Parameters
Name | Type |
---|---|
phrase | string [] |
dict? | string [] |
Returns
boolean