mirror of
https://github.com/logos-messaging/specs.git
synced 2026-01-07 16:43:06 +00:00
Update enr.md
This commit is contained in:
parent
9c6f271bae
commit
20bb79a985
@ -74,7 +74,7 @@ We define a `multiaddrs` key.
|
|||||||
|
|
||||||
#### Many connection types
|
#### Many connection types
|
||||||
|
|
||||||
Alice is a node operator, she runs a node that supports inbound connection for the following protocols:
|
Alice is a Waku node operator, she runs a node that supports inbound connection for the following protocols:
|
||||||
|
|
||||||
- TCP 10101 on `1.2.3.4`
|
- TCP 10101 on `1.2.3.4`
|
||||||
- UDP 20202 on `1.2.3.4`
|
- UDP 20202 on `1.2.3.4`
|
||||||
@ -84,7 +84,7 @@ Alice is a node operator, she runs a node that supports inbound connection for t
|
|||||||
- QUIC on `quic://quic.example.com:443/`
|
- QUIC on `quic://quic.example.com:443/`
|
||||||
- A circuit relay address `/ip4/1.2.3.4/tcp/55555/p2p/QmRelay/p2p-circuit/p2p/QmAlice`
|
- A circuit relay address `/ip4/1.2.3.4/tcp/55555/p2p/QmRelay/p2p-circuit/p2p/QmAlice`
|
||||||
|
|
||||||
Alice SHOULD structure the ENR for her node as follows:
|
Alice SHOULD structure the ENR for her node as follows: *** signs? ***
|
||||||
|
|
||||||
| key | value |
|
| key | value |
|
||||||
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
@ -97,7 +97,7 @@ Alice SHOULD structure the ENR for her node as follows:
|
|||||||
| `secp256k1` | Alice's compressed secp256k1 public key, 33 bytes |
|
| `secp256k1` | Alice's compressed secp256k1 public key, 33 bytes |
|
||||||
| `multiaddrs` | <code>len1 | /dns4/example.com/tcp/443/wss | len2 | /dns4/quic.examle.com/tcp/443/quic | len3 | /ip4/1.2.3.4/tcp/55555/p2p/QmRelay </code> |
|
| `multiaddrs` | <code>len1 | /dns4/example.com/tcp/443/wss | len2 | /dns4/quic.examle.com/tcp/443/quic | len3 | /ip4/1.2.3.4/tcp/55555/p2p/QmRelay </code> |
|
||||||
|
|
||||||
Where:
|
Where `multiaddrs`:
|
||||||
|
|
||||||
- `|` is the concatenation operator,
|
- `|` is the concatenation operator,
|
||||||
- `len1` is the length of `/dns4/example.com/tcp/443/wss` byte representation,
|
- `len1` is the length of `/dns4/example.com/tcp/443/wss` byte representation,
|
||||||
@ -125,7 +125,7 @@ then it is not needed to use the `multiaddrs` key.
|
|||||||
|
|
||||||
Supported key type is `secp256k1` only.
|
Supported key type is `secp256k1` only.
|
||||||
|
|
||||||
In the future, an extension of this specification could be made to support other elliptic curve cryptography such as `ed25519`.
|
Support for other elliptic curve cryptography such as `ed25519` MAY be used.
|
||||||
|
|
||||||
### `waku2` ENR key
|
### `waku2` ENR key
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user