Crate starfish_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) limited by u8 to 255.
AuthorityKeyPair
AuthorityPublicKey
Authority key represents the identity of an authority. It is only used for identity sanity checks and not used for verification.
Blake3Hasher
Committee
Committee is the set of authorities that participate in the consensus protocol for this epoch. Its configuration is stored and computed on chain. Committee size is currently limited to 256 as AuthorityIndex is u8.
DefaultHashFunctionWrapper
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§

DIGEST_LENGTH
INTENT_MESSAGE_LENGTH

Functions§

local_committee_and_keys
Creates a committee for local testing, and the corresponding key pairs for the authorities.

Type Aliases§

DefaultHashFunction
Fast hash function (Blake3) for consensus-related operations. Since transactions are encoded, their serializations are increased by approximately three times, making Blake3’s higher throughput beneficial for overall performance.
Epoch
Committee of the consensus protocol is updated each epoch.
Stake
Voting power of an authority, roughly proportional to the actual amount of IOTA staked by the authority. Total stake / voting power of all authorities should sum to 10,000.