Substrate.fromPublicKey constructor

Substrate.fromPublicKey(
  1. List<int> publicKey,
  2. 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),
  );
}