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

pub fn add_key(
    _key: Key,
    _gas_price: &U256,
    from: &Address,
    contract: &Contract<Http>
) -> Result<String, &'static str>

@dev Adds a _key to the identity. The _purpose specifies the purpose of key. Initially we propose four purposes @param _key Struct Key containing the key to add info. @param from Address from @gas_price U256 Ammount og ethers to pay gor each Gwei @return Key data structure that has been added and the tx_hash.