52 releases (30 breaking)

0.39.0 Oct 18, 2024
0.37.0 Jul 23, 2024
0.34.0 Mar 18, 2024
0.31.0 Nov 27, 2023
0.2.0 Mar 4, 2021

#20 in #dfinity

Download history 340/week @ 2024-07-23 121/week @ 2024-07-30 2/week @ 2024-08-06 9/week @ 2024-08-27 8/week @ 2024-09-03 7/week @ 2024-09-10 396/week @ 2024-09-17 619/week @ 2024-09-24 480/week @ 2024-10-01 355/week @ 2024-10-08 408/week @ 2024-10-15 1185/week @ 2024-10-22 597/week @ 2024-10-29 698/week @ 2024-11-05

2,938 downloads per month
Used in 4 crates (via dfx-core)

Apache-2.0

320KB
6.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;
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
~411K SLoC