SubstratePublicKey class
Represents a Substrate public key using the Sr25519 key pair. This class provides methods for working with Substrate public keys, including serialization, address generation, and error handling.
Constructors
- SubstratePublicKey(Sr25519PublicKey pubKey, SubstrateCoinConf coinConf)
-
Creates a new instance of SubstratePublicKey with the given
pubKey
andcoinConf
.const -
SubstratePublicKey.fromBytes(List<
int> keyBytes, SubstrateCoinConf coinConf) -
Creates a SubstratePublicKey from the provided
keyBytes
andcoinConf
.factory
Properties
- coinConf → SubstrateCoinConf
-
The Substrate coin configuration associated with this public key.
final
-
compressed
→ List<
int> -
Gets the compressed representation of the public key as a List
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- pubKey → Sr25519PublicKey
-
The underlying Sr25519 public key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toAddress → String
-
Converts the public key to a Substrate address using the specified coinConf.
no setter
-
uncompressed
→ List<
int> -
Gets the uncompressed representation of the public key as a List
no setter
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