mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Remove unused library bytecode from ethereum-schnorr-contract
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -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"] }
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user