minca
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

ParameterType
pinstring
nodeDidstring
noteunknown

Returns

Promise<boolean>


checkWelcome()

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

Defined in: packages/core/src/network/peer-auth.ts:156

Parameters

ParameterType
nodeDidstring
clientNoncestring
sigunknown

Returns

Promise<boolean>


hello()

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

Defined in: packages/core/src/network/peer-auth.ts:155

Parameters

ParameterType
clientDidstring
nodeDidstring
nodeNoncestring

Returns

Promise<HelloProof>

On this page