Substrate class

A class representing a Substrate context that includes private and public keys, a path, and coin configuration.

Constructors

Substrate.fromPrivateKey(List<int> privateKeyBytes, SubstrateCoins coinType)
Create a Substrate context from a private key and coin type.
factory
Substrate.fromPublicKey(List<int> publicKey, SubstrateCoins coinType)
Create a Substrate context from a public key and coin type.
factory
Substrate.fromSeed(List<int> seedBytes, SubstrateCoins coinType)
Create a Substrate context from a seed and coin type.
factory
Substrate.fromSeedAndPath(List<int> seedBytes, dynamic path, SubstrateCoins coinType)
Create a Substrate context from a seed, path, and coin type.
factory

Properties

coinConf SubstrateCoinConf
Coin configuration
final
hashCode int
The hash code for this object.
no setterinherited
isPublicOnly bool
Check if this Substrate context is in public-only mode.
no setter
path SubstratePath
Path
final
priveKey SubstratePrvKey
Get the private key associated with this Substrate context.
no setter
publicKey SubstratePubKey
Public key
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

childKey(SubstratePathElem pathElem) Substrate
Derive a new Substrate context from the current context using the provided path element.
convertToPublic() → void
Convert this Substrate context to public-only mode.
derivePath(String path) Substrate
Derive a new Substrate context from the current context using the provided path.
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