Remove unused library bytecode from ethereum-schnorr-contract

This commit is contained in:
Luke Parker 2025-01-27 15:38:44 -05:00
parent 835b5bb06f
commit f004c8726f
No known key found for this signature in database
3 changed files with 0 additions and 15 deletions
Cargo.lock
networks/ethereum/schnorr

1
Cargo.lock generated
View file

@ -2656,7 +2656,6 @@ dependencies = [
"alloy-simple-request-transport",
"alloy-sol-types",
"build-solidity-contracts",
"const-hex",
"group",
"k256",
"rand_core",

View file

@ -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"] }

View file

@ -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;