46 releases (26 breaking)

0.35.0 May 10, 2024
0.34.0 Mar 18, 2024
0.33.0 Feb 8, 2024
0.31.0 Nov 27, 2023
0.2.0 Mar 4, 2021

#416 in Magic Beans

Download history 409/week @ 2024-01-29 884/week @ 2024-02-05 873/week @ 2024-02-12 720/week @ 2024-02-19 537/week @ 2024-02-26 350/week @ 2024-03-04 265/week @ 2024-03-11 373/week @ 2024-03-18 151/week @ 2024-03-25 201/week @ 2024-04-01 283/week @ 2024-04-08 191/week @ 2024-04-15 277/week @ 2024-04-22 10/week @ 2024-04-29 204/week @ 2024-05-06 19/week @ 2024-05-13

514 downloads per month
Used in 2 crates (via dfx-core)

Apache-2.0

225KB
4.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

~19–30MB
~580K SLoC