Skip to main content
Version: 1.4

Class: LinkedVerifiablePresentationService

identity_wasm.LinkedVerifiablePresentationService

Table of contents

Constructors

Methods

Constructors

constructor

new LinkedVerifiablePresentationService(options)

Constructs a new LinkedVerifiablePresentationService that wraps a spec compliant Linked Verifiable Presentation Service Endpoint.

Parameters

NameType
optionsILinkedVerifiablePresentationService

Methods

toJSON

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object

toJSON(): any

Serializes this to a JSON object.

Returns

any


toString

toString(): string

Return stringified version of self.

Returns

string


verifiablePresentationUrls

verifiablePresentationUrls(): string[]

Returns the domains contained in the Linked Verifiable Presentation Service.

Returns

string[]


toService

toService(): Service

Returns the inner service which can be added to a DID Document.

Returns

Service


fromService

Static fromService(service): LinkedVerifiablePresentationService

Creates a new LinkedVerifiablePresentationService from a Service.

Error

Errors if service is not a valid Linked Verifiable Presentation Service.

Parameters

NameType
serviceService

Returns

LinkedVerifiablePresentationService


isValid

Static isValid(service): boolean

Returns true if a Service is a valid Linked Verifiable Presentation Service.

Parameters

NameType
serviceService

Returns

boolean


clone

clone(): LinkedVerifiablePresentationService

Deep clones the object.

Returns

LinkedVerifiablePresentationService


fromJSON

Static fromJSON(json): LinkedVerifiablePresentationService

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

LinkedVerifiablePresentationService