pub fn build_default_signature<I>(
image: &I,
key: Option<&[u8]>,
) -> Result<Vec<u8>, Error>where
I: AsImage,
Expand description
Builds the signature for a given image.
This function uses the build_signature
method from the AsImage
trait to generate
the signature for the image using the provided key.
§Arguments:
image
: The image-like object that implementsAsImage
.key
: The key used to compute the signature.
§Returns:
Result<Vec<u8>, crate::error::Error>
: The computed signature.