Orderly SDKs / Modules / @orderly.network/core / BaseOrderlyKeyPair

Class: BaseOrderlyKeyPair

@orderly.network/core.BaseOrderlyKeyPair

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BaseOrderlyKeyPair(secretKey)

Parameters

NameType
secretKeystring

Defined in

packages/core/src/keyPair.ts:26

Properties

privateKey

Private privateKey: string

Defined in

packages/core/src/keyPair.ts:12


secretKey

secretKey: string

Implementation of

OrderlyKeyPair.secretKey

Defined in

packages/core/src/keyPair.ts:11

Methods

getPublicKey

getPublicKey(): Promise<string>

Returns

Promise<string>

Implementation of

OrderlyKeyPair.getPublicKey

Defined in

packages/core/src/keyPair.ts:36


sign

sign(message): Promise<Uint8Array>

Parameters

NameType
messageUint8Array

Returns

Promise<Uint8Array>

Implementation of

OrderlyKeyPair.sign

Defined in

packages/core/src/keyPair.ts:32


toString

toString(): string

Returns

string

Defined in

packages/core/src/keyPair.ts:43


generateKey

Static generateKey(): OrderlyKeyPair

Returns

OrderlyKeyPair

Defined in

packages/core/src/keyPair.ts:14