minca
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

ParameterType
clientDidstring
nodeDidstring
nodeNoncestring
proofunknown

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

ParameterType
nodeDidstring
clientNoncestring

Returns

Promise<string>

On this page