Skip to content

Commit

Permalink
Merge pull request #174 from LLFourn/sign-session-serde
Browse files Browse the repository at this point in the history
[frost] Make SignSession serde
  • Loading branch information
LLFourn authored Feb 6, 2024
2 parents 91112f8 + e97a961 commit 294de17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schnorr_fun/src/frost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,16 @@ impl<H: Digest<OutputSize = U32> + Clone, NG> Frost<H, NG> {
///
/// [`Frost::start_sign_session`]
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(
feature = "bincode",
derive(crate::fun::bincode::Encode, crate::fun::bincode::Decode),
bincode(crate = "crate::fun::bincode")
)]
#[cfg_attr(
feature = "serde",
derive(crate::fun::serde::Deserialize, crate::fun::serde::Serialize),
serde(crate = "crate::fun::serde")
)]
pub struct SignSession {
binding_coeff: Scalar,
nonces_need_negation: bool,
Expand Down

0 comments on commit 294de17

Please sign in to comment.