Types: ffiType

A collection of FFI types used in the DVR module

Table of contents

Types: ffiType

Types: ffiType

FfiResultUserDataToken

β–Έ FfiResultUserDataToken: StructType A structure representing the result of a user data token operation.

Parameters:

Name
Type
Description

result

ref.refType(ref.types.CString)

The operation result

error

ref.types.CString

Error message if any


FfiResultDvrToken

β–Έ FfiResultDvrToken: StructType A structure representing the result of a DVR token operation.

Parameters:

Name
Type
Description

result

ref.refType(ref.types.CString)

The operation result

error

ref.types.CString

Error message if any


FfiResultZkPassProofToken

β–Έ FfiResultZkPassProofToken: StructType A structure representing the result of a zkPass proof token operation.

Parameters:

Name
Type
Description

result

ref.refType(ref.types.CString)

The operation result

error

ref.types.CString

Error message if any


FfiResultVerifyZkPassProofToken

β–Έ FfiResultVerifyZkPassProofToken: StructType A structure representing the result of a zkPass proof verification token operation.

Parameters:

Name
Type
Description

result

ref.refType(ref.types.CString)

The operation result

error

ref.types.CString

Error message if any


PublicKeyFfi

β–Έ PublicKeyFfi: StructType A structure representing a public key.

Parameters:

Name
Type
Description

x

ref.types.CString

X coordinate of the public key

y

ref.types.CString

Y coordinate of the public key


KeysetEndpointFfi

β–Έ KeysetEndpointFfi: StructType A structure representing a keyset endpoint.

Parameters:

Name
Type
Description

jku

ref.types.CString

JSON Web Key Set URL

kid

ref.types.CString

Key identifier


PublicKeyOptionUnionFfi

β–Έ PublicKeyOptionUnionFfi: StructType A structure representing a union of public key and keyset endpoint.

Parameters:

Name
Type
Description

public_key

The public key structure

keyset_endpoint

The keyset endpoint structure


PublicKeyOptionFfi

β–Έ PublicKeyOptionFfi: StructType A structure representing a public key option with tag and value.

Parameters:

Name
Type
Description

tag

ref.types.uint64

Type identifier

value

The key data


UserDataRequestFfi

β–Έ UserDataRequestFfi: StructType A structure representing a user data request.

Parameters:

Name
Type
Description

key

ref.types.CString

Request key

value

Request value


DvrDataFfi

β–Έ DvrDataFfi: StructType A structure representing DVR data.

Parameters:

Name
Type
Description

zkvm

ref.types.CString

ZKVM identifier

dvr_title

ref.types.CString

DVR title

dvr_id

ref.types.CString

DVR identifier

query

ref.types.CString

Query string

user_data_requests

Array of user data requests

user_data_requests_len

ref.types.uint64

Length of user data requests array

dvr_verifying_key

DVR verifying key


ExpectedDvrMetadataFfi

β–Έ ExpectedDvrMetadataFfi: StructType A structure representing expected DVR metadata.

Parameters:

Name
Type
Description

ttl

ref.types.uint64

Time to live

dvr

ref.types.CString

DVR data token

user_data_verifying_keys

Array of verifying keys

user_data_verifying_keys_len

ref.types.uint64

Length of verifying keys array

UserDataRequestArrayFfi

β–Έ UserDataRequestArrayFfi: ArrayType An array type of UserDataRequestFfi structures.


UserDataVerifyingKeysFfi

β–Έ UserDataVerifyingKeysFfi: ArrayType An array type of UserDataRequestFfi structures used for verifying keys.

Last updated