# Interface: ServerAuth

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

The serving side: checks a peer's hello, and signs its welcome.

## Methods

### checkHello()

```ts
checkHello(
   clientDid, 
   nodeDid, 
   nodeNonce, 
   proof
): Promise<boolean>;
```

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

#### Parameters

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

#### Returns

`Promise`\<`boolean`\>

***

### note()

```ts
note(): Delegation | null;
```

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

The node's note, sent with its welcome so a client can pin the account rather than a session key that changes

#### Returns

[`Delegation`](https://minca.dev/api/core/interfaces/Delegation.md) \| `null`

***

### welcome()

```ts
welcome(nodeDid, clientNonce): Promise<string>;
```

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

#### Parameters

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

#### Returns

`Promise`\<`string`\>
