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
1,586 downloads per month
Used in 2 crates
(via dfx-core)
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.
Useful links
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