spacemeshos / api

Protobuf implementation of the Spacemesh API
MIT License
15 stars 9 forks source link

Add API method for getting node's public key #141

Open web3rover opened 3 years ago

web3rover commented 3 years ago

Description

Currently we don't have an API to get the public key of node. We need this to construct the bootnodes config for the nodes in our DevOps tools. Currently our DevOps tools either get this from the logs which looks something like this:

{"L":"INFO","T":"2021-03-30T18:00:38.417Z","N":"ec468.p2p          ","M":"local node identity","node_id":"ec468458ada0fa621c07563dc412c5e7c31979e9d630867301b42540ea35f97c","key":"23gfU2ukQpMbC7NaxgFVaCQpLP9XSNbfunp62na9QwcJ"}

Or read id.json file in the container directory:

/root/spacemesh/{networkID}/p2p/nodes
avive commented 3 years ago

Should def be added to the DebuggingService IMO