Function jws::compact::decode

source ·
pub unsafe fn decode(data: &[u8]) -> Result<(DecodedMessage, Vec<u8>)>
👎Deprecated: this function was marked unsafe but has no safety implications, use decode_unverified instead
Expand description

Decode a JWS Compact Serialization message with signature from a byte slice.

Safety

This function has no memory safety implications, It was marked as unsafe because does not perform signature verification. It is now deprecated and has been replaced by decode_unverified.

However, in most applications, you will want to use decode_verify, which does verify the message signature.