ElectrumV1 class

Electrum V1 is a class that represents a pair of public and private keys for the Secp256k1 elliptic curve.

Mixed-in types

Constructors

ElectrumV1.fromPrivateKey(List<int> privKey)
Create an Electrum V1 instance from a private key.
factory
ElectrumV1.fromSeed(List<int> seedBytes)
Create an Electrum V1 instance from a seed.
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<ISignature, ISigningParams, IPublicKey<IVerifiyingParams>>
Get the master private key, throwing an exception if it's a public-only key.
no setter
masterPublicKey → Secp256k1PublicKey
Get the master public key.
no setter
privateKey → Secp256k1PrivateKey?
no setter
publicKey → Secp256k1PublicKey
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

convertToPublic({bool disposeKey = true}) → void
dispose() → void
Releases the native allocation and wipes owned key material. Idempotent: safe to call twice.
override
getAddress(int changeIndex, int addressIndex) → String
Get the P2PKH address for a specific change and address index.
getPrivateKey(int changeIndex, int addrIndex) → Secp256k1PrivateKey
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) → Secp256k1PublicKey
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.