Substrate.fromPublicKey constructor
Substrate.fromPublicKey(
- List<
int> publicKey, - SubstrateCoins coinType
Create a Substrate context from a public key and coin type.
Implementation
factory Substrate.fromPublicKey(
List<int> publicKey, SubstrateCoins coinType) {
return Substrate._(
null,
SubstratePubKey.fromBytes(keyBytes: publicKey, coinConf: coinType.conf),
SubstratePath(),
coinType.conf,
);
}