Skip to content

Commit

Permalink
Use node_ prefix for node ID (nanocurrency#67)
Browse files Browse the repository at this point in the history
* Use node_ prefix for node ID

nanocurrency/nano-node#2191

* Minor typo

* Clarify versions using node_ prefix
  • Loading branch information
SergiySW authored and GuyWhoKnowsTheGuy committed Aug 9, 2019
1 parent 83e2764 commit 1711194
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/commands/rpc-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,8 @@ _enable_control required, version 17.0+_

--8<-- "debug-only-command.md"

Derive private key, public key and account number from node ID
Derive private key, public key and node ID number with checksum (similar to account representation). "as_account" field is **deprecated**
_version 20.0 will generate the node_id with `node_` prefix, earlier versions will generate with `nano_` prefix_

**Request:**
```json
Expand All @@ -1498,7 +1499,8 @@ Derive private key, public key and account number from node ID
{
"private": "2AD75C9DC20EA497E41722290C4DC966ECC4D6C75CAA4E447961F918FD73D8C7",
"public": "78B11E1777B8E7DF9090004376C3EDE008E84680A497C0805F68CA5928626E1C",
"as_account": "nano_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3"
"as_account": "nano_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3",
"node_id": "node_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3"
}
```

Expand Down Expand Up @@ -1556,15 +1558,17 @@ Returns a list of pairs of online peer IPv6:port and its node protocol network v
**Optional "peer_details"**

_version 18.0+_
Boolean, false by default. Returns a list of peers IPv6:port with its node protocol network version and node ID. The node ID is random and is not a Nano address. `type` returned in version 19.0+ as either `tcp` (preferred) or `udp` (fallback) used for peering with that node.
Boolean, false by default. Returns a list of peers IPv6:port with its node protocol network version and node ID. The node ID is random and is not a Nano address. `type` returned in version 19.0+ as either `tcp` (preferred) or `udp` (fallback) used for peering with that node.

_version 20.0 will generate the node_id with `node_` prefix, earlier versions will generate with `nano_` prefix_

**Response:**
```json
{
"peers": {
"[::ffff:172.17.0.1]:32841": {
"protocol_version": "16",
"node_id": "nano_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3",
"node_id": "node_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3",
"type": "udp"
}
}
Expand Down

0 comments on commit 1711194

Please sign in to comment.