Skip to main content

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

Class: HandshakeRequest

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new HandshakeRequest(body, from, to, thid?, id?): HandshakeRequest

Parameters

NameType
bodyHandshakeRequestBody
fromDID
toDID
thid?string
idstring

Returns

HandshakeRequest

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:12

Properties

body

body: HandshakeRequestBody

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:13


from

from: DID

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:14


id

id: string

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:17


thid

Optional thid: string

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:16


to

to: DID

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:15


type

Static type: ProtocolType = ProtocolType.DidcommconnectionRequest

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:10

Methods

makeMessage

makeMessage(): Message

Returns

Message

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:20


fromMessage

fromMessage(inviteMessage, from): HandshakeRequest

Parameters

NameType
inviteMessageMessage
fromDID

Returns

HandshakeRequest

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:82


fromOutOfBand

fromOutOfBand(inviteMessage, from): HandshakeRequest

Parameters

NameType
inviteMessageOutOfBandInvitation
fromDID

Returns

HandshakeRequest

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:101


isHandShakeBody

isHandShakeBody(type, body): body is HandshakeRequestBody

Parameters

NameType
typeProtocolType
bodyany

Returns

body is HandshakeRequestBody

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:33


safeParseBody

safeParseBody(body, type): HandshakeRequestBody

Parameters

NameType
bodystring
typeProtocolType

Returns

HandshakeRequestBody

Defined in

src/edge-agent/protocols/connection/HandshakeRequest.ts:41