Function isDidSignature

  • 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

    True if validation of form has passed.