Skip to main content

sign_detached_ed25519

Function sign_detached_ed25519 

Source
pub fn sign_detached_ed25519(
    signing_key: &SigningKey,
    kid: Option<&str>,
    external_payload: &[u8],
) -> SignatifResult<String>
Expand description

Sign the detached input with Ed25519 and return the compact JWS (header.sig — the payload segment stays with the content).

§Errors

Encoding errors from the signing input.