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
3 changed files with 0 additions and 15 deletions

1
Cargo.lock generated
View File

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

View File

@@ -16,8 +16,6 @@ rustdoc-args = ["--cfg", "docsrs"]
workspace = true workspace = true
[dependencies] [dependencies]
const-hex = { version = "1", default-features = false, features = ["std", "core-error"] }
subtle = { version = "2", default-features = false, features = ["std"] } subtle = { version = "2", default-features = false, features = ["std"] }
sha3 = { version = "0.10", default-features = false, features = ["std"] } sha3 = { version = "0.10", default-features = false, features = ["std"] }
group = { version = "0.13", default-features = false, features = ["alloc"] } group = { version = "0.13", default-features = false, features = ["alloc"] }

View File

@@ -3,18 +3,6 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![allow(non_snake_case)] #![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; mod public_key;
pub use public_key::PublicKey; pub use public_key::PublicKey;
mod signature; mod signature;