45 releases (25 breaking)

0.34.0 Mar 18, 2024
0.32.0 Jan 18, 2024
0.31.0 Nov 27, 2023
0.25.0 Jul 5, 2023
0.2.0 Mar 4, 2021

#550 in Magic Beans

Download history 58/week @ 2023-12-23 118/week @ 2023-12-30 333/week @ 2024-01-06 342/week @ 2024-01-13 305/week @ 2024-01-20 411/week @ 2024-01-27 868/week @ 2024-02-03 870/week @ 2024-02-10 679/week @ 2024-02-17 551/week @ 2024-02-24 352/week @ 2024-03-02 302/week @ 2024-03-09 369/week @ 2024-03-16 170/week @ 2024-03-23 187/week @ 2024-03-30 211/week @ 2024-04-06

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

Apache-2.0

220KB
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

~17–30MB
~558K SLoC