@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
Name | Type |
---|---|
body | HandshakeRequestBody |
from | DID |
to | DID |
thid? | string |
id | string |
Returns
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
Defined in
src/edge-agent/protocols/connection/HandshakeRequest.ts:20
fromMessage
▸ fromMessage(inviteMessage
, from
): HandshakeRequest
Parameters
Name | Type |
---|---|
inviteMessage | Message |
from | DID |
Returns
Defined in
src/edge-agent/protocols/connection/HandshakeRequest.ts:82
fromOutOfBand
▸ fromOutOfBand(inviteMessage
, from
): HandshakeRequest
Parameters
Name | Type |
---|---|
inviteMessage | OutOfBandInvitation |
from | DID |
Returns
Defined in
src/edge-agent/protocols/connection/HandshakeRequest.ts:101
isHandShakeBody
▸ isHandShakeBody(type
, body
): body is HandshakeRequestBody
Parameters
Name | Type |
---|---|
type | ProtocolType |
body | any |
Returns
body is HandshakeRequestBody
Defined in
src/edge-agent/protocols/connection/HandshakeRequest.ts:33
safeParseBody
▸ safeParseBody(body
, type
): HandshakeRequestBody
Parameters
Name | Type |
---|---|
body | string |
type | ProtocolType |