lair_keystore_api
Secret lair private keystore API library.
This library crate contains most of the logic for dealing with lair.
- If you wish to run an in-process / in-memory keystore, or connect to an external lair keystore as a client, this is the library for you.
- If you want to run the canonical lair-keystore, see the lair_keystore crate.
- If you want to run a canonical lair-keystore in-process, using the canonical sqlcipher database, see the lair_keystore crate.
- See the [lair_api] module for information about the lair_keystore_api protocol.
- See [LairClient] for the client struct api.
Establishing a client connection to a canonical ipc keystore binary:
use *;
use *;
// create a client connection
let client =
ipc_keystore_connect
.await
.unwrap;
// create a new seed
let seed_info = client.new_seed.await.unwrap;
// sign some data
let sig = client.sign_by_pub_key.await.unwrap;
// verify the signature
assert!;
License: MIT OR Apache-2.0