Skip to content

Commit

Permalink
SigningState can be cloned. Why not.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 11, 2022
1 parent a93d9e5 commit da3e2b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ impl Deref for Signature {
}

/// The state of a streaming verification operation.
#[derive(Clone)]
pub struct VerifyingState {
hasher: sha512::Hash,
signature: Signature,
Expand Down Expand Up @@ -236,6 +237,7 @@ impl PublicKey {
}

/// The state of a streaming signature operation.
#[derive(Clone)]
pub struct SigningState {
hasher: sha512::Hash,
az: [u8; 64],
Expand Down

0 comments on commit da3e2b3

Please sign in to comment.