Skip to main content

LinkedVerifiablePresentationService

@iota/identity-wasm API documentation


Class: LinkedVerifiablePresentationService

A service wrapper for a Linked Verifiable Presentation Service Endpoint.

Constructors​

new LinkedVerifiablePresentationService()​

new LinkedVerifiablePresentationService(options): LinkedVerifiablePresentationService

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

Parameters​

options​

ILinkedVerifiablePresentationService

Returns​

LinkedVerifiablePresentationService

Methods​

toJSON()​

Call Signature​

toJSON(): Object

  • Return copy of self without private attributes.
Returns​

Object

Call Signature​

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​

service​

Service

Returns​

LinkedVerifiablePresentationService


isValid()​

static isValid(service): boolean

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

Parameters​

service​

Service

Returns​

boolean


clone()​

clone(): LinkedVerifiablePresentationService

Deep clones the object.

Returns​

LinkedVerifiablePresentationService


fromJSON()​

static fromJSON(json): LinkedVerifiablePresentationService

Deserializes an instance from a JSON object.

Parameters​

json​

any

Returns​

LinkedVerifiablePresentationService