55 releases (31 breaking)

new 0.40.0 Mar 17, 2025
0.39.2 Dec 20, 2024
0.39.0 Oct 18, 2024
0.37.0 Jul 23, 2024
0.2.0 Mar 4, 2021

#595 in Magic Beans

Download history 1319/week @ 2024-12-01 571/week @ 2024-12-08 668/week @ 2024-12-15 17/week @ 2024-12-22 35/week @ 2024-12-29 540/week @ 2025-01-05 635/week @ 2025-01-12 611/week @ 2025-01-19 1914/week @ 2025-01-26 4284/week @ 2025-02-02 2854/week @ 2025-02-09 2904/week @ 2025-02-16 3262/week @ 2025-02-23 2910/week @ 2025-03-02 2607/week @ 2025-03-09 2143/week @ 2025-03-16

11,006 downloads per month
Used in 4 crates (via dfx-core)

Apache-2.0

340KB
7K 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;
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();

Dependencies

~15–27MB
~426K SLoC