Expand description

A crate to manage identities related to HSM (Hardware Security Module), allowing users to sign Internet Computer messages with their hardware key. Also supports SoftHSM.

Example

use ic_agent::agent::{Agent, http_transport::ReqwestHttpReplicaV2Transport};
use ic_identity_hsm::HardwareIdentity;
let agent = Agent::builder()
    .with_transport(ReqwestHttpReplicaV2Transport::create(replica_url)?)
    .with_identity(HardwareIdentity::new(lib_path, slot_index, key_id, || Ok("hunter2".to_string()))?)
    .build();

Structs

An identity based on an HSM

Enums

An error happened related to a HardwareIdentity.