12 releases

0.5.4 Aug 18, 2021
0.5.3 Dec 20, 2020
0.4.0 Sep 25, 2020
0.3.1 Apr 18, 2020
0.1.1 Feb 20, 2018

#6 in #ssb

Download history 35/week @ 2024-02-23 14/week @ 2024-03-01 6/week @ 2024-03-08 2/week @ 2024-03-15

57 downloads per month
Used in 2 crates

LGPL-3.0

13KB
197 lines

SSB-Keyfile

Keyfile operations for ssb: Read keys from a keyfile and create new keyfiles.

Creates and reads keyfiles that are compatible with the js ssb implementation.

let keypair = ssb_keyfile::generate_at_path("/path/to/secret")?;

let keypair = ssb_keyfile::read_from_path("/path/to/secret")?;
cargo install ssb-keyfile --all-features
ssb-keyfile new --path ~/.ssb-foo/secret
ssb-keyfile new --path ~/.ssb-bar/secret --secret XQfgelZViM6npy...

lib.rs:

Read ssb keyfiles, as created by the js implementation.

Re-exports [Keypair] from the ssb-crypto crate.

Dependencies

~1.8–2.8MB
~53K SLoC