Skip to content

@aldea/sdk / Exports / SharedKeyPair

Class: SharedKeyPair

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SharedKeyPair(ownPrivKey, theirPubKey): SharedKeyPair

Parameters

NameType
ownPrivKeyPrivKey
theirPubKeyPubKey

Returns

SharedKeyPair

Defined in

packages/core/dist/shared-keypair.d.ts:6

Properties

ownPrivKey

ownPrivKey: PrivKey

Defined in

packages/core/dist/shared-keypair.d.ts:3


s

s: Uint8Array

Defined in

packages/core/dist/shared-keypair.d.ts:5


theirPubKey

theirPubKey: PubKey

Defined in

packages/core/dist/shared-keypair.d.ts:4

Methods

deriveOwnPrivKeyBytes

deriveOwnPrivKeyBytes(data): Uint8Array

Parameters

NameType
datastring | Uint8Array

Returns

Uint8Array

Defined in

packages/core/dist/shared-keypair.d.ts:8


deriveOwnPubKey

deriveOwnPubKey(data): PubKey

Parameters

NameType
datastring | Uint8Array

Returns

PubKey

Defined in

packages/core/dist/shared-keypair.d.ts:9


deriveTheirPubKey

deriveTheirPubKey(data): PubKey

Parameters

NameType
datastring | Uint8Array

Returns

PubKey

Defined in

packages/core/dist/shared-keypair.d.ts:10


getSharedSecret

getSharedSecret(data, bytes?): Uint8Array

Parameters

NameType
datastring | Uint8Array
bytes?number

Returns

Uint8Array

Defined in

packages/core/dist/shared-keypair.d.ts:7