Skip to content

Commit

Permalink
async-signature: deprecate AsyncKeypair (#1112)
Browse files Browse the repository at this point in the history
As of #1107 this trait is shaped the same as `Keypair`, so there's no
need for it to continue to exist.

It will be removed in the next breaking release.
  • Loading branch information
tarcieri authored Sep 15, 2022
1 parent 03e7bee commit efae60b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions signature/async/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ where
/// Keypair with async signer component and an associated verifying key.
///
/// This represents a type which holds both an async signing key and a verifying key.
#[deprecated(since = "0.2.1", note = "use signature::Keypair instead")]
pub trait AsyncKeypair<S>: AsRef<Self::VerifyingKey>
where
S: Signature + Send + 'static,
Expand All @@ -90,6 +91,7 @@ where
}
}

#[allow(deprecated)]
impl<S, T> AsyncKeypair<S> for T
where
S: Signature + Send + 'static,
Expand Down

0 comments on commit efae60b

Please sign in to comment.