IPrivateKey class abstract
An abstract class representing a generic private key interface for different elliptic curve types.
Constructors
-
IPrivateKey.fromBytes(List<
int> keyBytes, EllipticCurveTypes type) -
Factory method for creating an IPrivateKey instance from a byte array and an elliptic curve type.
factory
- IPrivateKey.fromHex(String keyHex, EllipticCurveTypes type)
-
factory
Properties
- curve → EllipticCurveTypes
-
Get the elliptic curve type associated with the private key.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Get the length of the private key in bytes.
no setter
- publicKey → IPublicKey
-
Get the associated public key.
no setter
-
raw
→ List<
int> -
Get the raw private key as a byte array.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toHex(
{bool lowerCase = true, String? prefix = ""}) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isValidBytes(
List< int> keyBytes, EllipticCurveTypes type) → bool - Static method to check the validity of key bytes for a specific elliptic curve type.