SubstratePrivateKey.fromBytes constructor

SubstratePrivateKey.fromBytes(
  1. List<int> keyBytes,
  2. SubstrateCoinConf coinConf
)

Creates a SubstratePrivateKey from the provided keyBytes and coinConf.

Implementation

factory SubstratePrivateKey.fromBytes(
    List<int> keyBytes, SubstrateCoinConf coinConf) {
  return SubstratePrivateKey._(
    _keyFromBytes(keyBytes),
    coinConf,
  );
}