minca
ApiCoreFunctions

Function: deriveNameKeyBytes()

function deriveNameKeyBytes(contactKey, username): Promise<Uint8Array<ArrayBufferLike>>;

Defined in: packages/core/src/identity/contact-key.ts:95

A username's name key, which claims it on a Minca name service (packages/core/docs/usernames.md). One per username, and nothing ties it to the account or to an inbox, so a new inbox keeps the name.

Parameters

ParameterTypeDescription
contactKeyUint8Array-
usernamestringname@domain, as formatUsername writes it (claimUsername derives it so)

Returns

Promise<Uint8Array<ArrayBufferLike>>

On this page