Checks that a string (or other input) is a valid KILT DID with or without a trailing fragment. Throws otherwise.
Arbitrary input.
Optional
Did if the the input is expected to have a fragment (following '#'), DidUrl if it is expected not to have one. Default allows both.
Did
DidUrl
Checks that a string (or other input) is a valid KILT DID with or without a trailing fragment. Throws otherwise.