Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 1.04 KB

_dpt_message_.md

File metadata and controls

62 lines (38 loc) · 1.04 KB

ethereumjs-devp2p

Globals / "dpt/message"

Module: "dpt/message"

Index

Interfaces

Functions

Functions

decode

decode(buffer: Buffer): object

Defined in src/dpt/message.ts:188

Parameters:

Name Type
buffer Buffer

Returns: object

Name Type
data any
publicKey Buffer
typename string | number

encode

encode<T>(typename: string, data: T, privateKey: Buffer): Buffer

Defined in src/dpt/message.ts:175

Type parameters:

Name
T

Parameters:

Name Type
typename string
data T
privateKey Buffer

Returns: Buffer