@@ -24,34 +24,38 @@ typedef struct {
2424} TranspileResult ;
2525
2626/**
27- * Transpiles an ACIR contract artifact file to AVM bytecode
27+ * Transpiles a Brillig contract artifact file to AVM bytecode
2828 *
29- * @param input_path Path to input ACIR contract artifact JSON file
29+ * @param input_path Path to input Brillig contract artifact JSON file
3030 * @param output_path Path to output transpiled contract artifact JSON file
31- * @return TranspileResult containing success status, output data, or error message
31+ * @return TranspileResult containing success status, output data, or error
32+ * message
3233 *
33- * The function reads the ACIR contract from input_path, transpiles it to AVM bytecode,
34- * and writes the result to output_path. The output data in the result contains
35- * the same JSON that was written to the file.
34+ * The function reads the Brillig contract from input_path, transpiles it to AVM
35+ * bytecode, and writes the result to output_path. The output data in the result
36+ * contains the same JSON that was written to the file.
3637 *
3738 * Call avm_free_result() to free the returned result.
3839 */
39- TranspileResult avm_transpile_file (const char * input_path , const char * output_path );
40+ TranspileResult avm_transpile_file (const char * input_path ,
41+ const char * output_path );
4042
4143/**
42- * Transpiles raw ACIR contract artifact bytecode to AVM bytecode
44+ * Transpiles raw Brillig contract artifact bytecode to AVM bytecode
4345 *
44- * @param input_data Pointer to input ACIR contract artifact JSON data
46+ * @param input_data Pointer to input Brillig contract artifact JSON data
4547 * @param input_length Length of input data in bytes
46- * @return TranspileResult containing success status, output data, or error message
48+ * @return TranspileResult containing success status, output data, or error
49+ * message
4750 *
48- * The function takes raw JSON bytes representing an ACIR contract artifact,
51+ * The function takes raw JSON bytes representing a Brillig contract artifact,
4952 * transpiles it to AVM bytecode, and returns the transpiled contract artifact
5053 * as JSON bytes in the result.
5154 *
5255 * Call avm_free_result() to free the returned result.
5356 */
54- TranspileResult avm_transpile_bytecode (const unsigned char * input_data , size_t input_length );
57+ TranspileResult avm_transpile_bytecode (const unsigned char * input_data ,
58+ size_t input_length );
5559
5660/**
5761 * Frees memory allocated by a TranspileResult
@@ -67,4 +71,4 @@ void avm_free_result(TranspileResult* result);
6771}
6872#endif
6973
70- #endif /* AVM_TRANSPILER_H */
74+ #endif /* AVM_TRANSPILER_H */
0 commit comments