CCF
Loading...
Searching...
No Matches
Classes | Functions
ccf::gov::endpoints::detail Namespace Reference

Classes

struct  ProposalSubmissionResult
 

Functions

AuthnPolicies member_sig_only_policies (const std::string &gov_msg_type)
 
AuthnPolicies active_member_sig_only_policies (const std::string &gov_msg_type)
 
template<typename EntityType >
std::optional< EntityType > parse_hex_id (const std::string &s)
 
bool try_parse_member_id (const std::shared_ptr< ccf::RpcContext > &rpc_ctx, ccf::MemberId &member_id)
 
bool try_parse_signed_member_id (const ccf::MemberCOSESign1AuthnIdentity &cose_ident, const std::shared_ptr< ccf::RpcContext > &rpc_ctx, ccf::MemberId &member_id)
 
bool try_parse_user_id (const std::shared_ptr< ccf::RpcContext > &rpc_ctx, ccf::UserId &user_id)
 
bool try_parse_proposal_id (const std::shared_ptr< ccf::RpcContext > &rpc_ctx, ccf::ProposalId &proposal_id)
 
bool try_parse_signed_proposal_id (const ccf::MemberCOSESign1AuthnIdentity &cose_ident, const std::shared_ptr< ccf::RpcContext > &rpc_ctx, ccf::ProposalId &proposal_id)
 
bool try_parse_node_id (const std::shared_ptr< ccf::RpcContext > &rpc_ctx, ccf::NodeId &node_id)
 
ProposalSubmissionResult validate_proposal_submission_time (ccf::kv::Tx &tx, const std::string &created_at, const std::vector< uint8_t > &request_digest, const ccf::ProposalId &proposal_id)
 
void record_cose_governance_history (ccf::kv::Tx &tx, const MemberId &caller_id, const std::span< const uint8_t > &cose_sign1)
 
void remove_all_other_non_open_proposals (ccf::kv::Tx &tx, const ProposalId &proposal_id)
 
void resolve_proposal (ccf::AbstractNodeContext &context, ccf::NetworkState &network, ccf::kv::Tx &tx, const ProposalId &proposal_id, const std::span< const uint8_t > &proposal_bytes, ccf::jsgov::ProposalInfo &proposal_info, const std::string &constitution)
 
nlohmann::json convert_proposal_to_api_format (const ProposalId &proposal_id, const ccf::jsgov::ProposalInfo &summary)
 

Function Documentation

◆ active_member_sig_only_policies()

AuthnPolicies ccf::gov::endpoints::detail::active_member_sig_only_policies ( const std::string &  gov_msg_type)

◆ convert_proposal_to_api_format()

nlohmann::json ccf::gov::endpoints::detail::convert_proposal_to_api_format ( const ProposalId proposal_id,
const ccf::jsgov::ProposalInfo summary 
)

◆ member_sig_only_policies()

AuthnPolicies ccf::gov::endpoints::detail::member_sig_only_policies ( const std::string &  gov_msg_type)

◆ parse_hex_id()

template<typename EntityType >
std::optional< EntityType > ccf::gov::endpoints::detail::parse_hex_id ( const std::string &  s)

◆ record_cose_governance_history()

void ccf::gov::endpoints::detail::record_cose_governance_history ( ccf::kv::Tx tx,
const MemberId caller_id,
const std::span< const uint8_t > &  cose_sign1 
)

◆ remove_all_other_non_open_proposals()

void ccf::gov::endpoints::detail::remove_all_other_non_open_proposals ( ccf::kv::Tx tx,
const ProposalId proposal_id 
)

◆ resolve_proposal()

void ccf::gov::endpoints::detail::resolve_proposal ( ccf::AbstractNodeContext context,
ccf::NetworkState network,
ccf::kv::Tx tx,
const ProposalId proposal_id,
const std::span< const uint8_t > &  proposal_bytes,
ccf::jsgov::ProposalInfo proposal_info,
const std::string &  constitution 
)

◆ try_parse_member_id()

bool ccf::gov::endpoints::detail::try_parse_member_id ( const std::shared_ptr< ccf::RpcContext > &  rpc_ctx,
ccf::MemberId member_id 
)

◆ try_parse_node_id()

bool ccf::gov::endpoints::detail::try_parse_node_id ( const std::shared_ptr< ccf::RpcContext > &  rpc_ctx,
ccf::NodeId node_id 
)

◆ try_parse_proposal_id()

bool ccf::gov::endpoints::detail::try_parse_proposal_id ( const std::shared_ptr< ccf::RpcContext > &  rpc_ctx,
ccf::ProposalId proposal_id 
)

◆ try_parse_signed_member_id()

bool ccf::gov::endpoints::detail::try_parse_signed_member_id ( const ccf::MemberCOSESign1AuthnIdentity cose_ident,
const std::shared_ptr< ccf::RpcContext > &  rpc_ctx,
ccf::MemberId member_id 
)

◆ try_parse_signed_proposal_id()

bool ccf::gov::endpoints::detail::try_parse_signed_proposal_id ( const ccf::MemberCOSESign1AuthnIdentity cose_ident,
const std::shared_ptr< ccf::RpcContext > &  rpc_ctx,
ccf::ProposalId proposal_id 
)

◆ try_parse_user_id()

bool ccf::gov::endpoints::detail::try_parse_user_id ( const std::shared_ptr< ccf::RpcContext > &  rpc_ctx,
ccf::UserId user_id 
)

◆ validate_proposal_submission_time()

ProposalSubmissionResult ccf::gov::endpoints::detail::validate_proposal_submission_time ( ccf::kv::Tx tx,
const std::string &  created_at,
const std::vector< uint8_t > &  request_digest,
const ccf::ProposalId proposal_id 
)