validateDidMethod

fun validateDidMethod(did: String, expectedMethod: String)

Validates that a DID matches a specific method.

Parameters

did

The DID to validate

expectedMethod

The expected method name

Throws

if the DID doesn't match the method