6#ifndef ALTINTEGRATION_ENDORSEMENTS_HPP
7#define ALTINTEGRATION_ENDORSEMENTS_HPP
9#include <veriblock/pop/entities/endorsement.hpp>
10#include <veriblock/pop/fmt.hpp>
20using VbkEndorsement = Endorsement<uint192, uint256, VTB>;
23VbkEndorsement VbkEndorsement ::fromContainer(
const VTB& c);
25VbkEndorsement::id_t VbkEndorsement::getId(
const VTB& c);
28using AltEndorsement = Endorsement<std::vector<uint8_t>,
uint192, ATV>;
31AltEndorsement AltEndorsement ::fromContainer(
33 const std::vector<uint8_t>& containingHash,
34 const std::vector<uint8_t>& endorsedHash);
36AltEndorsement::id_t AltEndorsement::getId(
const ATV& c);
39inline const std::string AltEndorsement::name() {
44inline const std::string VbkEndorsement::name() {
50 ValidationState& state);
54 ValidationState& state);
61 size_t operator()(
const altintegration::VbkEndorsement& e)
const {
62 using eid = altintegration::VbkEndorsement::id_t;
63 return std::hash<eid>{}(e.id);
70 size_t operator()(
const altintegration::AltEndorsement& e)
const {
71 using eid = altintegration::AltEndorsement::id_t;
72 return std::hash<eid>{}(e.id);
Blob< VBK_BLOCK_HASH_SIZE > uint192
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool DeserializeFromVbkEncoding(ReadStream &stream, AltBlockAddon &out, ValidationState &state)
This is an overloaded member function, provided for convenience. It differs from the above function o...