isDidSignature(input): input is DidSignature | LegacyDidSignature
Type guard assuring that the input is a valid DidSignature object, consisting of a signature as hex and the DID URL of the signer's verification method.
Does not cryptographically verify the signature itself!
Parameters
input: unknown
Arbitrary input.
Returns input is DidSignature | LegacyDidSignature
Type guard assuring that the input is a valid DidSignature object, consisting of a signature as hex and the DID URL of the signer's verification method. Does not cryptographically verify the signature itself!