pub fn sign_with(
    keystore: &LocalKeystore,
    public: &Public,
    message: &[u8]
) -> Result<Signature>
Expand description

Sign a given message with the private key that corresponds to the given public key.

Returns an error if the keystore itself errors, or does not contain the requested key.