ApiInboxFunctions
Function: sealKnock()
function sealKnock(
to,
knock,
signer,
provider
): Promise<string>;Defined in: packages/core/src/inbox/inbox.ts:220
Makes a knock: signed by the session key under its account's note, and
sealed to to, an inbox key or a contact key.
Parameters
| Parameter | Type |
|---|---|
to | string |
knock | { invite: Version; name: string; note?: string; secret: Uint8Array; } |
knock.invite | Version |
knock.name | string |
knock.note? | string |
knock.secret | Uint8Array |
signer | LooseSigner |
provider | CryptoProvider |
Returns
Promise<string>
The sealed blob, for a mailbox or a contact request