diff --git a/circom-proving/src/types.rs b/circom-proving/src/types.rs index b7fa55d..630b68b 100644 --- a/circom-proving/src/types.rs +++ b/circom-proving/src/types.rs @@ -312,7 +312,8 @@ impl TryFrom for ArkProof { } } -// Helper for converting a PrimeField to its U256 representation for Ethereum compatibility +// Helper for converting a PrimeField to its U256 representation for Ethereum +// compatibility fn u256_to_point(point: U256) -> Result { let mut buf = [0; 32]; point.to_little_endian(&mut buf); @@ -321,8 +322,8 @@ fn u256_to_point(point: U256) -> Result { F::from_repr(bigint).ok_or_else(|| CircomError::InvalidProofBytes.into()) } -// Helper for converting a PrimeField to its U256 representation for Ethereum compatibility -// (U256 reads data as big endian) +// Helper for converting a PrimeField to its U256 representation for Ethereum +// compatibility (U256 reads data as big endian) fn point_to_u256(point: F) -> Result { let point = point.into_repr(); let point_bytes = point.to_bytes_be(); diff --git a/evm-test-utils/src/anvil.rs b/evm-test-utils/src/anvil.rs index 7bdfd3e..f2e14fd 100644 --- a/evm-test-utils/src/anvil.rs +++ b/evm-test-utils/src/anvil.rs @@ -171,19 +171,22 @@ impl Anvil { self } - /// Sets the mnemonic which will be used when the `anvil` instance is launched. + /// Sets the mnemonic which will be used when the `anvil` instance is + /// launched. pub fn mnemonic>(mut self, mnemonic: T) -> Self { self.mnemonic = Some(mnemonic.into()); self } - /// Sets the block-time in seconds which will be used when the `anvil` instance is launched. + /// Sets the block-time in seconds which will be used when the `anvil` + /// instance is launched. pub fn block_time>(mut self, block_time: T) -> Self { self.block_time = Some(block_time.into()); self } - /// Sets the `fork-block-number` which will be used in addition to [`Self::fork`]. + /// Sets the `fork-block-number` which will be used in addition to + /// [`Self::fork`]. /// /// **Note:** if set, then this requires `fork` to be set as well pub fn fork_block_number>( @@ -194,9 +197,9 @@ impl Anvil { self } - /// Sets the `fork` argument to fork from another currently running Ethereum client - /// at a given block. Input should be the HTTP location and port of the other client, - /// e.g. `http://localhost:8545`. You can optionally specify the block to fork from + /// Sets the `fork` argument to fork from another currently running Ethereum + /// client at a given block. Input should be the HTTP location and port + /// of the other client, e.g. `http://localhost:8545`. You can optionally specify the block to fork from /// using an @ sign: `http://localhost:8545@1599200` pub fn fork>(mut self, fork: T) -> Self { self.fork = Some(fork.into()); @@ -221,7 +224,8 @@ impl Anvil { self } - /// Sets the timeout which will be used when the `anvil` instance is launched. + /// Sets the timeout which will be used when the `anvil` instance is + /// launched. pub fn timeout>(mut self, timeout: T) -> Self { self.timeout = Some(timeout.into()); self