verify

fun verify(detachedPayload: ByteArray, signature: String?, did: String)

Verifies a detached signature against the provided payload.

Parameters

detachedPayload

The detached payload to verify.

signature

The signature to verify.

did

The URI string (without fragment) of the signer's DID to verify

Throws

if the signature is missing.

if signed by an unexpected DID.