mirror of
https://github.com/zkonduit/ezkl.git
synced 2026-04-25 03:01:17 -04:00
98 lines
1.6 KiB
JSON
98 lines
1.6 KiB
JSON
[
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "int256[]",
|
|
"name": "quantized_data",
|
|
"type": "int256[]"
|
|
}
|
|
],
|
|
"name": "check_is_valid_field_element",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "output",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes[]",
|
|
"name": "data",
|
|
"type": "bytes[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "decimals",
|
|
"type": "uint256[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "scales",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"name": "quantize_data_multi",
|
|
"outputs": [
|
|
{
|
|
"internalType": "int256[]",
|
|
"name": "quantized_data",
|
|
"type": "int256[]"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "data",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "decimals",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "scales",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"name": "quantize_data_single",
|
|
"outputs": [
|
|
{
|
|
"internalType": "int256[]",
|
|
"name": "quantized_data",
|
|
"type": "int256[]"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "int64[]",
|
|
"name": "quantized_data",
|
|
"type": "int64[]"
|
|
}
|
|
],
|
|
"name": "to_field_element",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "output",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
}
|
|
] |