PrivKey class
Constructors
- PrivKey({BigIntX? bn, bool? compressed, int? privKeyVersionByteNum})
- PrivKey.fromBn(BigIntX bn)
-
factory
-
PrivKey.fromBuffer(List<
int> buf) -
factory
- PrivKey.fromHex(String str)
-
factory
- PrivKey.fromJSON(String str)
-
factory
- PrivKey.fromRandom()
-
factory
- PrivKey.fromString(String str)
-
factory
- PrivKey.fromWif(String str)
-
factory
- PrivKey.Mainnet({required BigIntX bn, required bool compressed})
-
factory
- PrivKey.Testnet({required BigIntX bn, required bool compressed})
-
factory
Properties
- bn ↔ BigIntX?
-
getter/setter pair
- compressed ↔ bool?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- privKeyVersionByteNum ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromBn(
BigIntX bn) → PrivKey -
fromBuffer(
List< int> buf) → PrivKey -
fromRandom(
) → PrivKey -
fromString(
String str) → PrivKey -
fromWif(
String str) → PrivKey -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBn(
) → BigIntX? -
toBuffer(
) → List< int> -
toHex(
) → String -
toJSON(
) → String -
toString(
) → String -
A string representation of this object.
override
-
toWif(
) → String -
validate(
) → PrivKey
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- INVALID_COMPRESSED → const String
- INVALID_NUMBER_N → const String
- INVALID_PRIV_KEY_LENGTH → const String
- INVALID_VERSION_BYTE_NUM_BYTE → const String