Helper functions for transforming data into FFI-compatible format
▸ transformPublicKeyOrKeysetToFfi
(value
: PublicKeyOrKeysetEndpoint
): object
Parameters
Name | Type | Description |
---|---|---|
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
(data
: DvrData
): object
Parameters
Returns
object
- A new instance of DvrDataFfi containing the transformed data
Throws
Error if user_data_requests is empty
▸ transformExpectedDvrMetadataToFfi
(metadata
: ExpectedDvrMetadata
): object
Parameters
Returns
object
- An FFI equivalent of the input metadata
Throws
Error if metadata.user_data_verifying_keys is empty
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
value
The value to transform
data
The DVR data to transform
metadata
The metadata to transform