Skip to content

Commit

Permalink
Update src/sd_jwt.rs
Browse files Browse the repository at this point in the history
Co-authored-by: wulfraem <[email protected]>
  • Loading branch information
UMR1352 and wulfraem authored Sep 26, 2024
1 parent 9d3431f commit 38013b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sd_jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
SdJwtPresentationBuilder::new(self, hasher)
Expand Down

0 comments on commit 38013b0

Please sign in to comment.