RistrettoUtils class

Constructors

RistrettoUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

invSqrt BigInt
The modular inverse of the square root (1/sqrt(a*d)) in the Ristretto255 curve field.
final
mask255 BigInt
A mask for the least significant 255 bits, used for bitwise operations.
final
minusOneSq BigInt
The square of -1 in the Ristretto255 curve field.
final
oneMinusDSq BigInt
The value 1 - d^2 in the Ristretto255 curve field.
final
sqrtAdMinusOne BigInt
The value (a*d) - 1 in the Ristretto255 curve field.
final
sqrtM1 BigInt
Helper methods for Ristretto255 operations. The square root of -1 in the Ristretto255 curve field.
final

Static Methods

isOdd(BigInt num, BigInt modulo) bool
Check if a BigInt number is odd with respect to a given modulo.
positiveMod(BigInt a, BigInt b) BigInt
Calculates the positive remainder of two BigInt values.
sqrtUV(BigInt u, BigInt v) Tuple<bool, BigInt>
sqrt u/v