Skip to content

signatureFromJson

signatureFromJson(input): Pick<SignResponseData, "keyUri" | "signature">

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

input: DidSignature

A [[DidSignature]] object.

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

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

did/src/Did.signature.ts:117