Skip to main content

@atala/prism-wallet-sdk / Exports / PeerDIDService

Class: PeerDIDService

Provides functionality to transfrom peerDIDServices from our interfaces into DIDComm module ones

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PeerDIDService(type, serviceEndpoint, routingKeys?, accept?): PeerDIDService

Parameters

NameType
typestring
serviceEndpointstring
routingKeys?string[]
accept?string[]

Returns

PeerDIDService

Defined in

src/peer-did/PeerDID.ts:53

Properties

accept

Optional Readonly accept: string[]

Defined in

src/peer-did/PeerDID.ts:51


routingKeys

Optional Readonly routingKeys: string[]

Defined in

src/peer-did/PeerDID.ts:50


serviceEndpoint

Readonly serviceEndpoint: string

Defined in

src/peer-did/PeerDID.ts:49


type

Readonly type: string

Defined in

src/peer-did/PeerDID.ts:48


CodingKeys

Static Readonly CodingKeys: Object

Type declaration

NameType
acceptstring
routingKeysstring
serviceEndpointstring
typestring

Defined in

src/peer-did/PeerDID.ts:68


DIDCommMessagingEncodedKey

Static Readonly DIDCommMessagingEncodedKey: "dm"

Defined in

src/peer-did/PeerDID.ts:66


DIDCommMessagingKey

Static Readonly DIDCommMessagingKey: "DIDCommMessaging"

Defined in

src/peer-did/PeerDID.ts:65

Methods

encode

encode(): PeerDIDEncoded

Returns

PeerDIDEncoded

Defined in

src/peer-did/PeerDID.ts:75


decode

decode(encoded): PeerDIDService

Parameters

NameType
encodedPeerDIDEncoded

Returns

PeerDIDService

Defined in

src/peer-did/PeerDID.ts:89