Module: ezkl
EZKLGenerateProofRequest
Bases: BaseModel
A request for an EZKL proof.
Attributes:
Name | Type | Description |
---|---|---|
witness_data |
WitnessInputData
|
|
vk_address |
Optional[HexStr]
|
Optional[HexStr]: the address of the verifying key contract |
Source code in src/infernet_ml/services/ezkl.py
from_numpy(repo_id, np_input)
classmethod
Create a request from a numpy array.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
repo_id |
str
|
the repo ID |
required |
np_input |
ndarray[Any, Any]
|
the input data |
required |
Returns:
Name | Type | Description |
---|---|---|
EZKLGenerateProofRequest |
EZKLGenerateProofRequest
|
the request |
Source code in src/infernet_ml/services/ezkl.py
from_web3(input_hex)
classmethod
Create a request from a web3 ABI-encoded byte string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_hex |
Union[str, bytes]
|
Union[str, bytes]: the ABI-encoded byte string |
required |
Returns:
Name | Type | Description |
---|---|---|
EZKLGenerateProofRequest |
EZKLGenerateProofRequest
|
the request |
Source code in src/infernet_ml/services/ezkl.py
to_keyval()
Convert the request to a list of key-value pairs.
Returns:
Type | Description |
---|---|
List[Tuple[str, Optional[str]]]
|
List[Tuple[str, Optional[str]]]: the key-value pairs |
Source code in src/infernet_ml/services/ezkl.py
to_web3()
Convert the request to a web3 ABI-encoded byte string.
Returns:
Name | Type | Description |
---|---|---|
bytes |
bytes
|
the ABI-encoded byte string |