Crate consensus_config

Crate consensus_config 

Source

Structs§

Authority
Represents one authority in the committee.
AuthorityIndex
Each authority is uniquely identified by its AuthorityIndex in the Committee. AuthorityIndex is between 0 (inclusive) and the total number of authorities (exclusive).
AuthorityName
Committee
Committee is the set of authorities that participate in the consensus protocol for this epoch. Its configuration is stored and computed on chain.
ConsensusProtocolConfig
Protocol configuration values that consensus reads. This is a standalone struct so that consensus-core does not depend on sui-protocol-config (and transitively on the Move VM).
InternalParameters
Internal parameters unrelated to operating a consensus node in the real world.
NetworkKeyPair
NetworkPrivateKey
NetworkPublicKey
Network key is used for TLS and as the network identity of the authority.
Parameters
Operational configurations of a consensus authority.
ProtocolKeyPair
ProtocolKeySignature
ProtocolPublicKey
Protocol key is used for signing blocks and verifying block signatures.
TonicParameters

Constants§

AUTHORITY_NAME_LENGTH
Authority name is a raw bytes identity for an authority, matching AuthorityName on 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§

DefaultHashFunction
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.