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,
SubstratePublicKey.fromBytes(publicKey, SubstrateConf.getCoin(coinType)),
SubstratePath(),
SubstrateConf.getCoin(coinType),
);
}