Secp256k1Point class
Constructors
- Secp256k1Point({required Secp256k1Fp x, required Secp256k1Fp y, required Secp256k1Fp z})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEven → bool
-
no setteroverride
- isOdd → bool
-
no setteroverride
-
params
→ WeierstrassCurveParams<
Secp256k1Fp> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → Secp256k1Fp
-
final
- y → Secp256k1Fp
-
final
- z → Secp256k1Fp
-
final
Methods
-
cast<
T extends ECPoint< (Secp256k1Fr, Secp256k1Point> >) → T -
Casts this point to
T, throwingCastFailedExceptionon mismatch.override -
clearCofactor(
) → Secp256k1Point -
Multiplies this point by the cofactor, projecting it into the prime-order subgroup.
override
-
double(
) → Secp256k1Point -
override
-
from(
{required Secp256k1Fp x, required Secp256k1Fp y, required Secp256k1Fp z}) → Secp256k1Point -
override
-
generator(
) → Secp256k1Point -
identity(
) → Secp256k1Point -
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(
) → Secp256k1AffinePoint -
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 *(
Secp256k1Fr s) → Secp256k1Point -
override
-
operator +(
Secp256k1Point other) → Secp256k1Point -
override
-
operator -(
Secp256k1Point o) → Secp256k1Point -
override
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Secp256k1Point -
override
Static Properties
- identity_ → Secp256k1Point
-
final
- params_ → Secp256k1Params
-
final
Static Methods
-
conditionalSelect(
Secp256k1Point a, Secp256k1Point b, bool choice) → Secp256k1Point -
conditionalSelectMask(
Secp256k1Point a, Secp256k1Point b, Uint64 bit) → Secp256k1Point -
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) → Secp256k1Point -
fromCompressed(
List< int> b) → Secp256k1Point -
fromUncompressed(
List< int> b) → Secp256k1Point
Constants
- generator_ → const Secp256k1Point