Secp256r1Fr class

Inheritance
Mixed-in types

Constructors

Secp256r1Fr(List<Uint64> limbs)
Secp256r1Fr.conditionalSelect(Secp256r1Fr a, Secp256r1Fr b, bool c)
factory
Secp256r1Fr.conditionalSelectMask(Secp256r1Fr a, Secp256r1Fr b, Uint64 bit)
Mask form of conditionalSelect: bit is a 0/1 Uint64 (never a bool), so the whole select is straight-line limb arithmetic.
factory
Secp256r1Fr.from(Uint64 v)
factory
Secp256r1Fr.fromBytes(List<int> b, {Endian endian = Endian.big})
factory
Secp256r1Fr.fromBytes64(List<int> b)
factory
Secp256r1Fr.fromBytesUnchecked(List<int> b, {Endian endian = Endian.big})
factory
Secp256r1Fr.fromRaw(List<Uint64> v)
factory
Secp256r1Fr.montgomeryReduce(Uint64 r0, Uint64 r1, Uint64 r2, Uint64 r3, Uint64 r4, Uint64 r5, Uint64 r6, Uint64 r7)
factory
Secp256r1Fr.unsafe(List<Uint64> limbs)
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
limbs → List<Uint64>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variables → List
no setteroverride

Methods

add(Secp256r1Fr rhs) → Secp256r1Fr
double() → Secp256r1Fr
override
invert() → Secp256r1Fr?
override
isZero() → bool
override
mul(Secp256r1Fr rhs) → Secp256r1Fr
neg() → Secp256r1Fr
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(List<Uint64> by) → Secp256r1Fr
powVartime(List<Uint64> by) → Secp256r1Fr
sqrt() → FieldSqrtResult<Secp256r1Fr>
override
square() → Secp256r1Fr
override
sub(Secp256r1Fr rhs) → Secp256r1Fr
subMod() → Secp256r1Fr
toBytes({Endian endian = Endian.big}) → BuBytes
override
toString() → String
A string representation of this object.
inherited

Operators

operator *(Secp256r1Fr o) → Secp256r1Fr
override
operator +(Secp256r1Fr o) → Secp256r1Fr
override
operator -(Secp256r1Fr o) → Secp256r1Fr
override
operator ==(Object other) → bool
The equality operator.
override
operator unary-() → Secp256r1Fr
override

Constants

one → const Secp256r1Fr
r → const Secp256r1Fr
r2 → const Secp256r1Fr
r3 → const Secp256r1Fr
zero → const Secp256r1Fr