Namespace: version

bitmessage/messages. version

Members

(static, constant) NONCE :Buffer

Random nonce used to detect connections to self.

Type:
  • Buffer
Source:

Methods

(static) decode(buf) → {Object}

Decode version message. NOTE: nonce is copied.

Parameters:
Name Type Description
buf Buffer

Message

Source:
Returns:

Decoded version structure.

Type
Object

(static) decodePayload(buf) → {Object}

Decode version message payload. NOTE: nonce is copied.

Parameters:
Name Type Description
buf Buffer

Message payload

Source:
Returns:

Decoded version structure.

Type
Object

(static) encode(opts) → {Buffer}

Encode version message.

Parameters:
Name Type Description
opts Object

Version options

Source:
Returns:

Encoded message.

Type
Buffer

(static) encodePayload(opts) → {Buffer}

Encode version message payload.

Parameters:
Name Type Description
opts Object

Version options

Source:
Returns:

Encoded payload.

Type
Buffer