minca
ApiCoreFunctions

Function: deriveChannel()

function deriveChannel(params): Promise<Channel>;

Defined in: packages/core/src/identity/channel.ts:90

The channel, from this side's private key, both public points and the secret. The secret and the shared point both go into the keys, so neither alone opens a recording; both points go into the labels, binding it to this exchange.

Parameters

ParameterTypeDescription
params{ join: Uint8Array; kind: ChannelKind; offer: Uint8Array; privateKey: CryptoKey; secret: Uint8Array; side: ChannelSide; }-
params.joinUint8ArrayThe joining side's point
params.kindChannelKind-
params.offerUint8ArrayThe offering side's point
params.privateKeyCryptoKey-
params.secretUint8Array-
params.sideChannelSideWhich of the two this side is

Returns

Promise<Channel>

On this page