 |
Bitcoin ABC
0.25.8
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_AVALANCHE_DELEGATION_H
6 #define BITCOIN_AVALANCHE_DELEGATION_H
28 class DelegationState;
50 std::vector<Level> levels_)
69 READWRITE(obj.limitedProofid, obj.proofMaster, obj.levels);
70 SER_READ(obj, obj.dgid = obj.computeDelegationId());
78 #endif // BITCOIN_AVALANCHE_DELEGATION_H
DelegationId computeDelegationId() const
LimitedProofId limitedProofid
SERIALIZE_METHODS(Level, obj)
ProofId getProofId() const
const LimitedProofId & getLimitedProofId() const
const std::vector< Level > & getLevels() const
static bool FromHex(Delegation &dg, const std::string &dgHex, bilingual_str &errorOut)
std::array< uint8_t, CPubKey::SCHNORR_SIZE > SchnorrSig
a Schnorr signature
bool verify(DelegationState &state, CPubKey &auth) const
const CPubKey & getProofMaster() const
SERIALIZE_METHODS(Delegation, obj)
Delegation(const LimitedProofId &limitedProofid_, const CPubKey &proofMaster_, const DelegationId &dgid_, std::vector< Level > levels_)
const CPubKey & getDelegatedPubkey() const
An encapsulated public key.
const DelegationId & getId() const
std::vector< Level > levels
#define SER_READ(obj, code)
constexpr size_t MAX_DELEGATION_LEVELS
The maximum number of delegation levels we are willing to verify.