Functions: ffiHelper

Helper functions for transforming data into FFI-compatible format

Table of contents

Functions

Functions

transformPublicKeyOrKeysetToFfi

▸ transformPublicKeyOrKeysetToFfi(value: PublicKeyOrKeysetEndpoint): object

Parameters

Name
Type
Description

value

The value to transform

Returns

object - The FFI equivalent of the provided PublicKeyOrKeysetEndpoint

Throws

  • Error if PublicKeyOrKeysetEndpoint is missing required fields

  • Error if PublicKeyOrKeysetEndpoint has an invalid type


transformDvrDataToFfi

▸ transformDvrDataToFfi(data: DvrData): object

Parameters

Name
Type
Description

data

The DVR data to transform

Returns

object - A new instance of DvrDataFfi containing the transformed data

Throws

  • Error if user_data_requests is empty


transformExpectedDvrMetadataToFfi

▸ transformExpectedDvrMetadataToFfi(metadata: ExpectedDvrMetadata): object

Parameters

Name
Type
Description

metadata

The metadata to transform

Returns

object - An FFI equivalent of the input metadata

Throws

  • Error if metadata.user_data_verifying_keys is empty

Last updated