Crate ic_identity_hsm

Source
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;
use ic_identity_hsm::HardwareIdentity;
let agent = Agent::builder()
    .with_url(replica_url)
    .with_identity(HardwareIdentity::new(lib_path, slot_index, key_id, || Ok("hunter2".to_string()))?)
    .build();

Structs§

HardwareIdentity
An identity based on an HSM

Enums§

HardwareIdentityError
An error happened related to a HardwareIdentity.