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

Structs§

Enums§