fedimint-meta-common 0.11.1

fedimint-meta-common is a meta-consensus fedimint module. (common types)
Documentation
use fedimint_core::core::ModuleKind;
use fedimint_core::encoding::{Decodable, Encodable};
use fedimint_core::plugin_types_trait_impl_config;
use serde::{Deserialize, Serialize};

use crate::MetaCommonInit;

/// Contains all the configuration for the server
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MetaConfig {
    pub private: MetaConfigPrivate,
    pub consensus: MetaConfigConsensus,
}

/// Contains all the configuration for the client
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Encodable, Decodable, Hash)]
pub struct MetaClientConfig;

/// Locally unencrypted config unique to each member
#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
pub struct MetaConfigLocal;

/// Will be the same for every federation member
#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
pub struct MetaConfigConsensus;

/// Will be encrypted and not shared such as private key material
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MetaConfigPrivate;

// Wire together the configs for this module
plugin_types_trait_impl_config!(
    MetaCommonInit,
    MetaConfig,
    MetaConfigPrivate,
    MetaConfigConsensus,
    MetaClientConfig
);