minca
ApiCoreFunctions

Function: openBody()

function openBody(
   body, 
   spaceKey, 
   place
): Promise<unknown>;

Defined in: packages/core/src/privacy/space-encryption.ts:113

Opens a sealed body with the key it names.

Parameters

ParameterType
bodyunknown
spaceKeySpaceKey
placeBodyPlace

Returns

Promise<unknown>

The content, or null when the key is not the one it names, it was sealed for another record, or anything changed

On this page