ApiCoreInterfaces
Interface: ServerAuth
Defined in: packages/core/src/network/peer-auth.ts:162
The serving side: checks a peer's hello, and signs its welcome.
Methods
checkHello()
checkHello(
clientDid,
nodeDid,
nodeNonce,
proof
): Promise<boolean>;Defined in: packages/core/src/network/peer-auth.ts:163
Parameters
| Parameter | Type |
|---|---|
clientDid | string |
nodeDid | string |
nodeNonce | string |
proof | unknown |
Returns
Promise<boolean>
note()
note(): Delegation | null;Defined in: packages/core/src/network/peer-auth.ts:166
The node's note, sent with its welcome so a client can pin the account rather than a session key that changes
Returns
Delegation | null
welcome()
welcome(nodeDid, clientNonce): Promise<string>;Defined in: packages/core/src/network/peer-auth.ts:164
Parameters
| Parameter | Type |
|---|---|
nodeDid | string |
clientNonce | string |
Returns
Promise<string>