diff --git a/ethcore/src/builtin.rs b/ethcore/src/builtin.rs index 88cf357a31e..32087be9678 100644 --- a/ethcore/src/builtin.rs +++ b/ethcore/src/builtin.rs @@ -158,7 +158,7 @@ fn ethereum_builtin(name: &str) -> Box { "modexp" => Box::new(ModexpImpl) as Box, "bn128_add" => Box::new(Bn128AddImpl) as Box, "bn128_mul" => Box::new(Bn128MulImpl) as Box, - "bn128_pairing" => Box::new(Bn128ParingImpl) as Box, + "bn128_pairing" => Box::new(Bn128PairingImpl) as Box, _ => panic!("invalid builtin name: {}", name), } } @@ -193,7 +193,7 @@ struct Bn128AddImpl; struct Bn128MulImpl; #[derive(Debug)] -struct Bn128ParingImpl; +struct Bn128PairingImpl; impl Impl for Identity { fn execute(&self, input: &[u8], output: &mut BytesRef) -> Result<(), Error> { @@ -429,7 +429,7 @@ mod bn128_gen { } } -impl Impl for Bn128ParingImpl { +impl Impl for Bn128PairingImpl { /// Can fail if: /// - input length is not a multiple of 192 /// - any of odd points does not belong to bn128 curve