From f004c8726f94633413d913f29d5a80327822b021 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 27 Jan 2025 15:38:44 -0500 Subject: [PATCH] Remove unused library bytecode from ethereum-schnorr-contract --- Cargo.lock | 1 - networks/ethereum/schnorr/Cargo.toml | 2 -- networks/ethereum/schnorr/src/lib.rs | 12 ------------ 3 files changed, 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 014a6d40..42401961 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2656,7 +2656,6 @@ dependencies = [ "alloy-simple-request-transport", "alloy-sol-types", "build-solidity-contracts", - "const-hex", "group", "k256", "rand_core", diff --git a/networks/ethereum/schnorr/Cargo.toml b/networks/ethereum/schnorr/Cargo.toml index 5883a453..42797bb7 100644 --- a/networks/ethereum/schnorr/Cargo.toml +++ b/networks/ethereum/schnorr/Cargo.toml @@ -16,8 +16,6 @@ rustdoc-args = ["--cfg", "docsrs"] workspace = true [dependencies] -const-hex = { version = "1", default-features = false, features = ["std", "core-error"] } - subtle = { version = "2", default-features = false, features = ["std"] } sha3 = { version = "0.10", default-features = false, features = ["std"] } group = { version = "0.13", default-features = false, features = ["alloc"] } diff --git a/networks/ethereum/schnorr/src/lib.rs b/networks/ethereum/schnorr/src/lib.rs index ec6f6277..4e2d6883 100644 --- a/networks/ethereum/schnorr/src/lib.rs +++ b/networks/ethereum/schnorr/src/lib.rs @@ -3,18 +3,6 @@ #![deny(missing_docs)] #![allow(non_snake_case)] -/// The initialization bytecode of the Schnorr library. -pub const BYTECODE: &[u8] = { - const BYTECODE_HEX: &[u8] = - include_bytes!(concat!(env!("OUT_DIR"), "/ethereum-schnorr-contract/Schnorr.bin")); - const BYTECODE: [u8; BYTECODE_HEX.len() / 2] = - match const_hex::const_decode_to_array::<{ BYTECODE_HEX.len() / 2 }>(BYTECODE_HEX) { - Ok(bytecode) => bytecode, - Err(_) => panic!("Schnorr.bin did not contain valid hex"), - }; - &BYTECODE -}; - mod public_key; pub use public_key::PublicKey; mod signature;