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.

Parameters

input: DidSignature

A [[DidSignature]] object.

Returns

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

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

Source

did/src/Did.signature.ts:117