getpubkey
object. When a node has the hash of a public key (from an
address) but not the public key itself, it must send out a request
for the public key.
Methods
(static) decodeAsync(buf, optsnullable) → {Promise.<Object>}
Decode getpubkey
object message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
buf |
Buffer | Message |
|
opts |
Object |
<nullable> |
Decoding options |
- Source:
Returns:
A promise that contains decoded
getpubkey
object structure when fulfilled.
- Type
- Promise.<Object>
(static) decodePayloadAsync(buf, optsnullable) → {Promise.<Object>}
Decode getpubkey
object message payload.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
buf |
Buffer | Message payload |
|
opts |
Object |
<nullable> |
Decoding options |
- Source:
Returns:
A promise that contains decoded
getpubkey
object structure when fulfilled.
- Type
- Promise.<Object>
(static) encodeAsync(opts) → {Promise.<Buffer>}
Encode getpubkey
object message.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object |
|
- Source:
Returns:
A promise that contains encoded message when fulfilled.
- Type
- Promise.<Buffer>
(static) encodePayloadAsync(opts) → {Promise.<Buffer>}
Encode getpubkey
object message payload.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object |
|
- Source:
Returns:
A promise that contains encoded message payload when fulfilled.
- Type
- Promise.<Buffer>