-
- Downloads
add vault (!22)
* move into function * remove unnecessary complexity * wip add phrase generation * prepare 0.2.7 release * remove dep * add predefined keys and update doc * wip add save from cmd line * improve error management * allow to store password-protected secret * wip use rage for password-encrypted keys * wip poc for keystore
Showing
- Cargo.lock 374 additions, 3 deletionsCargo.lock
- Cargo.toml 11 additions, 3 deletionsCargo.toml
- README.md 1 addition, 1 deletionREADME.md
- doc/config.md 53 additions, 8 deletionsdoc/config.md
- doc/example.md 5 additions, 7 deletionsdoc/example.md
- src/commands.rs 1 addition, 0 deletionssrc/commands.rs
- src/commands/vault.rs 118 additions, 0 deletionssrc/commands/vault.rs
- src/conf.rs 5 additions, 12 deletionssrc/conf.rs
- src/data.rs 38 additions, 42 deletionssrc/data.rs
- src/keys.rs 34 additions, 4 deletionssrc/keys.rs
- src/main.rs 8 additions, 4 deletionssrc/main.rs
... | @@ -9,7 +9,7 @@ rust-version = "1.75.0" | ... | @@ -9,7 +9,7 @@ rust-version = "1.75.0" |
license = "AGPL-3.0-only" | license = "AGPL-3.0-only" | ||
name = "gcli" | name = "gcli" | ||
repository = "https://git.duniter.org/clients/rust/gcli-v2s" | repository = "https://git.duniter.org/clients/rust/gcli-v2s" | ||
version = "0.2.6" | version = "0.2.7" | ||
[dependencies] | [dependencies] | ||
# subxt is main dependency | # subxt is main dependency | ||
... | @@ -18,9 +18,11 @@ subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.34.0-duni | ... | @@ -18,9 +18,11 @@ subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.34.0-duni |
"native", | "native", | ||
"jsonrpsee", | "jsonrpsee", | ||
] } | ] } | ||
# substrate primitives dependencies | # substrate primitives dependencies | ||
sp-core = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.6.0" } | sp-core = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.6.0" } | ||
sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.6.0" } | sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.6.0" } | ||
# crates.io dependencies | # crates.io dependencies | ||
anyhow = "^1.0" | anyhow = "^1.0" | ||
clap = { version = "^4.5.0", features = ["derive"] } | clap = { version = "^4.5.0", features = ["derive"] } | ||
... | @@ -36,10 +38,16 @@ serde = { version = "^1.0", features = ["derive"] } | ... | @@ -36,10 +38,16 @@ serde = { version = "^1.0", features = ["derive"] } |
serde_json = "^1.0.113" | serde_json = "^1.0.113" | ||
tokio = { version = "^1.36.0", features = ["macros"] } | tokio = { version = "^1.36.0", features = ["macros"] } | ||
confy = "^0.5.1" | confy = "^0.5.1" | ||
scrypt = { version = "^0.11", default-features = false } # for old-style key generation | |||
nacl = { version = "^0.5.3" } # for old-style key generation | |||
bs58 = "^0.5.0" | bs58 = "^0.5.0" | ||
inquire = "^0.6.2" | inquire = "^0.6.2" | ||
directories = "^5.0.1" | |||
# crypto | |||
scrypt = { version = "^0.11", default-features = false } # for old-style key generation | |||
nacl = { version = "^0.5.3" } # for old-style key generation | |||
# this is beta crate for password-encrypted files | |||
age = { default-features = false, version = "^0.10.0", features = ["armor"] } | |||
bip39 = { version = "^2.0.0", features = ["rand"] } # mnemonic | |||
# allows to build gcli for different runtimes and with different predefined networks | # allows to build gcli for different runtimes and with different predefined networks | ||
[features] | [features] | ||
... | ... |
src/commands/vault.rs
0 → 100644
Please register or sign in to comment