Function signatureFromJson

  • Deserializes a DidSignature for signature verification. Handles backwards compatibility to an older version of the interface where the keyUri property was called keyId.

    Returns

    The deserialized DidSignature where the signature is represented as a Uint8Array.

    Parameters

    • input: DidSignature | OldDidSignature

      A DidSignature object.

    Returns Pick<SignResponseData, "keyUri" | "signature">