We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the readme, there's an example of SignedDataVerifier usage:
// .unwrap() used for example purposes only let root_cert = "apple-root-cert-in-base-base64-format"; // https://www.apple.com/certificateauthority/AppleRootCA-G3.cer let root_cert_der = root_cert.as_der_bytes().unwrap(); // Use `base64` crate to decode base64 string into bytes let verifier = SignedDataVerifier::new( vec![root_cert_der], // Vector of root certificates Environment::Sandbox, // Environment "app.superapp.apple".to_string(), // Bundle id Some(12345678), // App id ); let payload = "signed-payload"; let decoded_payload = verifier.verify_and_decode_notification(payload).unwrap();
In this example, as_der_bytes from the StringExt trait (defined in utils.rs) is used. However, in lib.rs:
as_der_bytes
StringExt
mod utils;
The utils module isn't made public. As far as I can tell, there's no way for me to import the trait needed for me to use as_der_bytes.
Please could you make the trait possible to import? Or otherwise, remove it from the example.
Thank you for making this crate public, by the way.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the readme, there's an example of SignedDataVerifier usage:
In this example,
as_der_bytes
from theStringExt
trait (defined in utils.rs) is used. However, in lib.rs:The utils module isn't made public. As far as I can tell, there's no way for me to import the trait needed for me to use as_der_bytes.
Please could you make the trait possible to import? Or otherwise, remove it from the example.
Thank you for making this crate public, by the way.
The text was updated successfully, but these errors were encountered: