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,
    SubstratePubKey.fromBytes(keyBytes: publicKey, coinConf: coinType.conf),
    SubstratePath(),
    coinType.conf,
  );
}