Get desktop application:
View/edit binary Protocol Buffers messages
* Define all methods implementes by the gRPC Get: get the value for a specific key Set: set the value for a specific key SetProgram: set the byte data for a specific key GetProgram: get the byte data for a specific key Flush: wait for all the pendings writes to the DB are done
* @dev GetLatestStateRootResponse @param {latest_root} - latest state root @param {result} - result code
* @dev SetRequest @param {old_root} - merkle-tree root @param {key} - key to set @param {value} - scalar value to set (HEX string format) @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID @param {details} - indicates if it should return all response parameters (true) or just the new root (false) @param {get_db_read_log} - indicates if it should return the DB reads generated during the execution of the request @param {batch_uuid} - indicates a unique identifier of the current batch or session; data for this batch can be stored in memory until flushed to database @param {tx_index} - current transaction ordinal index: 0, 1, 2... @param {block_index} - current block ordinal index: 0, 1, 2...
* @dev SetResponse @param {old_root} - merkle-tree root @param {new_root} - merkle-tree new root @param {key} - key to look for @param {siblings} - array of siblings @param {ins_key} - key found @param {ins_value} - value found (HEX string format) @param {is_old0} - is new insert or delete @param {old_value} - old value (HEX string format) @param {new_value} - new value (HEX string format) @param {mode} @param {proof_hash_counter} @param {db_read_log} - list of db records read during the execution of the request @param {result} - result code @param {sibling_left_child} - on delete not found, use children to hash intermediate node (to be sure that it's a intermediate) @param {sibling_right_child} - on delete not found, use children to hash intermediate node (to be sure that it's a intermediate)
* @dev GetRequest @param {root} - merkle-tree root @param {key} - key to look for @param {details} - indicates if it should return all response parameters (true) or just the new root (false) @param {get_db_read_log} - indicates if it should return the DB reads generated during the execution of the request @param {batch_uuid} - indicates a unique identifier of the current batch or session; data for this batch can be stored in memory until flushed to database
* @dev GetResponse @param {root} - merkle-tree root @param {key} - key to look for @param {siblings} - array of siblings @param {ins_key} - key found @param {ins_value} - value found (HEX string format) @param {is_old0} - is new insert or delete @param {value} - value retrieved (HEX string format) @param {proof_hash_counter} @param {db_read_log} - list of db records read during the execution of the request @param {result} - result code
* @dev SetProgramRequest @param {key} - key to set @param {data} - Program data to store @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID @param {batch_uuid} - indicates a unique identifier of the current batch or session; data for this batch can be stored in memory until flushed to database @param {tx_index} - current transaction ordinal index: 0, 1, 2... @param {block_index} - current block ordinal index: 0, 1, 2...
* @dev SetProgramResponse @param {result} - result code
* @dev GetProgramRequest @param {key} - key to get program data @param {batch_uuid} - indicates a unique identifier of the current batch or session; data for this batch can be stored in memory until flushed to database
* @dev GetProgramResponse @param {data} - program data retrieved @param {result} - result code
* @dev LoadDBRequest @param {input_db} - list of db records (MT) to load in the database @param {persistent} - indicates if it should be stored in the SQL database (true) or only in the memory cache (false) @param {state_root} - current (old) state root made up of the provided db records
* @dev LoadProgramDBRequest @param {input_program_db} - list of db records (program) to load in the database @param {persistent} - indicates if it should be stored in the SQL database (true) or only in the memory cache (false)
* @dev FinishTxRequest @param {batch_uuid} - indicates a unique identifier of the current batch or session which tx will be finished @param {new_state_root} - state root at this point of the execution @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID
* @dev StartBlockRequest @param {batch_uuid} - indicates a unique identifier of the current batch or session which block started @param {new_state_root} - state root at this point of the execution @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID
* @dev FinishBlockRequest @param {batch_uuid} - indicates a unique identifier of the current batch or session which block will be finished @param {new_state_root} - state root at this point of the execution @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID
* @dev FlushRequest @param {batch_uuid} - indicates a unique identifier of the current batch or session which data will be flushed to cache (and database if required) @param {new_state_root} - state root at this point of the execution @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID
* @dev FlushResponse @param {flush_id} - id assigned to this flush data @param {stored_flush_id} - id of the last flush data sent to database @param {result} - result code
* @dev GetFlushStatusResponse @param {stored_flush_id} - id of the last flush data sent to database @param {sending_flush_id} - id of the flush data being sent now to database @param {last_flush_id} - id assigned to the last call to flush @param {pending_to_flush_nodes} - number of SMT nodes pending to flush @param {pending_to_flush_program} - number of SC programs pending to flush @param {storing_nodes} - number of SMT nodes being stored in the hash database @param {storing_program} - number of SC programs being stored in the hash database @param {prover_id} - id assigned to this instance of the prover process
* @dev GetFlushDataRequest @param {flush_id} - last stored flush ID got using this method, or 0 if it never was called before
* @dev GetFlushDataResponse @param {stored_flush_id} - id of the last flush data sent to database @param {nodes} - data to insert in the nodes table @param {program} - data to insert in the program table @param {nodes_state_root} - nodes state root to update in the nodes table @param {result} - result code
* @dev ConsolidateStateRequest @param {virtual_state_root} - virtual state root to consolidate (and previous virtual state roots, too) @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID
* @dev ConsolidateStateResponse @param {consolidated_state_root} - consolidated state root at the point of the execution of virtual_state_root @param {flush_id} - id assigned to this flush data @param {stored_flush_id} - id of the last flush data sent to database @param {result} - result code
* @dev PurgeRequest @param {batch_uuid} - indicates a unique identifier of the current batch or session which data will be purged @param {new_state_root} - state root at this point of the execution @param {persistence} - indicates if it should be stored only in CACHE, in the SQL DATABASE, or it is just TEMPORARY and should be deleted at the flush of this batch UUID
* @dev PurgeResponse @param {result} - result code
* @dev ReadTreeRequest @param {state_root} - state root at this point of the execution @param {keys} - list of keys to get their values for
* @dev ReadTreeResponse @param {key_value} - list of key-value pairs requested to be read @param {hash_value} - list of hash-value pairs required to get the key-value pairs @param {result} - result code
* @dev CancelBatchRequest @param {batch_uuid} - indicates a unique identifier of the current batch or session which data will be deleted
* @dev CancelBatchResponse @param {result} - result code
* @dev ResetDBResponse @param {result} - result code
* @dev FE (Field Element) List @param {fe} - list of Fe
Used in:
, ,* @dev Array of 4 FE @param {fe0} - Field Element value for pos 0 @param {fe1} - Field Element value for pos 1 @param {fe2} - Field Element value for pos 2 @param {fe3} - Field Element value for pos 3
Used in:
, , , , , , , , , , , , ,* @dev Array of 12 FE @param {fex} - Field Element value for pos x
Used in:
* @dev HashValueGL @param {hash} - Hash @param {value} - Value
Used in:
* @dev KeyValue @param {key} - key @param {value} - Value
Used in:
Used in:
, , , , , , ,* @dev Result code @param {code} - result code
Used in:
, , , , , , , , , , ,Used in:
Requested key was not found in database
Error connecting to database, or processing request
Invalid size for the data of MT node
* @dev Siblings List @param {sibling} - list of siblings
Used in:
,