@aldea/sdk / Exports / SharedKeyPair
Class: SharedKeyPair
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new SharedKeyPair(ownPrivKey
, theirPubKey
): SharedKeyPair
Parameters
Name | Type |
---|---|
ownPrivKey | PrivKey |
theirPubKey | PubKey |
Returns
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
Name | Type |
---|---|
data | string | Uint8Array |
Returns
Uint8Array
Defined in
packages/core/dist/shared-keypair.d.ts:8
deriveOwnPubKey
▸ deriveOwnPubKey(data
): PubKey
Parameters
Name | Type |
---|---|
data | string | Uint8Array |
Returns
Defined in
packages/core/dist/shared-keypair.d.ts:9
deriveTheirPubKey
▸ deriveTheirPubKey(data
): PubKey
Parameters
Name | Type |
---|---|
data | string | Uint8Array |
Returns
Defined in
packages/core/dist/shared-keypair.d.ts:10
getSharedSecret
▸ getSharedSecret(data
, bytes?
): Uint8Array
Parameters
Name | Type |
---|---|
data | string | Uint8Array |
bytes? | number |
Returns
Uint8Array
Defined in
packages/core/dist/shared-keypair.d.ts:7