Scalar class

A class representing a scalar value in the elliptic curve field

Constructors

Scalar(BigInt value, BigInt order)

Properties

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

Methods

add(Scalar other) Scalar
Add two scalars
inv() Scalar
Get multiplicative inverse
mul(Scalar other) Scalar
Multiply two scalars
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
Convert Scalar to bytes
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromBytes(Uint8List bytes, [BigInt? order]) Scalar
Create a Scalar from bytes