CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
receipt.h File Reference
#include "ccf/claims_digest.h"
#include "ccf/crypto/pem.h"
#include "ccf/crypto/sha256_hash.h"
#include "ccf/ds/json.h"
#include "ccf/ds/openapi.h"
#include "ccf/entity_id.h"
#include <optional>
#include <string>

Go to the source code of this file.

Classes

class  ccf::Receipt
 
class  ccf::ProofReceipt
 
struct  ccf::ProofReceipt::Components
 
struct  ccf::ProofReceipt::ProofStep
 
class  ccf::SignatureReceipt
 

Namespaces

namespace  ccf
 

Typedefs

using ccf::ReceiptPtr = std::shared_ptr< Receipt >
 
using ccf::TxReceiptImplPtr = std::shared_ptr< TxReceiptImpl >
 
using ccf::SerialisedCoseEndorsement = std::vector< uint8_t >
 
using ccf::SerialisedCoseSignature = std::vector< uint8_t >
 
using ccf::SerialisedCoseEndorsements = std::vector< SerialisedCoseEndorsement >
 

Enumerations

enum  ccf::MerkleProofLabel : int64_t { ccf::MERKLE_PROOF_LEAF_LABEL = 1 , ccf::MERKLE_PROOF_PATH_LABEL = 2 }
 

Functions

nlohmann::json ccf::describe_receipt_v1 (const TxReceiptImpl &receipt)
 
ReceiptPtr ccf::describe_receipt_v2 (const TxReceiptImpl &in)
 
std::optional< std::vector< uint8_t > > ccf::describe_merkle_proof_v1 (const TxReceiptImpl &receipt)
 
std::optional< SerialisedCoseEndorsementsccf::describe_cose_endorsements_v1 (const TxReceiptImpl &receipt)
 
std::optional< SerialisedCoseSignatureccf::describe_cose_signature_v1 (const TxReceiptImpl &receipt)
 
void ccf::to_json (nlohmann::json &j, const ProofReceipt::Components &components)
 
void ccf::from_json (const nlohmann::json &j, ProofReceipt::Components &components)
 
std::string ccf::schema_name (const ProofReceipt::Components *)
 
void ccf::fill_json_schema (nlohmann::json &schema, const ProofReceipt::Components *)
 
void ccf::to_json (nlohmann::json &j, const ProofReceipt::ProofStep &step)
 
void ccf::from_json (const nlohmann::json &j, ProofReceipt::ProofStep &step)
 
std::string ccf::schema_name (const ProofReceipt::ProofStep *)
 
void ccf::fill_json_schema (nlohmann::json &schema, const ProofReceipt::ProofStep *)
 
void ccf::to_json (nlohmann::json &j, const ReceiptPtr &receipt)
 
void ccf::from_json (const nlohmann::json &j, ReceiptPtr &receipt)
 
std::string ccf::schema_name (const ReceiptPtr *)
 
void ccf::fill_json_schema (nlohmann::json &schema, const ReceiptPtr *)
 
template<typename T >
void ccf::add_schema_components (T &helper, nlohmann::json &schema, const ProofReceipt::Components *comp)
 
template<typename T >
void ccf::add_schema_components (T &helper, nlohmann::json &schema, const ProofReceipt::ProofStep *ps)
 
template<typename T >
void ccf::add_schema_components (T &helper, nlohmann::json &schema, const ReceiptPtr *r)