Skip to content

kaspeak-sdk


kaspeak-sdk / Peer

Class: Peer

Defined in: crypto/peer.ts:4

Constructors

Constructor

new Peer(address, publicKey, signature, isOwn, privateKey): Peer

Defined in: crypto/peer.ts:14

Parameters

address

string

publicKey

Uint8Array

signature

Uint8Array

isOwn

boolean

privateKey

bigint

Returns

Peer

Properties

address

readonly address: string

Defined in: crypto/peer.ts:5


isOwn

readonly isOwn: boolean

Defined in: crypto/peer.ts:8

Accessors

chainKey

Get Signature

get chainKey(): bigint

Defined in: crypto/peer.ts:40

Returns

bigint


publicKey

Get Signature

get publicKey(): Uint8Array

Defined in: crypto/peer.ts:22

Returns

Uint8Array


sharedSecret

Get Signature

get sharedSecret(): Uint8Array

Defined in: crypto/peer.ts:35

Returns

Uint8Array


signature

Get Signature

get signature(): Uint8Array

Defined in: crypto/peer.ts:26

Returns

Uint8Array