RistrettoCurveApi class abstract interface

Ristretto group 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
generator() → BuBytes
Generator point. Returns pointLen bytes, never null.
inherited
identity() → BuBytes
Identity (zero) point. Returns pointLen bytes, never null.
inherited
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; scalar is scalarLen bytes, point is pointLen bytes. Returns pointLen bytes. Throws on invalid input.
inherited
multBase(List<int> scalar) → BuBytes
Scalar-times-generator; scalar is 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
pointFromEdwardBytes(List<int> edwards32) → BuBytes
Converts 32-byte Edwards compressed edwards32 to 32-byte Ristretto bytes. Throws on invalid encoding.
scAdd(List<int> a, List<int> b) → BuBytes
Scalar addition mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
scCheck(List<int> scalar) → bool
True if scalar is a canonically encoded scalar of scalarLen bytes, else false, never throws for length mismatch.
inherited
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.
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.
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 s mod n. Returns scalarLen bytes. Throws on empty input.
inherited
scReduce64(List<int> s) → BuBytes
Reduces 64-byte s mod 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
sub(List<int> a, List<int> b) → BuBytes
Point subtraction; both pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
toEdwardBytes(List<int> ristretto32) → BuBytes
Converts 32-byte Ristretto ristretto32 to 32-byte Edwards compressed bytes. Throws on invalid encoding.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited