5 #ifndef BITCOIN_AVALANCHE_DELEGATION_H 6 #define BITCOIN_AVALANCHE_DELEGATION_H 18 class DelegationState;
38 std::vector<Level> levels_)
39 : proofid(proofid_), dgid(dgid_), levels(
std::move(levels_)) {}
49 SER_READ(obj, obj.dgid = obj.computeDelegationId());
58 #endif // BITCOIN_AVALANCHE_DELEGATION_H
std::vector< Level > levels
bool verify(DelegationState &state, const Proof &proof, CPubKey &auth) const
std::array< uint8_t, CPubKey::SCHNORR_SIZE > SchnorrSig
a Schnorr signature
SERIALIZE_METHODS(Level, obj)
SERIALIZE_METHODS(Delegation, obj)
An encapsulated public key.
DelegationId computeDelegationId() const
const ProofId & getProofId() const
const DelegationId & getId() const
Delegation(const ProofId &proofid_, const DelegationId &dgid_, std::vector< Level > levels_)
#define SER_READ(obj, code)