Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/delegationbuilder.h
Show All 22 Lines | class DelegationBuilder { | ||||
std::vector<Delegation::Level> levels; | std::vector<Delegation::Level> levels; | ||||
public: | public: | ||||
explicit DelegationBuilder(const Proof &p); | explicit DelegationBuilder(const Proof &p); | ||||
bool importDelegation(const Delegation &d); | bool importDelegation(const Delegation &d); | ||||
bool addLevel(const CKey &key, const CPubKey &newMaster); | bool addLevel(const CKey &delegatorKey, const CPubKey &delegatedPubKey); | ||||
Delegation build() const; | Delegation build() const; | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_DELEGATIONBUILDER_H | #endif // BITCOIN_AVALANCHE_DELEGATIONBUILDER_H |