Secp256r1Point class
Constructors
- Secp256r1Point({required Secp256r1Fp x, required Secp256r1Fp y, required Secp256r1Fp z})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEven → bool
-
no setteroverride
- isOdd → bool
-
no setteroverride
-
params
→ WeierstrassCurveParams<
Secp256r1Fp> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → Secp256r1Fp
-
final
- y → Secp256r1Fp
-
final
- z → Secp256r1Fp
-
final
Methods
-
cast<
T extends ECPoint< (Secp256r1Fr, Secp256r1Point> >) → T -
Casts this point to
T, throwingCastFailedExceptionon mismatch.override -
clearCofactor(
) → Secp256r1Point -
Multiplies this point by the cofactor, projecting it into the prime-order subgroup.
override
-
double(
) → Secp256r1Point -
override
-
from(
{required Secp256r1Fp x, required Secp256r1Fp y, required Secp256r1Fp z}) → Secp256r1Point -
override
-
generator(
) → Secp256r1Point -
identity(
) → Secp256r1Point -
override
-
isIdentity(
) → bool -
override
-
isOnCurve(
) → bool -
override
-
isSmallOrder(
) → bool -
Whether this point has small order (lies in the cofactor subgroup).
override
-
isZero(
) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recommendedWnafForNumScalars(
int total) → int -
override
-
toAffine(
) → Secp256r1AffinePoint -
toBytes(
[CryptoKeyEncoding encoding = CryptoKeyEncoding.base]) → BuBytes -
SEC1 decoding with the same identity convention as
ProjectiveECCPoint: lone0x00and all-zero 33/65-byte buffers decode to infinity (and infinity encodes back to those zero buffers via toBytes). Non-identity inputs are strictly validated (canonical range via field decoding plus an explicit on-curve check, including for the raw 64-byte form).override -
toCompressed(
) → BuBytes -
toString(
) → String -
A string representation of this object.
inherited
-
toUncompressed(
) → BuBytes -
override
-
toXOnly(
) → BuBytes -
override
Operators
-
operator *(
Secp256r1Fr s) → Secp256r1Point -
override
-
operator +(
Secp256r1Point other) → Secp256r1Point -
override
-
operator -(
Secp256r1Point o) → Secp256r1Point -
override
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Secp256r1Point -
override
Static Properties
- generator_ → Secp256r1Point
-
final
- identity_ → Secp256r1Point
-
final
- params_ → Secp256r1Params
-
final
Static Methods
-
conditionalSelect(
Secp256r1Point a, Secp256r1Point b, bool choice) → Secp256r1Point -
conditionalSelectMask(
Secp256r1Point a, Secp256r1Point b, Uint64 bit) → Secp256r1Point -
Mask form of conditionalSelect:
bitis a 0/1 Uint64 (never abool), so point addition and scalar multiplication stay straight-line on secret data. -
fromBytes(
List< int> data) → Secp256r1Point -
fromCompressed(
List< int> b) → Secp256r1Point -
fromUncompressed(
List< int> b) → Secp256r1Point