13 template <
typename L,
typename F>
15 for (
const auto &l : levels) {
31 return reduceLevels(hash, levels, [](
const L &) {
return true; });
std::vector< Level > levels
static bool reduceLevels(uint256 &hash, const std::vector< L > &levels, F f)
const CPubKey & getMaster() const
bool verify(DelegationState &state, const Proof &proof, CPubKey &auth) const
bool VerifySchnorr(const uint256 &hash, const std::array< uint8_t, SCHNORR_SIZE > &sig) const
Verify a Schnorr signature (=64 bytes).
bool Invalid(Result result, const std::string &reject_reason="", const std::string &debug_message="")
An encapsulated public key.
DelegationId computeDelegationId() const
const ProofId & getId() const
A writer stream (for serialization) that computes a 256-bit hash.