Skip to content

extend NodeInfo of NetApi #627

@niklr

Description

@niklr

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:

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)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions