Namespace: broadcast

bitmessage/objects. broadcast

Methods

(static) decodeAsync(buf, opts) → {Promise.<Object>}

Decode broadcast object message.

Parameters:
Name Type Description
buf Buffer

Message

opts Object

Decoding options

Source:
Returns:

A promise that contains decoded broadcast object structure when fulfilled.

Type
Promise.<Object>

(static) decodePayloadAsync(buf, opts) → {Promise.<Object>}

Decode broadcast object message payload.

Parameters:
Name Type Description
buf Buffer

Message payload

opts Object

Decoding options

Source:
Returns:

A promise that contains decoded pubkey object structure when fulfilled.

Type
Promise.<Object>

(static) encodeAsync(opts) → {Promise.<Buffer>}

Encode broadcast object message.

Parameters:
Name Type Description
opts Object

broadcast object options

Source:
Returns:

A promise that contains encoded message when fulfilled.

Type
Promise.<Buffer>

(static) encodePayloadAsync(opts) → {Promise.<Buffer>}

Encode broadcast object message payload.

Parameters:
Name Type Description
opts Object

broadcast object options

Source:
Returns:

A promise that contains encoded message payload when fulfilled.

Type
Promise.<Buffer>