ECPrivate class
Represents an ECDSA private key.
Constructors
- ECPrivate.fromBytes(Uint8List prive)
-
creates an object from raw 32 bytes
factory
- ECPrivate.fromWif(String wif)
-
creates an object from a WIF of WIFC format (string)
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPublic(
) → ECPublic - returns the corresponding ECPublic object
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signInput(
Uint8List txDigest, {int sigHash = SIGHASH_ALL}) → String - sign transaction digest and returns the signature.
-
signMessage(
String message, {bool compressed = true}) → String - Returns a Bitcoin compact signature in hex
-
signTapRoot(
Uint8List txDigest, {dynamic sighash = TAPROOT_SIGHASH_ALL, List scripts = const [], bool tweak = true}) → String - sign taproot transaction digest and returns the signature.
-
toBytes(
) → Uint8List - returns the key's raw bytes
-
toHex(
) → String -
toString(
) → String -
A string representation of this object.
inherited
-
toWif(
{bool compressed = true, NetworkInfo? networkType}) → String - returns as WIFC (compressed) or WIF format (string)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited