Helios API/ API Reference/ Classes/
Ed25519PrivateKey
Implements
Hierarchy
-
↳
Ed25519PrivateKey
Implements
Index
Constructors
constructor
• new Ed25519PrivateKey(bytes
)
Parameters
Name | Type |
---|---|
bytes | string | number [] |
Overrides
Accessors
bytes
• get
bytes(): number
[]
Returns
number
[]
hex
• get
hex(): string
Returns
string
Methods
derivePubKey
▸ derivePubKey(): PubKey
Returns
Implementation of
extend
▸ extend(): Ed25519PrivateKey
NOT the Ed25519-Bip32 hierarchial extension algorithm (see ExtendedPrivateKey below)
Returns
sign
▸ sign(message
): Signature
Parameters
Name | Type |
---|---|
message | number [] |
Returns
Implementation of
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
random
▸ Static
random(random
): Ed25519PrivateKey
Generate a private key from a random number generator. This is not cryptographically secure, only use this for testing purpose
Parameters
Name | Type |
---|---|
random | NumberGenerator |
Returns
- Ed25519 private key is 32 bytes long