Ed25519/EdDSA-specific curve operations, beyond the shared CurveApi.
- Implemented types
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pointLen → int
-
Compressed point length in bytes (curve-specific).
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalarLen → int
-
Scalar length in bytes (curve-specific).
no setterinherited
Methods
-
add(
List< int> a, List<int> b) → BuBytes -
Point addition; both pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
-
addVar(
List< int> a, List<int> b) → BuBytes - Point addition (variable-time); both 32-byte compressed. Returns 32-byte compressed point. Throws on invalid encoding.
-
doubleScalarMult(
List< int> s1, List<int> p1, List<int> s2, List<int> p2) → BuBytes - Computes s1·p1 + s2·p2; scalars 32-byte LE, points 32-byte compressed. Returns 32-byte compressed point. Throws on invalid input.
-
geDoubleScalarMultBasePointVar(
{required List< int> a, required List<int> g, required List<int> b}) → BuBytes -
a·B + b·P;
a/b32-byte LE scalars,g/b32-byte compressed points. Returns 32-byte compressed point. Throws on invalid input. -
geDoubleScalarMultPrecompPointVar(
List< int> a, List<List< aI, List<int> >int> b, List<List< bI) → BuBytesint> > -
a·A + b·B with precomputed tables
aI/bI(from geDsmPrecompVar); scalars 32-byte LE. Returns 32-byte compressed point. Throws on invalid input. -
geDsmPrecompVar(
List< int> p) → List<List< int> > -
Precomputes sliding-window table for
p(32-byte compressed) for the *_PrecompPointVar multis. Returns table rows. Throws on invalid point. -
generator(
) → BuBytes -
Generator point. Returns pointLen bytes, never null.
inherited
-
geTripleScalarMultBasePointVar(
{required List< int> a, required List<int> b, required List<List< bI, required List<int> >int> c, required List<List< cI}) → BuBytesint> > -
a·B + b·P + c·Q with precomputed
bI/cI; scalars 32-byte LE, points 32-byte compressed. Returns 32-byte compressed point. Throws on invalid input. -
geTripleScalarMultPrecompPointVar(
List< int> a, List<List< aI, List<int> >int> b, List<List< bI, List<int> >int> c, List<List< cI) → BuBytesint> > -
a·A + b·B + c·C with precomputed
aI/bI/cI; scalars 32-byte LE. Returns 32-byte compressed point. Throws on invalid input. -
hashToEc(
List< int> data) → BuBytes -
Maps 32-byte
datato a 32-byte compressed Edwards point (Elligator/hash-to-point). Throws on invalid length. -
identity(
) → BuBytes -
Identity (zero) point. Returns pointLen bytes, never null.
inherited
-
mul8(
List< int> point) → BuBytes -
Multiplies
point(32-byte compressed) by the cofactor 8. Returns 32-byte compressed point. Throws on invalid encoding. -
mul8Mult(
List< int> scalar, List<int> point) → BuBytes -
Fused
mul8(mult(scalar, point)): computes 8 * (scalar * point) without intermediate encoding;scalarandpointare 32-byte LE/compressed. Returns 32-byte compressed point. Throws on invalid input. Constant-time onscalar. -
mulAdd(
List< int> s1, List<int> p1, List<int> s2, List<int> p2) → BuBytes -
Computes s1·p1 + s2·p2; scalars scalarLen bytes, points pointLen bytes. Returns pointLen bytes. Throws on invalid input.
inherited
-
mult(
List< int> scalar, List<int> point) → BuBytes -
Scalar-times-point;
scalaris scalarLen bytes,pointis pointLen bytes. Returns pointLen bytes. Throws on invalid input.inherited -
multBase(
List< int> scalar) → BuBytes -
Scalar-times-generator;
scalaris scalarLen bytes. Returns pointLen bytes. Throws on invalid scalar/point.inherited -
neg(
List< int> point) → BuBytes -
Point negation; pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduceMultBase(
List< int> scalar) → BuBytes -
Reduces
scalar(any length, 32-byte LE) then multiplies by base. Returns 32-byte compressed point. Throws on invalid input. -
scAdd(
List< int> a, List<int> b) → BuBytes -
Scalar addition mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scAddVar(
List< int> a, List<int> b) → BuBytes - Scalar addition (variable-time); both 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
-
scCheck(
List< int> scalar) → bool -
True if
scalaris a canonically encoded scalar of scalarLen bytes, else false, never throws for length mismatch.inherited -
scIsNonZero(
List< int> s) → bool -
True if 32-byte LE
sis non-zero (and canonical), else false, never throws for bad length. -
scMul(
List< int> a, List<int> b) → BuBytes -
Scalar multiplication mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scMulAdd(
List< int> a, List<int> b, List<int> c) → BuBytes - Computes a·b + c; all 32-byte LE scalars. Returns 32-byte scalar. Throws on invalid scalar.
-
scMulAddVar(
List< int> scalar, List<int> scalar2, List<int> scalar3) → BuBytes - Computes scalar·scalar2 + scalar3 (variable-time); all 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
-
scMulSub(
List< int> a, List<int> b, List<int> c) → BuBytes - Computes a·b − c; all 32-byte LE scalars. Returns 32-byte scalar. Throws on invalid scalar.
-
scMulVar(
List< int> a, List<int> b) → BuBytes - Scalar multiplication (variable-time); both 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
-
scNeg(
List< int> s) → BuBytes -
Scalar negation mod n; scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scReduce(
List< int> s) → BuBytes -
Reduces arbitrary-length
smod n. Returns scalarLen bytes. Throws on empty input.inherited -
scReduce64(
List< int> s) → BuBytes -
Reduces 64-byte
smod L. Returns 32-byte LE scalar. Throws on invalid length. -
scSub(
List< int> a, List<int> b) → BuBytes -
Scalar subtraction mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scSubVar(
List< int> a, List<int> b) → BuBytes - Scalar subtraction (variable-time); both 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
-
sub(
List< int> a, List<int> b) → BuBytes -
Point subtraction; both pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited