Skip to main content

ConsensusCommitDigestProtocol

ConsensusCommitDigestProtocol Objects

class ConsensusCommitDigestProtocol(typing.Protocol)

The digest of a consensus commit.

next_lexicographical

def next_lexicographical() -> ConsensusCommitDigest

Returns the next digest in byte-increasing order.

next_lexicographical_opt

def next_lexicographical_opt() -> typing.Optional[ConsensusCommitDigest]

Returns the next digest in byte-increasing order, or None if the result would overflow.