# Interface: ClientAuth

Defined in: [packages/core/src/network/peer-auth.ts:154](https://github.com/leifriksheim/minca/blob/main/core/src/network/peer-auth.ts#L154)

The connecting side: proves who it is and that it may read, and checks the node's welcome.

## Methods

### checkPin()

```ts
checkPin(
   pin, 
   nodeDid, 
   note
): Promise<boolean>;
```

Defined in: [packages/core/src/network/peer-auth.ts:158](https://github.com/leifriksheim/minca/blob/main/core/src/network/peer-auth.ts#L158)

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()

```ts
checkWelcome(
   nodeDid, 
   clientNonce, 
   sig
): Promise<boolean>;
```

Defined in: [packages/core/src/network/peer-auth.ts:156](https://github.com/leifriksheim/minca/blob/main/core/src/network/peer-auth.ts#L156)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `nodeDid` | `string` |
| `clientNonce` | `string` |
| `sig` | `unknown` |

#### Returns

`Promise`\<`boolean`\>

***

### hello()

```ts
hello(
   clientDid, 
   nodeDid, 
   nodeNonce
): Promise<HelloProof>;
```

Defined in: [packages/core/src/network/peer-auth.ts:155](https://github.com/leifriksheim/minca/blob/main/core/src/network/peer-auth.ts#L155)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `clientDid` | `string` |
| `nodeDid` | `string` |
| `nodeNonce` | `string` |

#### Returns

`Promise`\<`HelloProof`\>
