ceremonyclient/protobufs/node.proto
Cassandra Heart 1b2660b7df
v2.1.0.20 (#516)
* .20 testing

* Read in the debug by env variable (#514)

* v2.1.0.19

* enhanced error logging, fix seniority marker join blocker, fix sync message size limit defaults

* resolve signature failure

* additional error logging for merge-related signatures

* fix: one-shot sync message size, app shard TC signature size, collector/hotstuff race condition, expired joins blocking new joins due to pruning disable

* remove compat with old 2.0.0 blossomsub

* fix: resolve abandoned prover joins

* reload prover registry

* fix stale worker proposal edge

* add full sanity check on join before submitting to identify bug

* resolve non-fallthrough condition that should be fallthrough

* fix: resolve rare SIGFPE, fix orphan expired joins blocking workers from reallocating

* add reconnect fallback if no peers are found with variable reconnect time (#511)

Co-authored-by: Tyler Sturos <55340199+tjsturos@users.noreply.github.com>

* update base peer count to 1 (#513)

* fix: expired prover join frames, starting port ranges, proposer getting stuck, and seniority on joins

* fix: panic on shutdown, libp2p discovery picking inaccessible peers, coverage event check not in shutdown logic, amend app shard worker behavior to mirror global for prover root reconciliation

* fix: shutdown scenario quirks, reload hanging

* fix: do not bailout early on shutdown of coverage check

* fix: force registry refresh on worker waiting for registration

* add more logging to wait for prover

* fix: worker manager refreshes the filter on allocation, snapshots blocking close on shutdown

* tweak: force shutdown after five seconds for app worker

* fix: don't loop when shutting down

* fix: slight reordering, also added named workers to trace hanging shutdowns

* use deterministic key for peer id of workers to stop flagging workers as sybil attacks

* fix: remove pubsub stop from app consensus engine as it shouldn't manage pubsub lifecycle, integrate shutdown context to PerformSync to prevent stuck syncs from halting respawn

* fix: blossomsub pubsub interface does not properly track subscription status

* fix: subscribe order to avoid nil panic

* switch from dnsaddr to dns4

* add missing quic-v1

* additional logging to isolate respawn quirks

* fix: dnsaddr -> dns4 for blossomsub

* allow debug env var to be read

---------

Co-authored-by: Cassandra Heart <cassandra@quilibrium.com>
Co-authored-by: Tyler Sturos <55340199+tjsturos@users.noreply.github.com>
Co-authored-by: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com>

* fix newPebbleDB constructor config param (#517)

* fix: high CPU overhead in initial worker behaviors/ongoing sync

* faster docker builds with better caching

* qol: add extra data to node info, and query metrics from command line

* leave proposals for overcrowded shards

* hub-and-spoke global message broadcasts

* small tweaks to cli output for join frames

---------

Co-authored-by: winged-pegasus <55340199+winged-pegasus@users.noreply.github.com>
Co-authored-by: Tyler Sturos <55340199+tjsturos@users.noreply.github.com>
Co-authored-by: Black Swan <3999712+blacks1ne@users.noreply.github.com>
2026-03-04 01:37:04 -06:00

276 lines
7.2 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package quilibrium.node.node.pb;
option go_package = "source.quilibrium.com/quilibrium/monorepo/node/protobufs";
import "channel.proto";
import "global.proto";
import "google/protobuf/wrappers.proto";
message GetPeerInfoRequest {}
message GetNodeInfoRequest {}
message GetWorkerInfoRequest {}
message Reachability {
// The filter this reachability information references.
bytes filter = 1;
// The node's pubsub interface multiaddrs for the given shard.
repeated string pubsub_multiaddrs = 2;
// The node's streaming interface multiaddrs for the given shard.
repeated string stream_multiaddrs = 3;
}
message PeerInfo {
// The node's peer id, derived from ed448 public key.
bytes peer_id = 1;
// The node's reachability information for given filters.
repeated Reachability reachability = 2;
// The timestamp the peer info report was generated.
int64 timestamp = 3;
// The core version string of the node, in semantic versioning:
// [byte 0].[byte 1].[byte 2]
bytes version = 4;
// The patch version of the node
bytes patch_number = 5;
// The list of supported capabilities.
repeated Capability capabilities = 6;
// The public key of the node.
bytes public_key = 7;
// The signature of the node.
bytes signature = 8;
// The last global frame received by the node.
uint64 last_received_frame = 9;
// The last global frame advanced to the head of the time reel.
uint64 last_global_head_frame = 10;
}
message PeerInfoResponse {
repeated PeerInfo peer_info = 1;
}
message ShardAllocationInfo {
bytes filter = 1;
uint32 status = 2;
uint64 join_frame_number = 3;
uint64 join_confirm_frame_number = 4;
uint64 leave_frame_number = 5;
uint64 last_active_frame_number = 6;
}
message NodeInfoResponse {
string peer_id = 1;
uint64 peer_score = 2;
bytes version = 3;
bytes peer_seniority = 4;
uint32 running_workers = 5;
uint32 allocated_workers = 6;
bytes patch_number = 7;
uint64 last_received_frame = 8;
uint64 last_global_head_frame = 9;
bool reachable = 10;
repeated ShardAllocationInfo shard_allocations = 11;
}
message WorkerInfo {
uint32 core_id = 1;
bytes filter = 2;
uint64 available_storage = 3;
uint64 total_storage = 4;
}
message WorkerInfoResponse {
repeated WorkerInfo worker_info = 1;
}
message Capability {
// A general protocol identifier as a uint32 this is expected to rarely
// iterate, and should be uniquely identifying both protocol and version.
// Pragmatically speaking, this implies that the least significant byte
// specifies version (which should iterate most minimally), and the three most
// significant bytes should specify protocol. Recipients SHOULD ignore
// messages with incompatible protocol identifiers, but also SHOULD warn on
// identifiers with versions higher than the supported protocol. A large
// number of unsupported protocol messages may indicate spam/some other
// attack, whereas a large number of unsupported protocol versions may
// indicate an out of date client, respective to which side is the maximum of
// the version number.
uint32 protocol_identifier = 1;
// An optional bundle of information specific to the capability used for
// extensibility in negotiating variations of a protocol e.g. Triple-Ratchet
// but only for certain curve types.
bytes additional_metadata = 2;
}
message InlineKey {
bytes ref = 1;
bytes key = 2;
}
message KeyRing {
repeated InlineKey keys = 1;
}
// Specifies the delivery method for the transaction's dispatchable outputs.
// Must match the number of outputs for the given transaction for multiple
// output transactions (for example, token transfers).
message DeliveryMethod {
// Dictates the method of delivery to be performed, 0 for normal inbox
// delivery, 1 for suppressed delivery.
uint32 delivery_type = 1;
// The inbox or hub address to deliver to.
bytes address = 2;
}
message DeliveryData {
repeated quilibrium.node.channel.pb.InboxMessage messages = 1;
}
// Sends either a message, delivery data, or both
message SendRequest {
// The applicable domain to the messages
bytes domain = 1;
// The underlying request(s) to send
quilibrium.node.global.pb.MessageBundle request = 2;
// The authentication token
bytes authentication = 3;
// Delivery data to send
repeated DeliveryData delivery_data = 4;
}
// The response confirming deliveries
message SendResponse {
repeated DeliveryData delivery_data = 1;
}
message OriginatedAccountRef {
bytes address = 1;
}
message ImplicitAccount {
uint32 implicit_type = 1;
bytes address = 2;
bytes domain = 3;
}
message AccountRef {
oneof account {
OriginatedAccountRef originated_account = 1;
ImplicitAccount implicit_account = 2;
}
}
message Coin {
bytes amount = 1;
bytes intersection = 2;
AccountRef owner = 3;
}
message LegacyCoin {
Coin coin = 1;
uint64 frame_number = 2;
bytes address = 3;
}
message MaterializedTransaction {
bytes address = 1;
bytes raw_balance = 2;
uint64 frame_number = 3;
bytes commitment = 4;
bytes one_time_key = 5;
bytes verification_key = 6;
bytes coin_balance = 7;
bytes mask = 8;
bytes additional_reference = 9;
bytes additional_reference_key = 10;
}
message MaterializedPendingTransaction {
bytes address = 1;
bytes raw_balance = 2;
uint64 frame_number = 3;
bytes commitment = 4;
bytes to_one_time_key = 5;
bytes refund_one_time_key = 6;
bytes to_verification_key = 7;
bytes refund_verification_key = 8;
bytes to_coin_balance = 9;
bytes refund_coin_balance = 10;
bytes to_mask = 11;
bytes refund_mask = 12;
bytes to_additional_reference = 13;
bytes to_additional_reference_key = 14;
bytes refund_additional_reference = 15;
bytes refund_additional_reference_key = 16;
uint64 expiration = 17;
}
message GetMetricsRequest {
string filter = 1;
}
message GetMetricsResponse {
bytes metrics = 1;
}
message GetTokensByAccountRequest {
bytes address = 1;
bytes domain = 2;
}
message GetTokensByAccountResponse {
repeated LegacyCoin legacy_coins = 1;
repeated MaterializedTransaction transactions = 2;
repeated MaterializedPendingTransaction pending_transactions = 3;
}
service NodeService {
rpc GetPeerInfo(GetPeerInfoRequest) returns (PeerInfoResponse);
rpc GetNodeInfo(GetNodeInfoRequest) returns (NodeInfoResponse);
rpc GetWorkerInfo(GetWorkerInfoRequest) returns (WorkerInfoResponse);
rpc Send(SendRequest) returns (SendResponse);
rpc GetTokensByAccount(GetTokensByAccountRequest)
returns (GetTokensByAccountResponse);
rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse);
}
message ConnectivityTestRequest {
bytes peer_id = 1;
repeated string multiaddrs = 2;
}
message ConnectivityTestResponse {
bool success = 1;
string error_message = 2;
}
service ConnectivityService {
rpc TestConnectivity(ConnectivityTestRequest)
returns (ConnectivityTestResponse);
}
message RespawnRequest {
bytes filter = 1;
}
message RespawnResponse {
}
message CreateJoinProofRequest {
bytes challenge = 1;
uint32 difficulty = 2;
repeated bytes ids = 3;
uint32 prover_index = 4;
}
message CreateJoinProofResponse {
bytes response = 1;
}
service DataIPCService {
rpc Respawn(RespawnRequest) returns (RespawnResponse);
rpc CreateJoinProof(CreateJoinProofRequest) returns (CreateJoinProofResponse);
}