-
Notifications
You must be signed in to change notification settings - Fork 97
Description
The response returned by invoking the net_nodeInfo RPC method should be extended with the following properties:
port(e.g. 8483)filePort(e.g. 8484)addressSignature(can be empty, see below)
The address property already exists but is always empty. This property should be used to return the PublicAddress specified in the node_config.json configuration file.
The addressSignature property should be the signature generated by ed25519.Sign(privateKey, address). The signature can then be verified with ed25519.Verify(node.ID.Bytes(), address, signature) assuming that node.ID.Bytes() is the publicKey of the privateKey used to generate the signature. (Note: will be empty if address is empty) Similar to:
Line 312 in 46bd60e
| sign := ed25519.Sign(mineKey, node.ID.Bytes()) |
Additionally, the response returned by invoking the dashboard_processInfo RPPC method should be extended with the following properties:
httpPort(e.g. 48132, omitted if HTTP is not enabled)wsPort(e.g. 41420, omitted if WS is not enabled)