diff --git a/identity_credential/src/presentation/jwt_serialization.rs b/identity_credential/src/presentation/jwt_serialization.rs index d8bb18c238..4e5d56c183 100644 --- a/identity_credential/src/presentation/jwt_serialization.rs +++ b/identity_credential/src/presentation/jwt_serialization.rs @@ -25,7 +25,7 @@ use crate::Result; use super::JwtPresentationOptions; #[derive(Serialize, Deserialize)] -pub(crate) struct PresentationJwtClaims<'presentation, CRED, T = Object> +pub struct PresentationJwtClaims<'presentation, CRED, T = Object> where T: ToOwned + Serialize, CRED: ToOwned + Serialize + Clone, @@ -141,7 +141,7 @@ where CRED: ToOwned + Serialize + DeserializeOwned + Clone, T: ToOwned + Serialize + DeserializeOwned, { - pub(crate) fn try_into_presentation(self) -> Result> { + pub fn try_into_presentation(self) -> Result> { self.check_consistency()?; let Self { exp: _, diff --git a/identity_credential/src/presentation/mod.rs b/identity_credential/src/presentation/mod.rs index 76adc145c6..544ab28ae4 100644 --- a/identity_credential/src/presentation/mod.rs +++ b/identity_credential/src/presentation/mod.rs @@ -22,5 +22,8 @@ pub use self::presentation_builder::PresentationBuilder; #[cfg(feature = "jpt-bbs-plus")] pub use jwp_presentation_options::JwpPresentationOptions; -#[cfg(feature = "validator")] +#[cfg(all(feature = "validator", not(feature = "ic-wasm")))] pub(crate) use self::jwt_serialization::PresentationJwtClaims; + +#[cfg(feature = "ic-wasm")] +pub use self::jwt_serialization::PresentationJwtClaims;