Skip to content

Commit

Permalink
Move cggmp21/docs/* to docs/*
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed Feb 5, 2024
1 parent df763df commit e7a0f1c
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cggmp21-keygen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ mod default_choice {
pub type SecurityLevel = crate::security_level::SecurityLevel128;
}

#[doc = include_str!("../../cggmp21/docs/mpc_message.md")]
#[doc = include_str!("../../docs/mpc_message.md")]
pub mod msg {
/// Messages types related to non threshold DKG protocol
pub mod non_threshold {
Expand Down Expand Up @@ -178,7 +178,7 @@ where
self
}

#[doc = include_str!("../../cggmp21/docs/enforce_reliable_broadcast.md")]
#[doc = include_str!("../../docs/enforce_reliable_broadcast.md")]
pub fn enforce_reliable_broadcast(self, enforce: bool) -> Self {
Self {
reliable_broadcast_enforced: enforce,
Expand Down
4 changes: 2 additions & 2 deletions cggmp21/src/key_refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use crate::{fast_paillier, rug::Integer};
#[doc(no_inline)]
pub use self::msg::{aux_only::Msg as AuxOnlyMsg, non_threshold::Msg as NonThresholdMsg};

#[doc = include_str!("../docs/mpc_message.md")]
#[doc = include_str!("../../docs/mpc_message.md")]
pub mod msg {
/// Messages types related to aux information generation protocol
pub mod aux_only {
Expand Down Expand Up @@ -248,7 +248,7 @@ where
self
}

#[doc = include_str!("../docs/enforce_reliable_broadcast.md")]
#[doc = include_str!("../../docs/enforce_reliable_broadcast.md")]
pub fn enforce_reliable_broadcast(self, v: bool) -> Self {
Self {
enforce_reliable_broadcast: v,
Expand Down
8 changes: 4 additions & 4 deletions cggmp21/src/key_share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ pub use cggmp21_keygen::key_share::{

/// Key share
///
#[doc = include_str!("../docs/key_share.md")]
#[doc = include_str!("../../docs/key_share.md")]
///
#[doc = include_str!("../docs/validated_key_share_note.md")]
#[doc = include_str!("../docs/validated_key_share_disclaimer.md")]
#[doc = include_str!("../../docs/validated_key_share_note.md")]
#[doc = include_str!("../../docs/validated_key_share_disclaimer.md")]
pub type KeyShare<E, L = crate::default_choice::SecurityLevel> = Valid<DirtyKeyShare<E, L>>;

/// Auxiliary information
Expand All @@ -49,7 +49,7 @@ pub struct DirtyAuxInfo<L: SecurityLevel = crate::default_choice::SecurityLevel>

/// Dirty (unvalidated) key share
///
#[doc = include_str!("../docs/key_share.md")]
#[doc = include_str!("../../docs/key_share.md")]
#[derive(Clone, Serialize, Deserialize)]
#[serde(bound = "")]
pub struct DirtyKeyShare<E: Curve, L: SecurityLevel = crate::default_choice::SecurityLevel> {
Expand Down
4 changes: 2 additions & 2 deletions cggmp21/src/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub struct Signature<E: Curve> {
pub s: NonZero<Scalar<E>>,
}

#[doc = include_str!("../docs/mpc_message.md")]
#[doc = include_str!("../../docs/mpc_message.md")]
pub mod msg {
use digest::Digest;
use generic_ec::Curve;
Expand Down Expand Up @@ -283,7 +283,7 @@ where
self
}

#[doc = include_str!("../docs/enforce_reliable_broadcast.md")]
#[doc = include_str!("../../docs/enforce_reliable_broadcast.md")]
pub fn enforce_reliable_broadcast(self, v: bool) -> Self {
Self {
enforce_reliable_broadcast: v,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e7a0f1c

Please sign in to comment.