sign_plugin_ed25519

Function sign_plugin_ed25519 

Source
pub fn sign_plugin_ed25519(
    plugin_dir: &Path,
    key_id: &str,
    private_key_bytes: &[u8],
) -> LoaderResult<PluginSignature>
Expand description

Sign a plugin manifest with Ed25519

This function:

  1. Reads the plugin manifest (plugin.toml)
  2. Computes SHA-256 hash of the manifest
  3. Signs the hash with the provided private key
  4. Writes the signature to plugin.sig