EcdsaPrivateKey class
Implementation of ECDSA private key
- Implemented types
Constructors
- EcdsaPrivateKey.new(ECPrivateKey _key, EcdsaPublicKey _publicKey)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → PublicKey
-
Gets the public key corresponding to this private key
no setteroverride
- raw → Uint8List
-
Returns the key's raw bytes
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → KeyType
-
Returns the key's type
no setteroverride
Methods
-
equals(
PrivateKey other) → Future< bool> -
Checks if this private key is equal to another
override
-
marshal(
) → Uint8List -
Returns the protobuf bytes of the key
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
Uint8List data) → Future< Uint8List> -
Signs the given data
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRawBytes(
Uint8List bytes) → Future< PrivateKey> - Creates an EcdsaPrivateKey from raw bytes (DER encoded)
-
unmarshal(
Uint8List bytes) → Future< PrivateKey> - Creates an EcdsaPrivateKey from its protobuf bytes