SubstratePathElem class

Represents a Substrate path element, which can be either soft or hard, and provides methods for working with path elements, including serialization, validation, and computing chain code.

Constructors

SubstratePathElem(String element)
Creates a new instance of SubstratePathElem with the provided element.

Properties

chainCode List<int>
Computes and returns the chain code for the path element.
no setter
computeChainCode List<int>
Computes the chain code based on the path element and its data type.
no setter
elem String
The raw string representation of the path element.
latefinal
hashCode int
The hash code for this object.
no setterinherited
isHard bool
Indicates whether the path element is hard (true) or soft (false).
latefinal
isSoft bool
Checks if the path element is soft (not hard).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isElemValid(String elem) bool
Checks if the provided path element is valid according to Substrate path rules.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toStr() String
Returns the string representation of the path element, including the appropriate prefix
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited