Skip to content

Commit

Permalink
Update onchain-discovery.md documentation
Browse files Browse the repository at this point in the history
Closes: #9860
  • Loading branch information
hariria authored and bors-libra committed Dec 9, 2021
1 parent a36a599 commit 19ac6ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions specifications/network/onchain-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

The [DiemNet](README.md) On-chain Discovery Protocol is an authenticated discovery protocol for nodes to learn validator and VFN network addresses and network identity public keys. On-chain discovery leverages the Move language and Diem blockchain to serve as a central authenticated data-store for distributing advertised validator and VFN discovery information in the form of [`RawNetworkAddress`](network-address.md)es for validators and [`RawNetworkAddress`](network-address.md)es for VFNs.
The [DiemNet](README.md) On-chain Discovery Protocol is an authenticated discovery protocol for nodes to learn validator and VFN network addresses and network identity public keys. On-chain discovery leverages the Move language and Diem blockchain to serve as a central authenticated data-store for distributing advertised validator and VFN discovery information in the form of [`NetworkAddress`](network-address.md)es for validators and [`NetworkAddress`](network-address.md)es for VFNs.

## Design Principles

Expand Down Expand Up @@ -46,8 +46,8 @@ struct ValidatorInfo {

struct ValidatorConfig {
consensus_public_key: Ed25519PublicKey,
validator_network_addresses: Vec<RawNetworkAddress>,
full_node_network_addresses: Vec<RawNetworkAddress>,
validator_network_addresses: Vec<NetworkAddress>,
full_node_network_addresses: Vec<NetworkAddress>,
}

#[repr(u8)]
Expand All @@ -57,8 +57,8 @@ enum ConsensusScheme {
```

* [`AccountAddress`](../common/data_structures.md#accountaddress)
* [`RawNetworkAddress`](network-address.md)
* [`RawNetworkAddress`](network-address.md)
* [`NetworkAddress`](network-address.md)
* [`NetworkAddress`](network-address.md)

## Bootstrapping

Expand Down Expand Up @@ -88,7 +88,7 @@ Imagine a validator starts with a single advertised network address containing i
addrs = ["/ip4/1.2.3.4/tcp/6180/ln-noise-ik/<pubkey1>/ln-handshake/0"]
```

The validator inititates a key rotation to a new network identity public key `<pubkey2>` by sending a transaction to set its addresses to a new list:
The validator initiates a key rotation to a new network identity public key `<pubkey2>` by sending a transaction to set its addresses to a new list:

```
tx: set_validator_network_addresses(["/ip4/1.2.3.4/tcp/6180/ln-noise-ik/<pubkey2>/ln-handshake/0"])
Expand Down

0 comments on commit 19ac6ac

Please sign in to comment.