Ed25519Utils class

Utility class for Ed25519-specific operations.

Constructors

Ed25519Utils.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 Methods

add(List<int> scalar1, List<int> scalar2) List<int>
add two scalar r = a+b
asPoint(List<int> point) EDPoint
convert valid ed25519 to EDPoint.
asScalarInt(List<int> scalar) BigInt
check and convert scalar bytes to BigInteger
isValidPoint(List<int> bytes) bool
check bytes is valid ed25519 point.
mul(List<int> scalar1, List<int> scalar2) List<int>
mul two scalar r = a*b
mulAdd(List<int> scalar1, List<int> scalar2, List<int> scalar3) List<int>
mul and then add scalar r = a*b+c
mulSub(List<int> scalar1, List<int> scalar2, List<int> scalar3) List<int>
mul and then sub scalar r = a*b-c
mybeAsPoint(List<int> point) EDPoint?
neg(List<int> scalar) List<int>
Negates a scalar.
pointAdd(List<int> point1, List<int> point2) List<int>
add two point r = P+P1
pointScalarMult(List<int> point, List<int> scalar) List<int>
mul point with scalar r = P*a
scAddVar(List<int> scalar, List<int> scalar2) List<int>
scAddVarBig(List<int> scalar, BigInt scalar2) List<int>
scalarAsBig(List<int> scalar) BigInt
scalarmult8Const(List<int> p) List<int>
mul scalar with 8 r = a*8;
scalarMultBase(List<int> scalar) List<int>
reduce scalar and mult with base.
scalarReduceConst(List<int> scalar) List<int>
reduce scalar constant-time
scalarReduceVar(List<int> scalar) List<int>
reduce scalar
scCheck(List<int> bytes) bool
check scalar is valid
scCheckVar(List<int> scalar) bool
scIsZero(List<int> scalar) bool
check scalar is zero
scMulAddVar(List<int> scalar, List<int> scalar2, List<int> scalar3) List<int>
scMulVar(List<int> scalar, List<int> scalar2) List<int>
scMulVarBigInt(List<int> scalar, BigInt scalar2) List<int>
scSubVar(List<int> scalar, List<int> scalar2) List<int>
scSubVarBigInt(List<int> scalar, BigInt scalar2) List<int>
secretKeyToPubKey({required List<int> secretKey}) List<int>
generate public key from valid secret scalar bytes.
sub(List<int> scalar1, List<int> scalar2) List<int>
sub two scalar r = a-b
zero() List<int>
create 32 bytes zero.