Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions crates/build-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ use std::{fs, io::Result, path::PathBuf};

/// Compiles the protobuf files in the given directory.
pub fn compile_protos(proto_dir: &str) -> Result<()> {
let proto_files: Vec<PathBuf> = fs::read_dir(proto_dir)?
.filter_map(|entry| entry.ok())
.map(|entry| entry.path())
.filter(|path| path.extension().is_some_and(|ext| ext == "proto"))
.collect();
let proto_files: Vec<PathBuf> = {
let mut files: Vec<PathBuf> = fs::read_dir(proto_dir)?
.filter_map(|entry| entry.ok())
.map(|entry| entry.path())
.filter(|path| path.extension().is_some_and(|ext| ext == "proto"))
.collect();
files.sort();
files
};

if proto_files.is_empty() {
println!("cargo:warning=No .proto files found in {}", proto_dir);
Expand Down
106 changes: 53 additions & 53 deletions crates/dkg/src/dkgpb/v1/dkg.dkgpb.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,59 @@
#![allow(clippy::all)]
#![allow(rustdoc::all)]

#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BCastSigRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub message: ::core::option::Option<::prost_types::Any>,
}
impl ::prost::Name for BCastSigRequest {
const NAME: &'static str = "BCastSigRequest";
const PACKAGE: &'static str = "dkg.dkgpb.v1";
fn full_name() -> ::prost::alloc::string::String {
"dkg.dkgpb.v1.BCastSigRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.BCastSigRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BCastSigResponse {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub signature: ::prost::bytes::Bytes,
}
impl ::prost::Name for BCastSigResponse {
const NAME: &'static str = "BCastSigResponse";
const PACKAGE: &'static str = "dkg.dkgpb.v1";
fn full_name() -> ::prost::alloc::string::String {
"dkg.dkgpb.v1.BCastSigResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.BCastSigResponse".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BCastMessage {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub message: ::core::option::Option<::prost_types::Any>,
#[prost(bytes = "bytes", repeated, tag = "3")]
pub signatures: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
}
impl ::prost::Name for BCastMessage {
const NAME: &'static str = "BCastMessage";
const PACKAGE: &'static str = "dkg.dkgpb.v1";
fn full_name() -> ::prost::alloc::string::String {
"dkg.dkgpb.v1.BCastMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.BCastMessage".into()
}
}
/// dkg.msgKey
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FrostMsgKey {
Expand Down Expand Up @@ -190,57 +243,4 @@ impl ::prost::Name for MsgSyncResponse {
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.MsgSyncResponse".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BCastSigRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub message: ::core::option::Option<::prost_types::Any>,
}
impl ::prost::Name for BCastSigRequest {
const NAME: &'static str = "BCastSigRequest";
const PACKAGE: &'static str = "dkg.dkgpb.v1";
fn full_name() -> ::prost::alloc::string::String {
"dkg.dkgpb.v1.BCastSigRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.BCastSigRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BCastSigResponse {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub signature: ::prost::bytes::Bytes,
}
impl ::prost::Name for BCastSigResponse {
const NAME: &'static str = "BCastSigResponse";
const PACKAGE: &'static str = "dkg.dkgpb.v1";
fn full_name() -> ::prost::alloc::string::String {
"dkg.dkgpb.v1.BCastSigResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.BCastSigResponse".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BCastMessage {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub message: ::core::option::Option<::prost_types::Any>,
#[prost(bytes = "bytes", repeated, tag = "3")]
pub signatures: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
}
impl ::prost::Name for BCastMessage {
const NAME: &'static str = "BCastMessage";
const PACKAGE: &'static str = "dkg.dkgpb.v1";
fn full_name() -> ::prost::alloc::string::String {
"dkg.dkgpb.v1.BCastMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/dkg.dkgpb.v1.BCastMessage".into()
}
}
Loading