Skip to main content

@bloock/sdk / EcdsaKeyPair

Class: EcdsaKeyPair

Represents an ecdsa key pair, with private and public key.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EcdsaKeyPair(publicKey, privateKey): EcdsaKeyPair

Constructs a KeyPair object with the specified parameters.

Parameters

NameType
publicKeystring
privateKeystring

Returns

EcdsaKeyPair

Inherited from

KeyPair.constructor

Defined in

entity/key/key_pair.ts:13

Properties

privateKey

privateKey: string

Inherited from

KeyPair.privateKey

Defined in

entity/key/key_pair.ts:6


publicKey

publicKey: string

Inherited from

KeyPair.publicKey

Defined in

entity/key/key_pair.ts:5

Methods

fromProto

fromProto(k): KeyPair

Parameters

NameType
kGenerateLocalKeyResponse

Returns

KeyPair

Defined in

entity/key/ecdsa_key_pair.ts:8