purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
construction_parent_bridge.h
Go to the documentation of this file.
1// Copyright (c) 2026 Judica, Inc.
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or https://opensource.org/license/mit/.
4
12
13#ifndef PURIFY_SRC_BRIDGE_CONSTRUCTION_PARENT_BRIDGE_H
14#define PURIFY_SRC_BRIDGE_CONSTRUCTION_PARENT_BRIDGE_H
15
16#include <stddef.h>
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23enum {
26 /* Fixed by the mixed SHA-256 construction-parent qualification. */
28};
29
40
43
51 const uint8_t* artifact_path, size_t artifact_path_length,
52 purify_construction_parent_verifier** verifier_output);
53
63 const uint8_t construction_statement_digest[32],
64 const uint8_t resolved_setup_record_digest[32],
65 const uint8_t recovery_root[64],
66 const uint8_t native_basis_digest[32],
67 const uint8_t native_raw_generator_digest[32],
68 uint32_t setup_count,
69 uint32_t anchor_count,
70 const uint8_t* leaf_descriptors,
71 size_t leaf_descriptors_length,
72 const uint8_t* proof,
73 size_t proof_length,
74 uint8_t* pending_root_output,
75 size_t pending_root_capacity);
76
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif // PURIFY_SRC_BRIDGE_CONSTRUCTION_PARENT_BRIDGE_H
void purify_construction_parent_verifier_destroy(purify_construction_parent_verifier *verifier)
purify_construction_parent_status purify_construction_parent_verify(const purify_construction_parent_verifier *verifier, const uint8_t construction_statement_digest[32], const uint8_t resolved_setup_record_digest[32], const uint8_t recovery_root[64], const uint8_t native_basis_digest[32], const uint8_t native_raw_generator_digest[32], uint32_t setup_count, uint32_t anchor_count, const uint8_t *leaf_descriptors, size_t leaf_descriptors_length, const uint8_t *proof, size_t proof_length, uint8_t *pending_root_output, size_t pending_root_capacity)
@ PURIFY_CONSTRUCTION_PARENT_ROOT_SIZE
@ PURIFY_CONSTRUCTION_PARENT_DESCRIPTOR_SIZE
@ PURIFY_CONSTRUCTION_PARENT_PROOF_SIZE
struct purify_construction_parent_verifier purify_construction_parent_verifier
purify_construction_parent_status
@ PURIFY_CONSTRUCTION_PARENT_ARTIFACT_SNAPSHOT_FAILED
@ PURIFY_CONSTRUCTION_PARENT_INTERNAL_ERROR
@ PURIFY_CONSTRUCTION_PARENT_ARTIFACT_OPEN_FAILED
@ PURIFY_CONSTRUCTION_PARENT_ARTIFACT_REJECTED
@ PURIFY_CONSTRUCTION_PARENT_OK
@ PURIFY_CONSTRUCTION_PARENT_MALFORMED
@ PURIFY_CONSTRUCTION_PARENT_BUFFER_TOO_SMALL
@ PURIFY_CONSTRUCTION_PARENT_PROOF_REJECTED
purify_construction_parent_status purify_construction_parent_verifier_load(const uint8_t *artifact_path, size_t artifact_path_length, purify_construction_parent_verifier **verifier_output)