[][src]Function caelum_id::controllers::keys::get_key

pub fn get_key(
    from: &Address,
    decoded_key: H256,
    contract: &Contract<Http>
) -> Option<Key>

@dev Returns the key data, if hold by the identity. @param key keccack256 of original key. @return Purpose e.g., MANAGEMENT_KEY = 1, ACTION_KEY = 2, CLAIM_SIGNER_KEY = 3, ENCRYPTION_KEY = 4; @return keyType e.g. 1 = ECDSA, 2 = RSA, etc. @return The key.