Function sign_postcard_with_padding

Source
pub fn sign_postcard_with_padding<T: Serialize>(
    data: &T,
    padding: Padding,
    private_key: &Key,
) -> Result<Signature>
Expand description

Sign data by serializing it using postcard and then hashing and signing the hash.

This pads the data to be word aligned.