mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 15:17:57 -05:00
zktool: Remove obsolete binary
This commit is contained in:
21
Cargo.lock
generated
21
Cargo.lock
generated
@@ -3271,9 +3271,9 @@ checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904"
|
||||
|
||||
[[package]]
|
||||
name = "httpdate"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
|
||||
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
|
||||
|
||||
[[package]]
|
||||
name = "humantime"
|
||||
@@ -3632,9 +3632,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "log"
|
||||
version = "0.4.19"
|
||||
version = "0.4.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"
|
||||
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
||||
dependencies = [
|
||||
"value-bag",
|
||||
]
|
||||
@@ -4802,9 +4802,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ratatui"
|
||||
version = "0.22.1-alpha.0"
|
||||
version = "0.22.1-alpha.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0db8ededd1590a8b4f433b9168c05a9e73c5331c244c8329e5227ee954c5251d"
|
||||
checksum = "dca655e08c94a8ee4645d60bed7ab2fe94947d7fd78644813917373553a8305a"
|
||||
dependencies = [
|
||||
"bitflags 2.4.0",
|
||||
"cassowary",
|
||||
@@ -7841,12 +7841,3 @@ dependencies = [
|
||||
"clap 4.3.21",
|
||||
"darkfi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zktool"
|
||||
version = "0.4.1"
|
||||
dependencies = [
|
||||
"clap 4.3.21",
|
||||
"darkfi",
|
||||
"darkfi-sdk",
|
||||
]
|
||||
|
||||
@@ -34,7 +34,6 @@ members = [
|
||||
"bin/tau/tau-cli",
|
||||
"bin/vanityaddr",
|
||||
"bin/lilith",
|
||||
"bin/zktool",
|
||||
|
||||
"src/sdk",
|
||||
"src/sdk/python",
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[package]
|
||||
name = "zktool"
|
||||
version = "0.4.1"
|
||||
homepage = "https://dark.fi"
|
||||
description = "ZK multitool program"
|
||||
authors = ["Dyne.org foundation <foundation@dyne.org>"]
|
||||
repository = "https://github.com/darkrenaissance/darkfi"
|
||||
license = "AGPL-3.0-only"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
clap = {version = "4.3.21", features = ["derive"]}
|
||||
darkfi = {path = "../../", features = ["zkas"]}
|
||||
darkfi-sdk = {path = "../../src/sdk"}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/* This file is part of DarkFi (https://dark.fi)
|
||||
*
|
||||
* Copyright (C) 2020-2023 Dyne.org foundation
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
#[derive(Subcommand)]
|
||||
pub enum CliSubCommands {
|
||||
/// Create a random Base value
|
||||
Random {},
|
||||
/// Convert int to Base
|
||||
FromInt {
|
||||
value: u64,
|
||||
},
|
||||
Add {
|
||||
value_a: String,
|
||||
value_b: String,
|
||||
},
|
||||
Sub {
|
||||
value_a: String,
|
||||
value_b: String,
|
||||
},
|
||||
Mul {
|
||||
value_a: String,
|
||||
value_b: String,
|
||||
},
|
||||
MakeProof {
|
||||
bincode: String,
|
||||
witness: String,
|
||||
publics: String,
|
||||
},
|
||||
VerifyProof {
|
||||
bincode: String,
|
||||
publics: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(name = "zktool")]
|
||||
#[clap(arg_required_else_help(true))]
|
||||
pub struct CliDao {
|
||||
/// Increase verbosity
|
||||
#[clap(short, action = clap::ArgAction::Count)]
|
||||
pub verbose: u8,
|
||||
#[clap(subcommand)]
|
||||
pub command: Option<CliSubCommands>,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args = CliDao::parse();
|
||||
match args.command {
|
||||
Some(_) => {
|
||||
println!("Some arg!");
|
||||
}
|
||||
|
||||
None => todo!(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user