37 releases (19 breaking)

new 0.28.0 Sep 21, 2023
0.26.1 Aug 22, 2023
0.25.0 Jul 5, 2023
0.23.2 Mar 21, 2023
0.2.0 Mar 4, 2021

#717 in Magic Beans

Download history 955/week @ 2023-06-06 753/week @ 2023-06-13 606/week @ 2023-06-20 643/week @ 2023-06-27 370/week @ 2023-07-04 427/week @ 2023-07-11 709/week @ 2023-07-18 483/week @ 2023-07-25 442/week @ 2023-08-01 511/week @ 2023-08-08 587/week @ 2023-08-15 532/week @ 2023-08-22 490/week @ 2023-08-29 329/week @ 2023-09-05 387/week @ 2023-09-12 289/week @ 2023-09-19

1,586 downloads per month
Used in 2 crates (via dfx-core)

Apache-2.0

180KB
3.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

~14–28MB
~498K SLoC