Jws

object Jws

Json Web Signature (JWS) is a compact signature format that is used to secure messages. Spec: https://datatracker.ietf.org/doc/html/rfc7515

Functions

Link copied to clipboard
fun decode(jws: String, detachedPayload: ByteArray? = null): DecodedJws

Decode a JWS into its parts.

Link copied to clipboard
fun sign(bearerDid: BearerDid, payload: ByteArray, detached: Boolean = false): String

Sign a payload using a Bearer DID.

Link copied to clipboard
fun verify(jws: String, detachedPayload: ByteArray? = null): DecodedJws

Verify a JWS.