diff --git a/src/sd_jwt.rs b/src/sd_jwt.rs index b734277..c6200df 100644 --- a/src/sd_jwt.rs +++ b/src/sd_jwt.rs @@ -155,7 +155,7 @@ impl SdJwt { /// Prepares this [`SdJwt`] for a presentation, returning an [`SdJwtPresentationBuilder`]. /// ## Errors - /// - [`Error::MissingHasher`] is returned if the provided `hasher`'s algorithm doesn't match the algorithm specified + /// - [`Error::InvalidHasher`] is returned if the provided `hasher`'s algorithm doesn't match the algorithm specified /// by SD-JWT's `_sd_alg` claim. "sha-256" is used if the claim is missing. pub fn into_presentation(self, hasher: &dyn Hasher) -> Result { SdJwtPresentationBuilder::new(self, hasher)