event.event_consensus_data.proto Maven / Gradle / Ivy
The newest version!
/**
* # Event Consensus Data
* A message that describes the consensus data for an event.
*
* The `EventConsensusData` contains two fields that are determined once an
* event reaches consensus, the `consensus_timestamp` and `consensus_order`.
*
* ### Keywords
* The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
* "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
* document are to be interpreted as described in [RFC2119](https://www.ietf.org/rfc/rfc2119).
*/
syntax = "proto3";
package com.hedera.hapi.platform.event;
/*
* Hedera Network Services Protobuf
*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import "basic_types.proto";
import "event/event_descriptor.proto";
import "timestamp.proto";
option java_package = "com.hedera.hapi.platform.event.legacy";
// <<>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;
/**
* Event Consensus Data.
* This message records the critical values produced by consensus for an event.
*/
message EventConsensusData {
/**
* A consensus timestamp.
* The network's consensus agreement on a timestamp for this event.
*
* This timestamp MUST be strictly greater than the `consensus_timestamp` of
* the previous consensus event.
* This is a consensus value and MAY NOT match real-world "wall clock" time.
*/
proto.Timestamp consensus_timestamp = 1;
/**
* A consensus order sequence number.
* A non-negative sequence number that identifies an event's consensus order
* since genesis.
*
* This SHALL be the unique for each consensus event.
* This SHALL always increase, and SHALL NOT decrease.
* This SHALL increment by one for each consensus event.
*/
uint64 consensus_order = 2;
}