18 : limitedProofid(ltdProofId), dgid(delegationId) {
19 levels.push_back({proofMaster, {}});
34 for (
auto &l : dg.
levels) {
36 levels.push_back({l.pubkey, {}});
41 const CPubKey &delegatedPubKey) {
49 ss << delegatedPubKey;
57 levels.push_back({delegatedPubKey, {}});
62 std::vector<Delegation::Level> dglvls;
63 for (
size_t i = 1; i <
levels.size(); i++) {
An encapsulated secp256k1 private key.
CPubKey GetPubKey() const
Compute the public key from a private key.
bool SignSchnorr(const uint256 &hash, SchnorrSig &sig, uint32_t test_case=0) const
Create a Schnorr signature.
An encapsulated public key.
uint256 GetHash() const
Get the 256-bit hash of this 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)
std::vector< Level > levels