Namespace: inv

bitmessage/messages. inv

inv message. Allows a node to advertise its knowledge of one or more objects.

Source:
See:

Methods

(static) decode(buf) → {Object}

Decode inv message.

Parameters:
Name Type Description
buf Buffer

Message

Source:
Returns:

Decoded inv structure.

Type
Object

(static) decodePayload(buf) → {Object}

Decode inv message payload.

Parameters:
Name Type Description
buf Buffer

Message payload

Source:
Returns:

Decoded inv structure.

Type
Object

(static) encode(inventory) → {Buffer}

Encode inv message.

Parameters:
Name Type Description
inventory Array.<Buffer>

Inventory vector list

Source:
Returns:

Encoded message.

Type
Buffer

(static) encodePayload(inventory) → {Buffer}

Encode inv message payload.

Parameters:
Name Type Description
inventory Array.<Buffer>

Inventory vector list

Source:
Returns:

Encoded payload.

Type
Buffer