48 releases (28 breaking)

0.37.0 Jul 23, 2024
0.35.0 May 10, 2024
0.34.0 Mar 18, 2024
0.31.0 Nov 27, 2023
0.2.0 Mar 4, 2021

#20 in #dfinity


Used in 2 crates (via dfx-core)

Apache-2.0

240KB
5K SLoC

ic-identity-hsm is 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.


lib.rs:

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();

Dependencies

~18–28MB
~544K SLoC