MCPcopy Create free account
hub / github.com/cryptonomex/graphene / getKeyLabel

Method getKeyLabel

programs/light_client/Wallet.cpp:320–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319
320QString Wallet::getKeyLabel(QString pubkey)
321{
322 if( !isOpen() ) return QString();
323 public_key_type key = fc::variant( pubkey.toStdString() ).as<public_key_type>();
324 auto itr = _data.encrypted_private_keys.find(key);
325 if( itr == _data.encrypted_private_keys.end() )
326 return QString();
327 return QString::fromStdString(itr->second.label);
328}
329/**
330 * The same label may not be assigned to more than one key, this method will
331 * fail if a key with the same label already exists.

Callers

nothing calls this directly

Calls 3

variantClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected