67 using Proof = std::vector<ProofStep>;
76 for (
const auto& element :
proof)
146 const TxReceiptImpl& receipt);
164 nlohmann::json& schema,
171 nlohmann::json& schema,
178 nlohmann::json& schema, [[maybe_unused]]
const ReceiptPtr* receipt);
180 template <
typename T>
184 helper.template add_schema_component<
186 helper.template add_schema_component<
192 template <
typename T>
197 .template add_schema_component<decltype(ProofReceipt::ProofStep::hash)>();
202 template <
typename T>
204 T& helper, nlohmann::json& schema,
const ReceiptPtr* r)
206 helper.template add_schema_component<decltype(Receipt::cert)>();
207 helper.template add_schema_component<decltype(Receipt::node_id)>();
209 .template add_schema_component<decltype(Receipt::service_endorsements)>();
210 helper.template add_schema_component<decltype(Receipt::signature)>();
212 helper.template add_schema_component<decltype(ProofReceipt::proof)>();
214 .template add_schema_component<decltype(ProofReceipt::leaf_components)>();
216 .template add_schema_component<decltype(SignatureReceipt::signed_root)>();
Definition claims_digest.h:10
const Digest & value() const
Definition claims_digest.h:38
bool empty() const
Definition claims_digest.h:33
Components leaf_components
Definition receipt.h:49
ccf::crypto::Sha256Hash calculate_root() override
Definition receipt.h:72
Proof proof
Definition receipt.h:70
ccf::crypto::Sha256Hash get_leaf_digest() const
Definition receipt.h:91
bool is_signature_transaction() const override
Definition receipt.h:104
std::vector< ProofStep > Proof
Definition receipt.h:67
std::vector< ccf::crypto::Pem > service_endorsements
Definition receipt.h:30
ccf::crypto::Pem cert
Definition receipt.h:28
ccf::NodeId node_id
Definition receipt.h:27
std::vector< uint8_t > signature
Definition receipt.h:24
virtual bool is_signature_transaction() const =0
virtual ccf::crypto::Sha256Hash calculate_root()=0
virtual ~Receipt()=default
bool is_signature_transaction() const override
Definition receipt.h:122
ccf::crypto::Sha256Hash signed_root
Definition receipt.h:115
ccf::crypto::Sha256Hash calculate_root() override
Definition receipt.h:117
Definition sha256_hash.h:16
Definition app_interface.h:14
std::optional< SerialisedCoseEndorsements > describe_cose_endorsements_v1(const TxReceiptImpl &receipt)
Definition historical_queries_adapter.cpp:264
nlohmann::json describe_receipt_v1(const TxReceiptImpl &receipt)
Definition historical_queries_adapter.cpp:68
std::vector< SerialisedCoseEndorsement > SerialisedCoseEndorsements
Definition receipt.h:150
std::optional< std::vector< uint8_t > > describe_merkle_proof_v1(const TxReceiptImpl &receipt)
Definition historical_queries_adapter.cpp:213
MerkleProofLabel
Definition receipt.h:139
@ MERKLE_PROOF_LEAF_LABEL
Definition receipt.h:142
@ MERKLE_PROOF_PATH_LABEL
Definition receipt.h:143
std::shared_ptr< Receipt > ReceiptPtr
Definition receipt.h:128
std::optional< SerialisedCoseSignature > describe_cose_signature_v1(const TxReceiptImpl &receipt)
Definition historical_queries_adapter.cpp:270
void add_schema_components(T &helper, nlohmann::json &schema, const ProofReceipt::Components *comp)
Definition receipt.h:181
std::string schema_name(const ClaimsDigest *claims_digest_type)
Definition claims_digest.h:59
std::vector< uint8_t > SerialisedCoseEndorsement
Definition receipt.h:148
void from_json(const nlohmann::json &j, ClaimsDigest &hash)
Definition claims_digest.h:54
std::vector< uint8_t > SerialisedCoseSignature
Definition receipt.h:149
std::shared_ptr< TxReceiptImpl > TxReceiptImplPtr
Definition receipt.h:133
ReceiptPtr describe_receipt_v2(const TxReceiptImpl &in)
Definition historical_queries_adapter.cpp:143
void to_json(nlohmann::json &j, const ClaimsDigest &hash)
Definition claims_digest.h:49
void fill_json_schema(nlohmann::json &schema, const ClaimsDigest *claims_digest_type)
Definition claims_digest.h:65
ccf::crypto::Sha256Hash write_set_digest
Definition receipt.h:45
ccf::ClaimsDigest claims_digest
Definition receipt.h:47
std::string commit_evidence
Definition receipt.h:46
Direction
Definition receipt.h:54
ccf::crypto::Sha256Hash hash
Definition receipt.h:60
bool operator==(const ProofStep &other) const
Definition receipt.h:62
Direction direction
Definition receipt.h:58
Definition tx_receipt_impl.h:14