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
| Name | Type |
|---|---|
options | ILinkedVerifiablePresentationService |
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
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
| Name | Type |
|---|---|
service | Service |
Returns
LinkedVerifiablePresentationService
isValid
▸ Static isValid(service): boolean
Returns true if a Service is a valid Linked Verifiable Presentation Service.
Parameters
| Name | Type |
|---|---|
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
| Name | Type |
|---|---|
json | any |