ECDSAPrivateKey class
Represents an ECDSA (Elliptic Curve Digital Signature Algorithm) private key.
Constructors
- ECDSAPrivateKey.new(ECDSAPublicKey publicKey, BigInt secretMultiplier)
-
ECDSAPrivateKey.fromBytes(List<
int> bytes, ProjectiveECCPoint curve) -
Creates an ECDSA private key from bytes.
factory
-
ECDSAPrivateKey.fromBytesConst({required List<
int> bytes, EllipticCurveTypes type = EllipticCurveTypes.secp256k1}) -
Creates an ECDSA private key from bytes.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- publicKey → ECDSAPublicKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretMultiplier → BigInt
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
BigInt hash, BigInt randomK) → ECDSASignature - Signs a hash value using the private key.
-
toBytes(
) → List< int> - Converts the private key to bytes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override