19 levels.push_back({proofMaster, {}});
34 for (
auto &
l :
dg.levels) {
36 levels.push_back({
l.pubkey, {}});
50 auto hash =
ss.GetHash();
62 std::vector<Delegation::Level>
dglvls;
63 for (
size_t i = 1; i <
levels.size(); i++) {
An encapsulated secp256k1 private key.
An encapsulated public key.
A writer stream (for serialization) that computes a 256-bit hash.
LimitedProofId limitedProofid
std::vector< Delegation::Level > levels
bool addLevel(const CKey &delegatorKey, const CPubKey &delegatedPubKey)
DelegationBuilder(const LimitedProofId <dProofId, const CPubKey &proofMaster, const DelegationId &delegationId)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...