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

pub fn key_has_purpose(
    from: &Address,
    decoded_key: H256,
    contract: &Contract<Http>
) -> bool

@dev Returns the TRUE if a key has is present and has the given purpose. If key is not present it returns FALSE. @param key keccack256 of original key. @param purpose purpose to check. @return exist True if exist, False if not.