Scoop API

scoop:scoop.crypto:0.1.0

signCompact

function signCompact

source · line 87
public
public fun signCompact(protectedHeader: String, payload: List<Byte>, algorithm: JwsAlgorithm, key: JwsSigningKey): String

Validates the protected header and produces the three base64url compact-JWS segments. HS256 needs at least 32 key bytes; ES256 uses the JWS fixed-width signature encoding.