Skip to content

Commit da3e2b3

Browse files
committed
SigningState can be cloned. Why not.
1 parent a93d9e5 commit da3e2b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ed25519.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ impl Deref for Signature {
157157
}
158158

159159
/// The state of a streaming verification operation.
160+
#[derive(Clone)]
160161
pub struct VerifyingState {
161162
hasher: sha512::Hash,
162163
signature: Signature,
@@ -236,6 +237,7 @@ impl PublicKey {
236237
}
237238

238239
/// The state of a streaming signature operation.
240+
#[derive(Clone)]
239241
pub struct SigningState {
240242
hasher: sha512::Hash,
241243
az: [u8; 64],

0 commit comments

Comments
 (0)