mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-05-04 01:03:09 +00:00
cleanup
This commit is contained in:
parent
f6af5240bd
commit
2e62ac1b63
@ -84,14 +84,6 @@ pub(crate) fn combined_kernel() -> Kernel {
|
|||||||
include_str!("asm/mpt/storage/storage_read.asm"),
|
include_str!("asm/mpt/storage/storage_read.asm"),
|
||||||
include_str!("asm/mpt/storage/storage_write.asm"),
|
include_str!("asm/mpt/storage/storage_write.asm"),
|
||||||
include_str!("asm/mpt/util.asm"),
|
include_str!("asm/mpt/util.asm"),
|
||||||
include_str!("asm/ripemd/box.asm"),
|
|
||||||
include_str!("asm/ripemd/compression.asm"),
|
|
||||||
include_str!("asm/ripemd/constants.asm"),
|
|
||||||
include_str!("asm/ripemd/functions.asm"),
|
|
||||||
include_str!("asm/ripemd/main.asm"),
|
|
||||||
include_str!("asm/ripemd/memory.asm"),
|
|
||||||
include_str!("asm/ripemd/update.asm"),
|
|
||||||
include_str!("asm/rlp/encode.asm"),
|
|
||||||
include_str!("asm/rlp/decode.asm"),
|
include_str!("asm/rlp/decode.asm"),
|
||||||
include_str!("asm/rlp/encode.asm"),
|
include_str!("asm/rlp/encode.asm"),
|
||||||
include_str!("asm/rlp/encode_rlp_string.asm"),
|
include_str!("asm/rlp/encode_rlp_string.asm"),
|
||||||
|
|||||||
@ -19,9 +19,8 @@ pub(crate) mod txn_fields;
|
|||||||
pub fn evm_constants() -> HashMap<String, U256> {
|
pub fn evm_constants() -> HashMap<String, U256> {
|
||||||
let mut c = HashMap::new();
|
let mut c = HashMap::new();
|
||||||
|
|
||||||
let hex_constants = MISC_CONSTANTS
|
let hex_constants = EC_CONSTANTS
|
||||||
.iter()
|
.iter()
|
||||||
.chain(EC_CONSTANTS.iter())
|
|
||||||
.chain(HASH_CONSTANTS.iter())
|
.chain(HASH_CONSTANTS.iter())
|
||||||
.cloned();
|
.cloned();
|
||||||
for (name, value) in hex_constants {
|
for (name, value) in hex_constants {
|
||||||
@ -54,15 +53,12 @@ pub fn evm_constants() -> HashMap<String, U256> {
|
|||||||
c
|
c
|
||||||
}
|
}
|
||||||
|
|
||||||
const MISC_CONSTANTS: [(&str, [u8; 32]); 1] = [
|
const HASH_CONSTANTS: [(&str, [u8; 32]); 2] = [
|
||||||
// 2^64
|
// Hash of an empty string: keccak(b'').hex()
|
||||||
(
|
(
|
||||||
"BLAKE_WORD_SIZE",
|
"EMPTY_STRING_HASH",
|
||||||
hex!("0000000000000000000000000000000000000000000000010000000000000000"),
|
hex!("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"),
|
||||||
),
|
),
|
||||||
];
|
|
||||||
|
|
||||||
const HASH_CONSTANTS: [(&str, [u8; 32]); 1] = [
|
|
||||||
// Hash of an empty node: keccak(rlp.encode(b'')).hex()
|
// Hash of an empty node: keccak(rlp.encode(b'')).hex()
|
||||||
(
|
(
|
||||||
"EMPTY_NODE_HASH",
|
"EMPTY_NODE_HASH",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user