BN.BN128Arithmetic (bn v0.2.2)

Link to this section Summary

Link to this section Types

Specs

point() :: {BN.FQP.t(), BN.FQP.t()} | {BN.FQ.t(), BN.FQ.t()}

Link to this section Functions

Link to this function

add(point1, point2)

Specs

add(point(), point()) :: {:ok, point()} | {:error, String.t()}
Link to this function

add_points(point1, point2)

Specs

add_points(point(), point()) :: point()

Specs

double(point()) :: point()
Link to this function

mult(point, scalar)

Specs

mult(point(), integer()) :: {:ok, point()} | {:error, String.t()}
Link to this function

on_curve?(point)

Specs

on_curve?(point()) :: boolean() | no_return()