From cedfa3cdaccac1db505e18956fc9c85a12edaea5 Mon Sep 17 00:00:00 2001 From: parazyd Date: Sun, 13 Aug 2023 16:29:19 +0200 Subject: [PATCH] zktool: Remove obsolete binary --- Cargo.lock | 21 ++++-------- Cargo.toml | 1 - bin/zktool/Cargo.toml | 15 --------- bin/zktool/src/main.rs | 72 ------------------------------------------ 4 files changed, 6 insertions(+), 103 deletions(-) delete mode 100644 bin/zktool/Cargo.toml delete mode 100644 bin/zktool/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index f69b35438..f56fd9bc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", -] diff --git a/Cargo.toml b/Cargo.toml index 28c3aea15..37cacb4f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,6 @@ members = [ "bin/tau/tau-cli", "bin/vanityaddr", "bin/lilith", - "bin/zktool", "src/sdk", "src/sdk/python", diff --git a/bin/zktool/Cargo.toml b/bin/zktool/Cargo.toml deleted file mode 100644 index 25002b86c..000000000 --- a/bin/zktool/Cargo.toml +++ /dev/null @@ -1,15 +0,0 @@ -[package] -name = "zktool" -version = "0.4.1" -homepage = "https://dark.fi" -description = "ZK multitool program" -authors = ["Dyne.org foundation "] -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"} - diff --git a/bin/zktool/src/main.rs b/bin/zktool/src/main.rs deleted file mode 100644 index 95a8429d5..000000000 --- a/bin/zktool/src/main.rs +++ /dev/null @@ -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 . - */ - -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, -} - -fn main() { - let args = CliDao::parse(); - match args.command { - Some(_) => { - println!("Some arg!"); - } - - None => todo!(), - } -}