void testPubKey(const char *testDescr, const CString &hexPubKey, const CString &address) { CBinBuffer pubkey = CBinBuffer::fromHex(hexPubKey); CKey key; key.setPublicKey(pubkey); test(testDescr, getBitcoinAddress(key) == address); }