Functions: ffiHelper
Helper functions for transforming data into FFI-compatible format
Table of contents
Functions
Functions
transformPublicKeyOrKeysetToFfi
⸠transformPublicKeyOrKeysetToFfi
(value
: PublicKeyOrKeysetEndpoint
): object
Parameters
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
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
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