SubstratePrivateKey class

Represents a Substrate private key using the Sr25519 key pair. This class provides methods for working with Substrate private keys, including serialization, public key derivation, and error handling.

Constructors

SubstratePrivateKey.fromBytes(List<int> keyBytes, SubstrateCoinConf coinConf)
Creates a SubstratePrivateKey from the provided keyBytes and coinConf.
factory

Properties

coinConf SubstrateCoinConf
The Substrate coin configuration associated with this private key.
final
hashCode int
The hash code for this object.
no setterinherited
privKey Sr25519PrivateKey
The underlying Sr25519 private key.
final
publicKey SubstratePublicKey
Derives the corresponding Substrate public key from this private key.
no setter
raw List<int>
Gets the raw representation of the private key as a List
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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