Skip to content

Commit

Permalink
add Errors doc section
Browse files Browse the repository at this point in the history
  • Loading branch information
Monadic-Cat committed May 8, 2024
1 parent b1503b5 commit 4dccad7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions twilight-util/src/signature_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ impl Key {
/// Validate a signature for a given message body, timestamp, and signing key.
///
/// (This method is a duplicate of [`check_signature`].)
///
/// # Errors
/// This will fail if the request being validated has an invalid signature, or if it
/// was given the wrong key.
pub fn verify(
&self,
signature: &[u8],
Expand Down

0 comments on commit 4dccad7

Please sign in to comment.