Skip to content

Latest commit

 

History

History
106 lines (59 loc) · 1.74 KB

File metadata and controls

106 lines (59 loc) · 1.74 KB

@ethereumjs/devp2p / MAC

Class: MAC

Table of contents

Constructors

Methods

Constructors

constructor

new MAC(secret)

Parameters

Name Type
secret Uint8Array

Defined in

packages/devp2p/src/rlpx/mac.ts:11

Methods

digest

digest(): Uint8Array

Returns

Uint8Array

Defined in

packages/devp2p/src/rlpx/mac.ts:34


update

update(data): void

Parameters

Name Type
data string | Uint8Array

Returns

void

Defined in

packages/devp2p/src/rlpx/mac.ts:16


updateBody

updateBody(data): void

Parameters

Name Type
data string | Uint8Array

Returns

void

Defined in

packages/devp2p/src/rlpx/mac.ts:26


updateHeader

updateHeader(data): void

Parameters

Name Type
data string | Uint8Array

Returns

void

Defined in

packages/devp2p/src/rlpx/mac.ts:20