mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-11 02:03:07 +00:00
fmt
This commit is contained in:
parent
dd29ec1f46
commit
1367f9bcca
@ -18,12 +18,15 @@ pub(crate) mod txn_fields;
|
||||
/// Constants that are accessible to our kernel assembly code.
|
||||
pub fn evm_constants() -> HashMap<String, U256> {
|
||||
let mut c = HashMap::new();
|
||||
|
||||
let hex_constants = MISC_CONSTANTS.iter().chain(EC_CONSTANTS.iter()).chain(HASH_CONSTANTS.iter());
|
||||
|
||||
let hex_constants = MISC_CONSTANTS
|
||||
.iter()
|
||||
.chain(EC_CONSTANTS.iter())
|
||||
.chain(HASH_CONSTANTS.iter());
|
||||
for (name, value) in hex_constants {
|
||||
c.insert(name.clone().into(), U256::from_big_endian(value));
|
||||
}
|
||||
|
||||
|
||||
for (name, value) in GAS_CONSTANTS {
|
||||
c.insert(name.into(), U256::from(value));
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
use anyhow::Result;
|
||||
use blake::{hash as blake_hash};
|
||||
use blake::hash as blake_hash;
|
||||
use ethereum_types::U256;
|
||||
use rand::{thread_rng, Rng};
|
||||
use ripemd::{Digest, Ripemd160};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user