Skip to main content

@bloock/sdk / RsaKeyPair

Class: RsaKeyPair

Represents a rsa key pair, with private and public key.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RsaKeyPair(publicKey, privateKey): RsaKeyPair

Constructs a KeyPair object with the specified parameters.

Parameters

NameType
publicKeystring
privateKeystring

Returns

RsaKeyPair

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/rsa_key_pair.ts:8