verify.h
verify_ctx_t ctx = {0};
for (
c4_status_t status = c4_verify_from_bytes(&ctx, request_bytes, method, json_parse(args), chain_id);
status == C4_PENDING;
status = c4_verify(&ctx))
curl_fetch_all(&ctx.state);
if (ctx.success) {
ssz_dump_to_file_no_quotes(stdout, ctx.data);
return EXIT_SUCCESS;
}
else if (ctx.state.error) {
fprintf(stderr, "proof is invalid: %s\n", ctx.state.error);
return EXIT_FAILURE;
}verify_flags_t
verify_flag_t
flags
method_type_t
c4_get_request_type
c4_get_chain_type_from_req
c4_get_req_type_from_req
c4_verify
c4_verify_from_bytes
c4_verify_free_data
c4_verify_init
c4_get_method_type
Last updated