Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jun 28, 2024
1 parent bef9db3 commit 7adf0fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dhke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ where
Self(sk * pk)
}

// Constructs a new Diffie-Hellman key exchange from an already created Diffie-Hellman key exchange
/// Constructs a new Diffie-Hellman key exchange from an already created Diffie-Hellman key exchange
pub fn from_canonical_bytes(bytes: &[u8]) -> Result<Self, ByteArrayError> {
let pk = P::from_canonical_bytes(bytes)?;
Ok(Self(pk))
Expand Down
4 changes: 2 additions & 2 deletions src/hashing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ impl<D: Digest> AsRef<[u8]> for DomainSeparatedHash<D> {
/// 1. The version number is fixed for a given schema of the domain tag.
/// 2. The domain represents a broad class of use cases for the hashing, e.g. MACs, or key derivation.
/// 3. The label is used to differentiate different applications of a use case. e.g. there might be two places key
/// derivation is used in your application: for wallet derived keys, and communication derived keys. These might have
/// the label "wallet-key" and "comms-key" respectively.
/// derivation is used in your application: for wallet derived keys, and communication derived keys. These might have
/// the label "wallet-key" and "comms-key" respectively.
///
/// [`DomainSeparatedHasher`] is useful for more generic use-cases that aren't covered by the two primary use cases
/// covered in this API (MAcs and key derivation).
Expand Down

0 comments on commit 7adf0fc

Please sign in to comment.