SignatureVerifier

Utility functions for producing digest and verifying signatures.

Functions

Link copied to clipboard
fun digestOf(payload: Any): ByteArray

Generates a canonicalized digest of any payload.

fun digestOf(metadata: Metadata, data: Data): ByteArray

Generates a canonicalized digest of the message/resource for signing or verification.

Link copied to clipboard
fun verify(detachedPayload: ByteArray, signature: String?, did: String)

Verifies a detached signature against the provided payload.