ethereumjs-monorepo

@ethereumjs/devp2p / ECIES

Class: ECIES

Table of contents

Constructors

Methods

Constructors

constructor

new ECIES(privateKey, id, remoteId)

Parameters

Name Type
privateKey Uint8Array
id Uint8Array
remoteId Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:80

Methods

_decryptMessage

_decryptMessage(data, sharedMacData?): Uint8Array

Parameters

Name Type Default value
data Uint8Array undefined
sharedMacData null | Uint8Array null

Returns

Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:119


_encryptMessage

_encryptMessage(data, sharedMacData?): undefined | Uint8Array

Parameters

Name Type Default value
data Uint8Array undefined
sharedMacData null | Uint8Array null

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:90


_setupFrame

_setupFrame(remoteData, incoming): void

Parameters

Name Type
remoteData Uint8Array
incoming boolean

Returns

void

Defined in

packages/devp2p/src/rlpx/ecies.ts:154


createAckEIP8

createAckEIP8(): undefined | Uint8Array

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:284


createAckOld

createAckOld(): undefined | Uint8Array

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:301


createAuthEIP8

createAuthEIP8(): undefined | Uint8Array

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:178


createAuthNonEIP8

createAuthNonEIP8(): undefined | Uint8Array

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:201


createBody

createBody(data): undefined | Uint8Array

Parameters

Name Type
data Uint8Array

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:378


createHeader

createHeader(size): undefined | Uint8Array

Parameters

Name Type
size number

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:347


parseAckEIP8

parseAckEIP8(data): void

Parameters

Name Type
data Uint8Array

Returns

void

Defined in

packages/devp2p/src/rlpx/ecies.ts:341


parseAckPlain

parseAckPlain(data, sharedMacData?): void

Parameters

Name Type Default value
data Uint8Array undefined
sharedMacData null | Uint8Array null

Returns

void

Defined in

packages/devp2p/src/rlpx/ecies.ts:311


parseAuthEIP8

parseAuthEIP8(data): void

Parameters

Name Type
data Uint8Array

Returns

void

Defined in

packages/devp2p/src/rlpx/ecies.ts:278


parseAuthPlain

parseAuthPlain(data, sharedMacData?): undefined | Uint8Array

Parameters

Name Type Default value
data Uint8Array undefined
sharedMacData null | Uint8Array null

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:218


parseBody

parseBody(data): undefined | Uint8Array

Parameters

Name Type
data Uint8Array

Returns

undefined | Uint8Array

Defined in

packages/devp2p/src/rlpx/ecies.ts:389


parseHeader

parseHeader(data): undefined | number

Parameters

Name Type
data Uint8Array

Returns

undefined | number

Defined in

packages/devp2p/src/rlpx/ecies.ts:362