Function std::crypto::alt_bn128::alt_bn128_mul
pub fn alt_bn128_mul(point: Point2D, scalar: Scalar) -> Point2D
Expand description
Performs an elliptic curve multiplication with a given curve, point, and scalar.
Additional Information
The Fuel VM currently only supports the Alt BN128 curve.
Arguments
point
: [Point2D] - The point used to perform the multiplication.scalar
: [Scalar] - The scalar used perform the multiplication.
Returns
- [Point2D] - The resulting computed point.
Examples
use std::{point2d::Point2D, scalar::Scalar, alt_bn128::alt_bn128_mul};
fn foo(point: Point2D, scalar: Scalar) {
let result = alt_bn128_mul(point, scalar);
assert(!result.is_zero());
}