Struct ethcore_builtin::Bn128Pairing
source · [−]pub struct Bn128Pairing;
Trait Implementations
sourceimpl Debug for Bn128Pairing
impl Debug for Bn128Pairing
sourceimpl Implementation for Bn128Pairing
impl Implementation for Bn128Pairing
sourcefn execute(
&self,
input: &[u8],
output: &mut BytesRef<'_>
) -> Result<(), &'static str>
fn execute(
&self,
input: &[u8],
output: &mut BytesRef<'_>
) -> Result<(), &'static str>
Can fail if: - input length is not a multiple of 192 - any of odd points does not belong to bn128 curve - any of even points does not belong to the twisted bn128 curve over the field F_p^2 = F_p[i] / (i^2 + 1)
Auto Trait Implementations
impl RefUnwindSafe for Bn128Pairing
impl Send for Bn128Pairing
impl Sync for Bn128Pairing
impl Unpin for Bn128Pairing
impl UnwindSafe for Bn128Pairing
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more