Namespace: pubkey

bitmessage/objects. pubkey

Methods

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

Decode pubkey object message.

Parameters:
Name Type Attributes Description
buf Buffer

Message

opts Object <nullable>

Decoding options

Source:
Returns:

A promise that contains decoded pubkey object structure when fulfilled.

Type
Promise.<Object>

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

Decode pubkey object message payload.

Parameters:
Name Type Attributes Description
buf Buffer

Message payload

opts Object <nullable>

Decoding options

Source:
Returns:

A promise that contains decoded pubkey object structure when fulfilled.

Type
Promise.<Object>

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

Encode pubkey object message.

Parameters:
Name Type Description
opts Object

pubkey object options

Source:
Returns:

A promise that contains encoded message when fulfilled.

Type
Promise.<Buffer>

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

Encode pubkey object message payload.

Parameters:
Name Type Description
opts Object

pubkey object options

Source:
Returns:

A promise that contains encoded message payload when fulfilled.

Type
Promise.<Buffer>