PrivateKey

Represents a Ed25519 private key. This class can be useful when testing using the WalletEmulator.

Getters

bytes

Gets the underlying bytes.

privateKey.bytes: number[]

hex

Returns the hexadecimal representation of the underlying bytes.

privateKey.hex: string

Methods

derivePubKey

Derives the associated PubKey.

privateKey.derivePubKey(): helios.PubKey

extend

Generates a new PrivateKey by hashing the bytes of the current PrivateKey.

privateKey.extend(): helios.PrivateKey

sign

Signs a message (as a list of bytes), returning a Signature.

privateKey.sign(message: number[]): helios.Signature