|
| using | ByteVector = llvm_vecsmall::SmallVector< uint8_t, CHAR_BIT > |
| |
| using | OpenAPISecuritySchema = std::pair< std::string, nlohmann::json > |
| |
| using | AuthnPolicies = std::vector< std::shared_ptr< AuthnPolicy > > |
| |
| using | NamedAuthPolicies = std::unordered_map< std::string, std::shared_ptr< ccf::AuthnPolicy > > |
| |
| using | MemberId = EntityId< MemberIdFormatter > |
| |
| using | UserId = EntityId< UserIdFormatter > |
| |
| using | NodeId = EntityId< NodeIdFormatter > |
| |
| using | http_status = llhttp_status |
| |
| using | HandlerJsonParamsAndForward = std::function< jsonhandler::JsonAdapterResponse(endpoints::EndpointContext &ctx, nlohmann::json &¶ms)> |
| |
| using | ReadOnlyHandlerWithJson = std::function< jsonhandler::JsonAdapterResponse(endpoints::ReadOnlyEndpointContext &ctx, nlohmann::json &¶ms)> |
| |
| using | CommandHandlerWithJson = std::function< jsonhandler::JsonAdapterResponse(endpoints::CommandEndpointContext &ctx, nlohmann::json &¶ms)> |
| |
| using | RawCoseEndorsement = std::vector< uint8_t > |
| | A single raw COSE endorsement, stored as an opaque byte vector.
|
| |
| using | CoseEndorsementsChain = std::vector< RawCoseEndorsement > |
| | An ordered chain of raw COSE endorsements.
|
| |
| using | TrustedKeys = std::map< ccf::SeqNo, ccf::crypto::ECPublicKeyPtr > |
| |
| using | ReceiptPtr = std::shared_ptr< Receipt > |
| |
| using | TxReceiptImplPtr = std::shared_ptr< TxReceiptImpl > |
| |
| using | SerialisedCoseEndorsement = std::vector< uint8_t > |
| |
| using | SerialisedCoseSignature = std::vector< uint8_t > |
| |
| using | SerialisedCoseEndorsements = std::vector< SerialisedCoseEndorsement > |
| |
| using | SerialisedCoseReceipt = std::vector< uint8_t > |
| |
| using | ListenInterfaceID = std::string |
| |
| using | PathParams = std::map< std::string, std::string, std::less<> > |
| |
| using | SeqNoCollection = ccf::ds::ContiguousSet< ccf::SeqNo > |
| |
| template<typename K , typename V > |
| using | ServiceMap = ccf::kv::MapSerialisedWith< K, V, ccf::kv::serialisers::BlitSerialiser, ccf::kv::serialisers::JsonSerialiser > |
| |
| template<typename V > |
| using | ServiceValue = ccf::kv::ValueSerialisedWith< V, ccf::kv::serialisers::JsonSerialiser, ccf::kv::serialisers::ZeroBlitUnitCreator > |
| |
| template<typename K > |
| using | ServiceSet = ccf::kv::SetSerialisedWith< K, ccf::kv::serialisers::BlitSerialiser, ccf::kv::serialisers::ZeroBlitUnitCreator > |
| |
| using | ServiceUnit = ccf::kv::UnitValue< ccf::kv::serialisers::ZeroBlitUnitCreator > |
| |
| using | ApplicationProtocol = std::string |
| |
| using | CACertBundlePEMs = ServiceMap< std::string, std::string > |
| |
| using | CodeIDs = ServiceMap< pal::SgxAttestationMeasurement, CodeStatus > |
| |
| using | Constitution = ServiceValue< std::string > |
| |
| using | SnpHostDataMap = ServiceMap< HostData, HostDataMetadata > |
| |
| using | VirtualHostDataMap = ServiceSet< HostData > |
| |
| using | JSEngine = ServiceValue< JSRuntimeOptions > |
| |
| using | JwtIssuer = std::string |
| |
| using | JwtKeyId = std::string |
| |
| using | Cert = std::vector< uint8_t > |
| |
| using | ECPublicKey = std::vector< uint8_t > |
| |
| using | JwtPublicSigningKeysMetadata = ServiceMap< JwtKeyId, std::vector< OpenIDJWKMetadata > > |
| |
| using | JwtPublicSigningKeysMetadataLegacy = ServiceMap< JwtKeyId, std::vector< OpenIDJWKMetadataLegacy > > |
| |
| using | JwtIssuers = ServiceMap< JwtIssuer, JwtIssuerMetadata > |
| |
| using | MemberInfo = ServiceMap< MemberId, MemberDetails > |
| |
| using | MemberCerts = ccf::kv::RawCopySerialisedMap< MemberId, ccf::crypto::Pem > |
| |
| using | MemberPublicEncryptionKeys = ccf::kv::RawCopySerialisedMap< MemberId, ccf::crypto::Pem > |
| |
| using | MemberAcks = ServiceMap< MemberId, MemberAck > |
| |
| using | Module = std::string |
| |
| using | Modules = ccf::kv::RawCopySerialisedMap< std::string, Module > |
| |
| using | ModulesQuickJsBytecode = ccf::kv::RawCopySerialisedMap< std::string, std::vector< uint8_t > > |
| |
| using | ModulesQuickJsVersion = ccf::kv::RawCopySerialisedValue< std::string > |
| |
| using | InterpreterFlush = ServiceValue< bool > |
| |
| using | CodeUpdatePolicy = ccf::kv::RawCopySerialisedValue< std::string > |
| |
| using | Nodes = ServiceMap< NodeId, NodeInfo > |
| |
| using | NodeEndorsedCertificates = ccf::kv::RawCopySerialisedMap< NodeId, ccf::crypto::Pem > |
| |
| using | ProposalId = std::string |
| |
| using | Service = ServiceValue< ServiceInfo > |
| |
| using | SnpMeasurements = ServiceMap< pal::SnpAttestationMeasurement, CodeStatus > |
| |
| using | SnpTcbVersionMap = ServiceMap< std::string, pal::snp::TcbVersionPolicy > |
| |
| using | UserCerts = ccf::kv::RawCopySerialisedMap< UserId, ccf::crypto::Pem > |
| |
| using | UserInfo = ServiceMap< UserId, UserDetails > |
| |
| using | DID = std::string |
| |
| using | Feed = std::string |
| |
| using | FeedToEndorsementsDataMap = std::map< Feed, UVMEndorsementsData > |
| |
| using | SNPUVMEndorsements = ServiceMap< DID, FeedToEndorsementsDataMap > |
| |
| using | VirtualMeasurements = ServiceMap< pal::VirtualAttestationMeasurement, CodeStatus > |
| |
| using | View = uint64_t |
| |
| using | SeqNo = uint64_t |
| |
| using | QUICSessionImpl = quic::QUICEchoSession |
| |
| using | MsgNonce = uint64_t |
| |
| using | GcmHdr = ccf::crypto::FixedSizeGcmHeader< sizeof(MsgNonce)> |
| |
| using | CommitCallback = std::function< void(ccf::TxID, ccf::FinalTxStatus)> |
| |
| using | NodeEncryptor = ccf::kv::TxEncryptor< ccf::LedgerSecrets, TxGcmHeader > |
| |
| using | HistoryTree = merkle::TreeT< sha256_byte_size, ccf::sha256_history > |
| |
| using | MerkleTxHistory = HashedTxHistory< MerkleTreeHistory > |
| |
| using | LedgerSecretPtr = std::shared_ptr< LedgerSecret > |
| |
| using | LedgerSecretsMap = std::map< ccf::kv::Version, LedgerSecretPtr > |
| |
| using | VersionedLedgerSecret = LedgerSecretsMap::value_type |
| |
| using | RaftType = aft::Aft<::consensus::LedgerEnclave > |
| |
| using | Node2NodeMsg = uint64_t |
| |
| using | QuoteEndorsementsFetchedCallback = std::function< void(std::vector< uint8_t > &&endorsements)> |
| |
| using | Server = pal::snp::EndorsementEndpointsConfiguration::Server |
| |
| using | ConsensusConfig = std::map< std::string, ConsensusNodeConfig > |
| |
| using | ExtendedState = std::tuple< NodeStartupState, std::optional< ccf::kv::Version >, std::optional< ccf::kv::Version > > |
| |
| using | RecoveredEncryptedLedgerSecrets = std::list< EncryptedLedgerSecretInfo > |
| |
| using | Configuration = ServiceValue< ServiceConfiguration > |
| |
| using | DynamicEndpoints = ccf::ServiceMap< endpoints::EndpointKey, endpoints::EndpointProperties > |
| |
| using | GovernanceHistory = ServiceMap< MemberId, SignedReq > |
| |
| using | COSEGovernanceHistory = ServiceMap< MemberId, std::vector< uint8_t > > |
| |
| using | COSERecentProposals = ServiceMap< std::string, ProposalId > |
| |
| using | EncryptedSealedSharesMap = std::map< NodeId, EncryptedShare > |
| |
| using | SealedShares = ServiceValue< SealedSharesInfo > |
| |
| using | SealedRecoveryKeys = ServiceMap< NodeId, ccf::SealedRecoveryKey > |
| |
| using | LocalSealingNodeIdMap = ServiceMap< sealing_recovery::Name, NodeId > |
| |
| using | Nonce = ccf::crypto::Sha256Hash |
| |
| using | PreviousServiceIdentity = ServiceValue< ccf::crypto::Pem > |
| |
| using | PreviousServiceLastSignedRoot = ServiceValue< ccf::crypto::Sha256Hash > |
| |
| using | PreviousServiceIdentityEndorsement = ServiceValue< CoseEndorsement > |
| |
| using | LastRecoveryType = ServiceValue< RecoveryType > |
| |
| using | EncryptedLedgerSecrets = std::vector< EncryptedLedgerSecret > |
| |
| using | LedgerSecretsForNodes = std::map< NodeId, EncryptedLedgerSecrets > |
| |
| using | Secrets = ServiceValue< LedgerSecretsForNodes > |
| |
| using | EncryptedShare = std::vector< uint8_t > |
| |
| using | EncryptedSharesMap = std::map< MemberId, EncryptedShare > |
| |
| using | RecoveryShares = ServiceValue< RecoverySharesInfo > |
| |
| using | EncryptedLedgerSecretsInfo = ServiceValue< EncryptedLedgerSecretInfo > |
| |
| using | Signatures = ServiceValue< PrimarySignature > |
| |
| using | SerialisedMerkleTree = ccf::kv::RawCopySerialisedValue< std::vector< uint8_t > > |
| |
| using | CoseSignature = std::vector< uint8_t > |
| |
| using | CoseSignatures = ServiceValue< CoseSignature > |
| |
| using | SnapshotEvidence = ServiceValue< SnapshotHash > |
| |
| using | SnapshotStatusValue = ServiceValue< SnapshotStatus > |
| |
| using | SnapshotCreate = ServiceUnit |
| |
| using | EncryptedSubmittedShare = std::vector< uint8_t > |
| |
| using | EncryptedSubmittedShares = ServiceMap< MemberId, EncryptedSubmittedShare > |
| |
|
| std::unique_ptr< ccf::endpoints::EndpointRegistry > | make_user_endpoints (ccf::AbstractNodeContext &context) |
| |
| constexpr char const * | api_result_to_str (ApiResult result) |
| |
| constexpr char const * | invalid_args_reason_to_str (InvalidArgsReason reason) |
| |
| void | to_json (nlohmann::json &j, const ClaimsDigest &hash) |
| |
| void | from_json (const nlohmann::json &j, ClaimsDigest &hash) |
| |
| std::string | schema_name (const ClaimsDigest *claims_digest_type) |
| |
| void | fill_json_schema (nlohmann::json &schema, const ClaimsDigest *claims_digest_type) |
| |
| | DECLARE_JSON_ENUM (QuoteFormat, {{QuoteFormat::oe_sgx_v1, "OE_SGX_v1"}, {QuoteFormat::insecure_virtual, "Insecure_Virtual"}, {QuoteFormat::amd_sev_snp_v1, "AMD_SEV_SNP_v1"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (QuoteInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (QuoteInfo, format, quote, endorsements) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (QuoteInfo, uvm_endorsements, endorsed_tcb) |
| |
| | DECLARE_JSON_TYPE (EndpointMetricsEntry) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (EndpointMetricsEntry, path, method, calls, errors, failures, retries) |
| |
| | DECLARE_JSON_TYPE (EndpointMetrics) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (EndpointMetrics, metrics) |
| |
| std::optional< OpenAPISecuritySchema > | get_cert_based_security_schema () |
| |
| bool | validate_issuer (const std::string &iss, const std::optional< std::string > &tid, std::string constraint) |
| |
| template<typename FmtExtender > |
| void | to_json (nlohmann::json &j, const EntityId< FmtExtender > &entity_id) |
| |
| template<typename FmtExtender > |
| void | from_json (const nlohmann::json &j, EntityId< FmtExtender > &entity_id) |
| |
| template<typename FmtExtender > |
| std::string | schema_name (const EntityId< FmtExtender > *entity_id_type) |
| |
| template<typename FmtExtender > |
| void | fill_json_schema (nlohmann::json &schema, const EntityId< FmtExtender > *entity_id_type) |
| |
| | DECLARE_JSON_ENUM (ActionFormat, {{ActionFormat::COSE, "COSE"}, {ActionFormat::JSON, "JSON"}}) |
| |
| | DECLARE_JSON_TYPE (AuditInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (AuditInfo, format, user_id, action_name) |
| |
| jsonhandler::JsonAdapterResponse | make_success () |
| |
| jsonhandler::JsonAdapterResponse | make_success (nlohmann::json &&result_payload) |
| |
| jsonhandler::JsonAdapterResponse | make_success (const nlohmann::json &result_payload) |
| |
| jsonhandler::JsonAdapterResponse | make_error (ccf::http_status status, const std::string &code, const std::string &msg) |
| |
| jsonhandler::JsonAdapterResponse | make_redirect (ccf::http_status status) |
| |
| jsonhandler::JsonAdapterResponse | already_populated_response () |
| |
| endpoints::EndpointFunction | json_adapter (const HandlerJsonParamsAndForward &f) |
| |
| endpoints::ReadOnlyEndpointFunction | json_read_only_adapter (const ReadOnlyHandlerWithJson &f) |
| |
| endpoints::CommandEndpointFunction | json_command_adapter (const CommandHandlerWithJson &f) |
| |
| | DECLARE_JSON_TYPE (COSESignaturesConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (COSESignaturesConfig, issuer, subject) |
| |
| | DECLARE_JSON_ENUM (LedgerSignMode, {{LedgerSignMode::Dual, "Dual"}, {LedgerSignMode::CoseAllowDualJoin, "CoseAllowDualJoin"}, {LedgerSignMode::CoseOnly, "CoseOnly"}}) |
| |
| LedgerSignMode | get_ledger_sign_mode () |
| |
| QuoteVerificationResult | verify_tcb_version_against_store (ccf::kv::ReadOnlyTx &tx, const QuoteInfo "e_info) |
| |
| | DECLARE_JSON_ENUM (ccf::NodeStartupState, {{ccf::NodeStartupState::uninitialized, "Uninitialized"}, {ccf::NodeStartupState::initialized, "Initialized"}, {ccf::NodeStartupState::pending, "Pending"}, {ccf::NodeStartupState::partOfPublicNetwork, "PartOfPublicNetwork"}, {ccf::NodeStartupState::partOfNetwork, "PartOfNetwork"}, {ccf::NodeStartupState::readingPublicLedger, "ReadingPublicLedger"}, {ccf::NodeStartupState::readingPrivateLedger, "ReadingPrivateLedger"}}) |
| |
| | DECLARE_JSON_TYPE (ODataAuthErrorDetails) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ODataAuthErrorDetails, auth_policy, code, message) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (ODataJSExceptionDetails) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ODataJSExceptionDetails, code, message) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (ODataJSExceptionDetails, trace) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (ODataError) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ODataError, code, message) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (ODataError, details) |
| |
| | DECLARE_JSON_TYPE (ODataErrorResponse) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ODataErrorResponse, error) |
| |
| nlohmann::json | describe_receipt_v1 (const TxReceiptImpl &receipt) |
| |
| ReceiptPtr | describe_receipt_v2 (const TxReceiptImpl &in) |
| |
| std::optional< std::vector< uint8_t > > | describe_merkle_proof_v1 (const TxReceiptImpl &receipt) |
| |
| std::optional< SerialisedCoseEndorsements > | describe_cose_endorsements_v1 (const TxReceiptImpl &receipt) |
| |
| std::optional< SerialisedCoseSignature > | describe_cose_signature_v1 (const TxReceiptImpl &receipt) |
| |
| std::optional< SerialisedCoseReceipt > | describe_cose_receipt_v1 (const TxReceiptImpl &receipt) |
| |
| void | to_json (nlohmann::json &j, const ProofReceipt::Components &components) |
| |
| void | from_json (const nlohmann::json &j, ProofReceipt::Components &components) |
| |
| std::string | schema_name (const ProofReceipt::Components *components) |
| |
| void | fill_json_schema (nlohmann::json &schema, const ProofReceipt::Components *components) |
| |
| void | to_json (nlohmann::json &j, const ProofReceipt::ProofStep &step) |
| |
| void | from_json (const nlohmann::json &j, ProofReceipt::ProofStep &step) |
| |
| std::string | schema_name (const ProofReceipt::ProofStep *step) |
| |
| void | fill_json_schema (nlohmann::json &schema, const ProofReceipt::ProofStep *step) |
| |
| void | to_json (nlohmann::json &j, const ReceiptPtr &receipt) |
| |
| void | from_json (const nlohmann::json &j, ReceiptPtr &receipt) |
| |
| std::string | schema_name (const ReceiptPtr *receipt) |
| |
| void | fill_json_schema (nlohmann::json &schema, const ReceiptPtr *receipt) |
| |
| template<typename T > |
| void | add_schema_components (T &helper, nlohmann::json &schema, const ProofReceipt::Components *comp) |
| |
| template<typename T > |
| void | add_schema_components (T &helper, nlohmann::json &schema, const ProofReceipt::ProofStep *ps) |
| |
| template<typename T > |
| void | add_schema_components (T &helper, nlohmann::json &schema, const ReceiptPtr *r) |
| |
| std::optional< ccf::ClaimsDigest::Digest > | get_create_tx_claims_digest (ccf::kv::ReadOnlyTx &tx) |
| |
| void | to_json (nlohmann::json &j, const RESTVerb &verb) |
| |
| void | from_json (const nlohmann::json &j, RESTVerb &verb) |
| |
| std::string | schema_name (const RESTVerb *verb_type) |
| |
| void | fill_json_schema (nlohmann::json &schema, const RESTVerb *verb_type) |
| |
| int | run (int argc, char **argv) |
| |
| | DECLARE_JSON_ENUM (CodeStatus, {{CodeStatus::ALLOWED_TO_JOIN, "AllowedToJoin"}}) |
| |
| | DECLARE_JSON_ENUM (ConsensusType, {{ConsensusType::CFT, "CFT"}, {ConsensusType::BFT, "BFT"}}) |
| |
| | DECLARE_JSON_ENUM (DerivedSealingKeyAlgorithm, {{DerivedSealingKeyAlgorithm::SNP_v1, "SNP_TCB_v1"}}) |
| |
| | DECLARE_JSON_TYPE (SealedRecoveryKey) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SealedRecoveryKey, version, ciphertext, pubkey, tcb_version) |
| |
| | DECLARE_JSON_ENUM (NodeStatus, {{NodeStatus::PENDING, "Pending"}, {NodeStatus::TRUSTED, "Trusted"}, {NodeStatus::RETIRED, "Retired"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_BASE_AND_OPTIONAL_FIELDS (NodeInfo, NodeInfoNetwork) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeInfo, quote_info, encryption_pub_key, status) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (NodeInfo, cert, ledger_secret_seqno, code_digest, certificate_signing_request, public_key, node_data, retired_committed) |
| |
| | DECLARE_JSON_ENUM (Authority, {{Authority::NODE, "Node"}, {Authority::SERVICE, "Service"}, {Authority::ACME, "ACME"}, {Authority::UNSECURED, "Unsecured"}}) |
| |
| | DECLARE_JSON_TYPE (Endorsement) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (Endorsement, authority) |
| |
| | DECLARE_JSON_TYPE (NodeInfoNetwork_v1) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v1, rpchost, pubhost, nodehost, nodeport, rpcport, pubport) |
| |
| | DECLARE_JSON_ENUM (RedirectionResolutionKind, {{RedirectionResolutionKind::NodeByRole, "NodeByRole"}, {RedirectionResolutionKind::StaticAddress, "StaticAddress"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (RedirectionResolverConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (RedirectionResolverConfig, kind) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (RedirectionResolverConfig, target) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface::Redirections) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2::NetInterface::Redirections) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface::Redirections, to_primary, to_backup) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2::NetInterface, bind_address) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface, endorsement, max_open_sessions_soft, max_open_sessions_hard, published_address, protocol, app_protocol, http_configuration, accepted_endpoints, forwarding_timeout_ms, enabled_operator_features, redirections) |
| |
| | DECLARE_JSON_TYPE (NodeInfoNetwork_v2) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2, node_to_node_interface, rpc_interfaces) |
| |
| void | to_json (nlohmann::json &j, const NodeInfoNetwork &nin) |
| |
| void | from_json (const nlohmann::json &j, NodeInfoNetwork &nin) |
| |
| | DECLARE_JSON_ENUM (ReconfigurationType, {{ReconfigurationType::ONE_TRANSACTION, "OneTransaction"}, {ReconfigurationType::TWO_TRANSACTION, "TwoTransaction"}}) |
| |
| | DECLARE_JSON_TYPE (SignedReq) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SignedReq, sig, req, request_body, md, key_id) |
| |
| void | to_json (nlohmann::json &j, const JSRuntimeOptions &options) |
| |
| void | from_json (const nlohmann::json &j, JSRuntimeOptions &options) |
| |
| std::string | schema_name (const JSRuntimeOptions *runtime_options_type) |
| |
| void | fill_json_schema (nlohmann::json &schema, const JSRuntimeOptions *runtime_options_type) |
| |
| | DECLARE_JSON_ENUM (JwtIssuerKeyFilter, {{JwtIssuerKeyFilter::All, "all"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (JwtIssuerMetadata) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JwtIssuerMetadata) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (JwtIssuerMetadata, ca_cert_bundle_name, auto_refresh) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (OpenIDJWKMetadata) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (OpenIDJWKMetadata, issuer, public_key) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (OpenIDJWKMetadata, constraint) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (OpenIDJWKMetadataLegacy) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (OpenIDJWKMetadataLegacy, issuer, cert) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (OpenIDJWKMetadataLegacy, constraint) |
| |
| | DECLARE_JSON_TYPE (JsonWebKeySet) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JsonWebKeySet, keys) |
| |
| | DECLARE_JSON_ENUM (MemberStatus, {{MemberStatus::ACCEPTED, "Accepted"}, {MemberStatus::ACTIVE, "Active"}}) |
| |
| | DECLARE_JSON_ENUM (MemberRecoveryRole, {{MemberRecoveryRole::NonParticipant, "NonParticipant"}, {MemberRecoveryRole::Participant, "Participant"}, {MemberRecoveryRole::Owner, "Owner"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NewMember) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NewMember, cert) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (NewMember, encryption_pub_key, member_data, recovery_role) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (MemberDetails) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (MemberDetails, status) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (MemberDetails, member_data, recovery_role) |
| |
| | DECLARE_JSON_TYPE (StateDigest) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (StateDigest, state_digest) |
| |
| | DECLARE_JSON_TYPE_WITH_BASE_AND_OPTIONAL_FIELDS (MemberAck, StateDigest) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (MemberAck) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (MemberAck, signed_req, cose_sign1_req) |
| |
| NodeId | compute_node_id_from_pubk_der (const std::vector< uint8_t > &node_pubk_der) |
| |
| NodeId | compute_node_id_from_cert_der (const std::vector< uint8_t > &node_cert_der) |
| |
| NodeId | compute_node_id_from_kp (const ccf::crypto::ECKeyPairPtr &node_sign_kp) |
| |
| | DECLARE_JSON_ENUM (ProposalState, {{ProposalState::OPEN, "Open"}, {ProposalState::ACCEPTED, "Accepted"}, {ProposalState::WITHDRAWN, "Withdrawn"}, {ProposalState::REJECTED, "Rejected"}, {ProposalState::FAILED, "Failed"}, {ProposalState::DROPPED, "Dropped"}}) |
| |
| | DECLARE_JSON_ENUM (ServiceStatus, {{ServiceStatus::OPENING, "Opening"}, {ServiceStatus::OPEN, "Open"}, {ServiceStatus::WAITING_FOR_RECOVERY_SHARES, "WaitingForRecoveryShares"}, {ServiceStatus::RECOVERING, "Recovering"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (ServiceInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ServiceInfo, cert, status) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (ServiceInfo, previous_service_identity_version, recovery_count, service_data, current_service_create_txid) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NewUser) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NewUser, cert) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (NewUser, user_data) |
| |
| | DECLARE_JSON_TYPE (UserDetails) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (UserDetails, user_data) |
| |
| | DECLARE_JSON_TYPE (UVMEndorsementsData) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (UVMEndorsementsData, svn) |
| |
| void | to_json (nlohmann::json &j, const TxID &tx_id) |
| |
| void | from_json (const nlohmann::json &j, TxID &tx_id) |
| |
| std::string | schema_name (const TxID *transaction_id_type) |
| |
| void | fill_json_schema (nlohmann::json &schema, const TxID *transaction_id_type) |
| |
| constexpr char const * | tx_status_to_str (TxStatus status) |
| |
| | DECLARE_JSON_ENUM (TxStatus, {{TxStatus::Unknown, tx_status_to_str(TxStatus::Unknown)}, {TxStatus::Pending, tx_status_to_str(TxStatus::Pending)}, {TxStatus::Committed, tx_status_to_str(TxStatus::Committed)}, {TxStatus::Invalid, tx_status_to_str(TxStatus::Invalid)}}) |
| |
| | DECLARE_JSON_ENUM (LoggerLevel, {{LoggerLevel::TRACE, "Trace"}, {LoggerLevel::DEBUG, "Debug"}, {LoggerLevel::INFO, "Info"}, {LoggerLevel::FAIL, "Fail"}, {LoggerLevel::FATAL, "Fatal"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::NodeCertificateInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::NodeCertificateInfo) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::NodeCertificateInfo, subject_name, subject_alt_names, curve_id, initial_validity_days) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::Ledger) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::Ledger) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::Ledger, directory, read_only_directories, chunk_size) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::LedgerSignatures) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::LedgerSignatures) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::LedgerSignatures, tx_count, delay) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::JWT) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::JWT) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::JWT, key_refresh_interval) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::Attestation::Environment) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::Attestation::Environment) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::Attestation::Environment, security_policy, uvm_endorsements, snp_endorsements) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::Attestation) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::Attestation) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::Attestation, snp_endorsements_servers, environment, snp_security_policy_file, snp_uvm_endorsements_file, snp_endorsements_file) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::Snapshots::BackupFetch) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::Snapshots::BackupFetch) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::Snapshots::BackupFetch, enabled, max_attempts, retry_interval, target_rpc_interface, max_size) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::Snapshots) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::Snapshots) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::Snapshots, directory, tx_count, min_tx_count, time_interval, read_only_directory, backup_fetch) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig::FilesCleanup) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig::FilesCleanup) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig::FilesCleanup, max_snapshots, max_committed_ledger_chunks, interval) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CCFConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CCFConfig, network) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CCFConfig, worker_threads, node_certificate, consensus, ledger, ledger_signatures, jwt, attestation, snapshots, files_cleanup, node_to_node_message_limit, historical_cache_soft_limit) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (RecoveryDecisionProtocolConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (RecoveryDecisionProtocolConfig, expected_locations) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (RecoveryDecisionProtocolConfig, message_retry_timeout, failover_timeout) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (SealingRecoveryConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SealingRecoveryConfig, location) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (SealingRecoveryConfig, recovery_decision_protocol) |
| |
| | DECLARE_JSON_TYPE (StartupConfig::Start) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (StartupConfig::Start, members, constitution, service_configuration) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (StartupConfig::Join) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (StartupConfig::Join, target_rpc_address, retry_timeout, service_cert, follow_redirect) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (StartupConfig::Join, host_data_transparent_statement_path) |
| |
| | DECLARE_JSON_TYPE (StartupConfig::Recover) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (StartupConfig::Recover, previous_service_identity) |
| |
| | DECLARE_JSON_TYPE_WITH_BASE (StartupConfig, CCFConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (StartupConfig, startup_host_time, snapshot_tx_interval, initial_service_certificate_validity_days, service_subject_name, cose_signatures, service_data, node_data, start, join, recover, sealing_recovery) |
| |
| bool | is_valid_actor (const std::string &actor) |
| |
| constexpr auto | get_actor_prefix (ActorsType at) |
| |
| CreateNodeStatus | enclave_create_node (const EnclaveConfig &enclave_config, const ccf::StartupConfig &ccf_config, std::vector< uint8_t > &node_cert, std::vector< uint8_t > &service_cert, StartType start_type, ccf::LoggerLevel log_level, size_t num_worker_thread, const ccf::ds::WorkBeaconPtr &work_beacon, asynchost::Ledger &ledger) |
| |
| bool | enclave_run () |
| |
| std::string | get_combined_schema_name (const AllOfAuthnPolicy::Policies &policies) |
| |
| void | validate_and_adjust_recovery_threshold (host::CCHostConfig &config) |
| |
| void | setup_rpc_interfaces (host::CCHostConfig &config, asynchost::RPCConnections< asynchost::TCP > &rpc, asynchost::RPCConnections< asynchost::UDP > &rpc_udp) |
| |
| void | configure_snp_attestation (ccf::StartupConfig &startup_config) |
| |
| void | populate_config_for_start (const host::CCHostConfig &config, ccf::StartupConfig &startup_config) |
| |
| void | populate_config_for_join (const host::CCHostConfig &config, ccf::StartupConfig &startup_config) |
| |
| void | populate_config_for_recover (const host::CCHostConfig &config, ccf::StartupConfig &startup_config) |
| |
| std::optional< size_t > | create_enclave_node (const host::CCHostConfig &config, messaging::BufferProcessor &buffer_processor, ringbuffer::Circuit &circuit, EnclaveConfig &enclave_config, ccf::StartupConfig &startup_config, std::vector< uint8_t > &node_cert, std::vector< uint8_t > &service_cert, ccf::LoggerLevel log_level, ringbuffer::NotifyingWriterFactory ¬ifying_factory, asynchost::Ledger &ledger) |
| |
| void | write_certificates_to_disk (const host::CCHostConfig &config, const std::vector< uint8_t > &node_cert, const std::vector< uint8_t > &service_cert) |
| |
| void | run_enclave_threads (const host::CCHostConfig &config) |
| |
| std::optional< size_t > | run_main_loop (host::CCHostConfig &config, messaging::BufferProcessor &buffer_processor, ringbuffer::Circuit &circuit, EnclaveConfig &enclave_config, ccf::LoggerLevel log_level) |
| |
| void | apply_stdlib_workarounds () |
| |
| std::shared_ptr<::http::HttpRpcContext > | make_rpc_context (std::shared_ptr< ccf::SessionContext > s, const std::vector< uint8_t > &packed) |
| |
| std::shared_ptr<::http::HttpRpcContext > | make_fwd_rpc_context (std::shared_ptr< ccf::SessionContext > s, const std::vector< uint8_t > &packed, ccf::FrameFormat frame_format) |
| |
| WireNonce | get_wire_nonce (const GcmHdr &header) |
| |
| template<typename T > |
| void | append_value (std::vector< uint8_t > &target, const T &t) |
| |
| void | append_buffer (std::vector< uint8_t > &target, std::span< const uint8_t > src) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (LedgerSecret) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (LedgerSecret, raw_key) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (LedgerSecret, previous_secret_stored_version) |
| |
| LedgerSecretPtr | make_ledger_secret () |
| |
| std::vector< uint8_t > | decrypt_previous_ledger_secret_raw (const LedgerSecretPtr &ledger_secret, const std::vector< uint8_t > &encrypted_previous_secret_raw) |
| |
| LedgerSignMode | __attribute__ ((weak)) get_ledger_sign_mode() |
| |
| void | reset_data (std::vector< uint8_t > &data) |
| |
| ccf::kv::Term | resolve_latest_sig_view (ccf::kv::ReadOnlyTx &tx) |
| |
| bool | verify_enclave_measurement_against_uvm_endorsements (ccf::kv::ReadOnlyTx &tx, const pal::PlatformAttestationMeasurement "e_measurement, const std::vector< uint8_t > &uvm_endorsements) |
| |
| QuoteVerificationResult | verify_enclave_measurement_against_store (ccf::kv::ReadOnlyTx &tx, const pal::PlatformAttestationMeasurement "e_measurement, const QuoteFormat "e_format, const std::optional< std::vector< uint8_t > > &uvm_endorsements=std::nullopt) |
| |
| QuoteVerificationResult | verify_quoted_node_public_key (const std::vector< uint8_t > &expected_node_public_key, const ccf::crypto::Sha256Hash "ed_hash) |
| |
| QuoteVerificationResult | verify_host_data_against_store (ccf::kv::ReadOnlyTx &tx, const QuoteInfo "e_info, std::optional< HostData > &host_data) |
| |
| QuoteVerificationResult | verify_code_transparent_statement (ccf::kv::ReadOnlyTx &tx, const std::vector< uint8_t > &ts_raw, const HostData &host_data, std::shared_ptr< NetworkIdentitySubsystemInterface > network_identity_subsystem) |
| |
| void | dispatch_authenticated_message (nlohmann::json &request, const std::string &target_address, const std::string &endpoint, const crypto::Pem &self_signed_node_cert, const crypto::Pem &privkey_pem) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (Quote) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (Quote, node_id, raw, endorsements, format) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (Quote, measurement, uvm_endorsements) |
| |
| | DECLARE_JSON_TYPE_WITH_BASE (Attestation, Quote) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (Attestation) |
| |
| | DECLARE_JSON_TYPE (GetQuotes::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetQuotes::Out, quotes) |
| |
| | DECLARE_JSON_TYPE (GetAttestations::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetAttestations::Out, attestations) |
| |
| | DECLARE_JSON_TYPE (NodeMetrics) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeMetrics, sessions) |
| |
| | DECLARE_JSON_TYPE (GetHistoricalCacheInfo::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetHistoricalCacheInfo::Out, estimated_size) |
| |
| | DECLARE_JSON_TYPE (JavaScriptMetrics) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JavaScriptMetrics, bytecode_size, bytecode_used, max_heap_size, max_stack_size, max_execution_time, max_cached_interpreters) |
| |
| | DECLARE_JSON_TYPE (JWTRefreshMetrics) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JWTRefreshMetrics, attempts, successes, failures) |
| |
| | DECLARE_JSON_TYPE (SetJwtPublicSigningKeys) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SetJwtPublicSigningKeys, issuer, jwks) |
| |
| | DECLARE_JSON_TYPE (ConsensusNodeConfig) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ConsensusNodeConfig, address) |
| |
| | DECLARE_JSON_TYPE (ConsensusConfigDetails) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ConsensusConfigDetails, details) |
| |
| | DECLARE_JSON_TYPE (SelfSignedNodeCertificateInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SelfSignedNodeCertificateInfo, self_signed_certificate) |
| |
| | DECLARE_JSON_TYPE (GetServicePreviousIdentity::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetServicePreviousIdentity::Out, previous_service_identity) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (GetState::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetState::Out, node_id, state, last_signed_seqno, startup_seqno, stop_notice) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (GetState::Out, recovery_target_seqno, last_recovered_seqno) |
| |
| | DECLARE_JSON_TYPE (GetVersion::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetVersion::Out, ccf_version, quickjs_version, unsafe) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (JoinNetworkNodeToNode::In) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JoinNetworkNodeToNode::In, node_info_network, quote_info, public_encryption_key, startup_seqno) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (JoinNetworkNodeToNode::In, certificate_signing_request, node_data, sealing_recovery_data, code_transparent_statement, ledger_sign_mode, join_fetch_count) |
| |
| | DECLARE_JSON_TYPE (NetworkIdentity) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NetworkIdentity, cert, priv_key) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (JoinNetworkNodeToNode::Out::NetworkInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JoinNetworkNodeToNode::Out::NetworkInfo, public_only, last_recovered_signed_idx, ledger_secrets, identity) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (JoinNetworkNodeToNode::Out::NetworkInfo, service_status, endorsed_certificate, cose_signatures_config) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (JoinNetworkNodeToNode::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (JoinNetworkNodeToNode::Out, node_status) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (JoinNetworkNodeToNode::Out, node_id, network_info) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CreateNetworkNodeToNode::In) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CreateNetworkNodeToNode::In, node_id, certificate_signing_request, node_endorsed_certificate, public_key, service_cert, quote_info, public_encryption_key, measurement, node_info_network, create_txid) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CreateNetworkNodeToNode::In, genesis_info, node_data, service_data, snp_security_policy, snp_uvm_endorsements, sealing_recovery_data) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (GetCommit::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetCommit::Out, transaction_id) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (GetCommit::Out, view_history) |
| |
| | DECLARE_JSON_TYPE (GetTxStatus::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetTxStatus::Out, transaction_id, status) |
| |
| | DECLARE_JSON_TYPE (GetNetworkInfo::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetNetworkInfo::Out, service_status, service_certificate, current_view, primary_id, recovery_count, service_data, current_service_create_txid) |
| |
| | DECLARE_JSON_TYPE (GetNode::NodeInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetNode::NodeInfo, node_id, status, primary, rpc_interfaces, node_data, last_written) |
| |
| | DECLARE_JSON_TYPE (GetNodes::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetNodes::Out, nodes) |
| |
| | DECLARE_JSON_TYPE (VerifyReceipt::In) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (VerifyReceipt::In, receipt) |
| |
| | DECLARE_JSON_TYPE (VerifyReceipt::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (VerifyReceipt::Out, valid) |
| |
| | DECLARE_JSON_TYPE (GetCode::Version) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetCode::Version, digest, status) |
| |
| | DECLARE_JSON_TYPE (GetCode::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetCode::Out, versions) |
| |
| | DECLARE_JSON_TYPE (GetSnpHostDataMap::HostData) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetSnpHostDataMap::HostData, raw, metadata) |
| |
| | DECLARE_JSON_TYPE (GetSnpHostDataMap::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetSnpHostDataMap::Out, host_data) |
| |
| | DECLARE_JSON_TYPE (GetRecoveryShare::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (GetRecoveryShare::Out, encrypted_share) |
| |
| | DECLARE_JSON_TYPE (SubmitRecoveryShare::In) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SubmitRecoveryShare::In, share) |
| |
| | DECLARE_JSON_TYPE (SubmitRecoveryShare::Out) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SubmitRecoveryShare::Out, message) |
| |
| | DECLARE_JSON_TYPE (SessionMetrics::Errors) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SessionMetrics::Errors, parsing, request_payload_too_large, request_header_too_large) |
| |
| | DECLARE_JSON_TYPE (SessionMetrics::PerInterface) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SessionMetrics::PerInterface, active, peak, soft_cap, hard_cap, errors) |
| |
| | DECLARE_JSON_TYPE (SessionMetrics) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SessionMetrics, active, peak, interfaces) |
| |
| size_t | parse_svn (const std::string &svn_str) |
| |
| bool | matches_uvm_roots_of_trust (const pal::UVMEndorsements &endorsements, const std::vector< pal::UVMEndorsements > &uvm_roots_of_trust) |
| |
| pal::UVMEndorsements | verify_uvm_endorsements (const std::vector< uint8_t > &uvm_endorsements_raw, const pal::PlatformAttestationMeasurement &uvm_measurement, const std::vector< pal::UVMEndorsements > &uvm_roots_of_trust, bool enforce_uvm_roots_of_trust) |
| |
| pal::UVMEndorsements | verify_uvm_endorsements_against_roots_of_trust (const std::vector< uint8_t > &uvm_endorsements_raw, const pal::PlatformAttestationMeasurement &uvm_measurement, const std::vector< pal::UVMEndorsements > &uvm_roots_of_trust) |
| |
| ccf::TxID | previous_tx_if_recovery (ccf::TxID txid) |
| |
| ccf::TxID | next_tx_if_recovery (ccf::TxID txid) |
| |
| std::shared_ptr< ccf::kv::Store > | make_store () |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (ServiceConfiguration) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (ServiceConfiguration, recovery_threshold) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (ServiceConfiguration, consensus, reconfiguration_type, maximum_node_certificate_validity_days, maximum_service_certificate_validity_days, recent_cose_proposals_window_size) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (SealedSharesInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SealedSharesInfo, wrapped_latest_ledger_secret, encrypted_wrapping_keys) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (SealedSharesInfo, previous_secret_stored_version) |
| |
| | DECLARE_JSON_TYPE (NodeSignature) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (NodeSignature, sig, node, hashed_nonce) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (CoseEndorsement) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (CoseEndorsement, endorsement, endorsement_epoch_begin, endorsing_key) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (CoseEndorsement, previous_version, endorsement_epoch_end) |
| |
| | DECLARE_JSON_ENUM (RecoveryType, {{RecoveryType::NONE, "None"}, {RecoveryType::RECOVERY_SHARES, "RECOVERY_SHARES"}, {RecoveryType::LOCAL_UNSEALING, "LOCAL_UNSEALING"}}) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (EncryptedLedgerSecret) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (EncryptedLedgerSecret, version, encrypted_secret) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (EncryptedLedgerSecret, previous_secret_stored_version) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (RecoverySharesInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (RecoverySharesInfo, wrapped_latest_ledger_secret, encrypted_shares) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (RecoverySharesInfo, previous_secret_stored_version) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (PreviousLedgerSecretInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (PreviousLedgerSecretInfo, encrypted_data, version) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (PreviousLedgerSecretInfo, previous_secret_stored_version) |
| |
| | DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (EncryptedLedgerSecretInfo) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (EncryptedLedgerSecretInfo) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (EncryptedLedgerSecretInfo, previous_ledger_secret, next_version) |
| |
| | DECLARE_JSON_TYPE_WITH_BASE_AND_OPTIONAL_FIELDS (PrimarySignature, NodeSignature) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (PrimarySignature, seqno, view, commit_seqno, commit_view, root) |
| |
| | DECLARE_JSON_OPTIONAL_FIELDS (PrimarySignature, cert) |
| |
| | DECLARE_JSON_TYPE (SnapshotHash) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SnapshotHash, hash, version) |
| |
| | DECLARE_JSON_TYPE (SnapshotStatus) |
| |
| | DECLARE_JSON_REQUIRED_FIELDS (SnapshotStatus, version, timestamp) |
| |