ApiCoreInterfaces
Interface: ClientAuth
Defined in: packages/core/src/network/peer-auth.ts:154
The connecting side: proves who it is and that it may read, and checks the node's welcome.
Methods
checkPin()
checkPin(
pin,
nodeDid,
note
): Promise<boolean>;Defined in: packages/core/src/network/peer-auth.ts:158
Whether the node is the one pinned: its own key, or a session the pinned key gave a note for everything (pinned)
Parameters
| Parameter | Type |
|---|---|
pin | string |
nodeDid | string |
note | unknown |
Returns
Promise<boolean>
checkWelcome()
checkWelcome(
nodeDid,
clientNonce,
sig
): Promise<boolean>;Defined in: packages/core/src/network/peer-auth.ts:156
Parameters
| Parameter | Type |
|---|---|
nodeDid | string |
clientNonce | string |
sig | unknown |
Returns
Promise<boolean>
hello()
hello(
clientDid,
nodeDid,
nodeNonce
): Promise<HelloProof>;Defined in: packages/core/src/network/peer-auth.ts:155
Parameters
| Parameter | Type |
|---|---|
clientDid | string |
nodeDid | string |
nodeNonce | string |
Returns
Promise<HelloProof>