SubstratePrvKey.fromBytes constructor

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

Creates a Sr25519PrivateKey from the provided keyBytes and coinConf.

Implementation

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