EDDSAPrivateKey class
Represents an EdDSA private key and provides methods for key operations.
- Mixed-in types
Constructors
-
EDDSAPrivateKey({required EDPoint generator, required List<
int> secretKey, required EllipticCurveTypes type}) -
factory
-
EDDSAPrivateKey.fromBytes({required EDPoint generator, required List<
int> secretKey, required HashFunc<HashState> hashMethod}) -
Creates an EdDSA private key from a random value using a provided hash method.
factory
-
EDDSAPrivateKey.fromKhalow(EDPoint generator, List<
int> secretKey) -
Creates an EdDSA private key from a private key value for Khalow curves.
factory
Properties
- baselen → int
-
no setter
-
extendedKey
→ List<
int> -
final
- generator → EDPoint
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
key
→ List<
int> -
immutable key bytes
final
-
privateKey
→ List<
int> -
Retrieves the private key bytes.
no setter
-
publicFields
→ List<
Object?> -
Public, non-secret fields that can be compared normally.
no setteroverride
- publicKey → EDDSAPublicKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secret → BigInt
-
final
-
secretFields
→ List<
List< int> > -
Secret fields that MUST be compared in constant time.
no setteroverride
Methods
-
constantEquality(
EDDSAPrivateKey other) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> data, HashFunc<HashState> hashMethod) → List<int> - Signs the provided data using this private key.
-
signConst(
List< int> data, HashFunc<HashState> hashMethod) → List<int> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited