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.

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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