Structs§
- Authority
- Represents one authority in the committee.
- Authority
Index - Each authority is uniquely identified by its AuthorityIndex in the Committee. AuthorityIndex is between 0 (inclusive) and the total number of authorities (exclusive).
- Authority
Name - Committee
- Committee is the set of authorities that participate in the consensus protocol for this epoch. Its configuration is stored and computed on chain.
- Consensus
Protocol Config - Protocol configuration values that consensus reads. This is a standalone
struct so that
consensus-coredoes not depend onsui-protocol-config(and transitively on the Move VM). - Internal
Parameters - Internal parameters unrelated to operating a consensus node in the real world.
- Network
KeyPair - Network
Private Key - Network
Public Key - Network key is used for TLS and as the network identity of the authority.
- Parameters
- Operational configurations of a consensus authority.
- Protocol
KeyPair - Protocol
KeySignature - Protocol
Public Key - Protocol key is used for signing blocks and verifying block signatures.
- Tonic
Parameters
Constants§
- AUTHORITY_
NAME_ LENGTH - Authority name is a raw bytes identity for an authority, matching
AuthorityNameon the Sui side. It is only used for identity sanity checks and not for cryptographic verification. The bytes originate from the authority’s BLS12381 public key. - DIGEST_
LENGTH - INTENT_
MESSAGE_ LENGTH
Functions§
- local_
committee_ and_ keys - Creates a committee for local testing, and the corresponding key pairs for the authorities.
- local_
committee_ and_ keys_ with_ test_ options
Type Aliases§
- Default
Hash Function - Defines algorithm and format of block and commit digests.
- Epoch
- Committee of the consensus protocol is updated each epoch.
- Stake
- Voting power of an authority, roughly proportional to the actual amount of Sui staked by the authority. Total stake / voting power of all authorities should sum to 10,000.