Enum libp2p_core::signed_envelope::ReadPayloadError [−][src]
pub enum ReadPayloadError {
InvalidSignature,
UnexpectedPayloadType {
expected: Vec<u8>,
got: Vec<u8>,
},
}
Expand description
Errors that occur whilst extracting the payload of a SignedEnvelope
.
Variants
The signature on the signed envelope does not verify with the provided domain separation string.
The payload contained in the envelope is not of the expected type.
Trait Implementations
Performs the conversion.