0

I've tried to print via:

void printQuorumSet ( SCPQuorumSet set )
{
    for (auto validator: set.validators)
        std::cout << validator << ' ';
}

But that gives me:

scp/test/QuorumSetTests.cpp:20:19: error: invalid operands to binary expression ('std::__1::ostream'
  (aka 'basic_ostream<char>') and 'stellar::PublicKey')

I don't see any toString / pretty / format code that can help me print out the key.

0

Well it looks like I found the answer: KeyUtils::toStrKey(pk)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.