ElectrumV1 class
Electrum V1 is a class that represents a pair of public and private keys for the Secp256k1 elliptic curve.
Constructors
-
ElectrumV1.fromPrivateKey(List<
int> privKey) -
Create an Electrum V1 instance from a private key represented as List<int>.
factory
-
ElectrumV1.fromSeed(List<
int> seedBytes) -
Create an Electrum V1 instance from a seed represented as List<int>.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPublicOnly → bool
-
Checks if this key contains only public information.
no setter
- masterPrivateKey → IPrivateKey
-
Get the master private key, throwing an exception if it's a public-only key.
no setter
- masterPublicKey → IPublicKey
-
Get the master public key.
no setter
- privateKey → IPrivateKey?
-
final
- publicKey → IPublicKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAddress(
int changeIndex, int addressIndex) → String - Get the P2PKH address for a specific change and address index.
-
getPrivateKey(
int changeIndex, int addrIndex) → IPrivateKey - Get a private key for a specific change and address index, throwing an exception if it's a public-only key.
-
getPublicKey(
int changeIndex, int addressIndex) → IPublicKey - Get a public key for a specific change and address index.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromPublicKey(
List< int> pubKey) → ElectrumV1 - Create an Electrum V1 instance from a public key represented as List<int>.