53 releases (30 breaking)

new 0.39.2 Dec 20, 2024
0.39.0 Oct 18, 2024
0.38.2 Sep 30, 2024
0.37.0 Jul 23, 2024
0.2.0 Mar 4, 2021

#19 in #dfinity

Download history 14/week @ 2024-08-29 2/week @ 2024-09-05 10/week @ 2024-09-12 687/week @ 2024-09-19 578/week @ 2024-09-26 348/week @ 2024-10-03 262/week @ 2024-10-10 837/week @ 2024-10-17 907/week @ 2024-10-24 748/week @ 2024-10-31 713/week @ 2024-11-07 1740/week @ 2024-11-14 1782/week @ 2024-11-21 1373/week @ 2024-11-28 630/week @ 2024-12-05 580/week @ 2024-12-12

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

Apache-2.0

330KB
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
~413K SLoC