WIF class
Encapsulates a ECPrivateKey and version that can be encoded or decoded in the Wallet Import Format (WIF). toString can be used to obtain the encoded WIF string.
Constructors
- WIF.new({required ECPrivateKey privkey, required int version})
- WIF.fromString(String wif, {int? version})
-
Decodes a
wif
string into the private key and version. WifVersionMismatch is thrown if the specifiedversion
does not match the WIF. InvalidWif is thrown if the base58 is valid but the data doesn't meet the correct format. If noversion
is specified, any version will be accepted. May throw InvalidBase58 or InvalidBase58Checksum when decoding the WIF.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- privkey → ECPrivateKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Provides the base-58 encoded WIF string
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited