bip/substrate/substrate library

The 'substrate' library provides tools for working with the Substrate blockchain ecosystem, including coin definitions, configuration data, and encoding utilities.

Classes

Substrate
A class representing a Substrate context that includes private and public keys, a path, and coin configuration.
SubstrateConf
A configuration class for Substrate coins that defines the key network versions and maps each supported SubstrateCoins to its corresponding SubstrateConf.
SubstrateConst
Constants used in Substrate-related operations.
SubstratePath
Represents a Substrate path, which is an ordered sequence of SubstratePathElem elements. This class provides methods for creating, manipulating, and serializing paths.
SubstratePathConst
A constants class that provides predefined values and regular expressions related to Substrate paths and SCALE encoders for integers.
SubstratePathElem
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.
SubstratePathParser
Parses a string representation of a Substrate path and returns a SubstratePath object.
SubstratePrvKey
SubstratePubKey
SubstrateScaleBytesEncoder
A Substrate SCALE encoder for string values represented as bytes.
SubstrateScaleCUintEncoder
A Substrate SCALE encoder for encoding unsigned integers as Compact Uints (CUints).
SubstrateScaleEncoderBase
An abstract base class for encoding values in Substrate SCALE format.
SubstrateScaleU128Encoder
A Substrate SCALE encoder for encoding 128-bit unsigned integers (U128).
SubstrateScaleU16Encoder
A Substrate SCALE encoder for encoding 16-bit unsigned integers (U16).
SubstrateScaleU256Encoder
A Substrate SCALE encoder for encoding 256-bit unsigned integers (U256).
SubstrateScaleU32Encoder
A Substrate SCALE encoder for encoding 32-bit unsigned integers (U32).
SubstrateScaleU64Encoder
A Substrate SCALE encoder for encoding 64-bit unsigned integers (U64).
SubstrateScaleU8Encoder
A Substrate SCALE encoder for encoding 8-bit unsigned integers (U8).
SubstrateScaleUintEncoder
An abstract base class for encoding unsigned integers in Substrate SCALE format.