Sr25519PrivateKey.fromBytes constructor

Sr25519PrivateKey.fromBytes(
  1. List<int> keyBytes
)

Factory method for creating an Sr25519PrivateKey from a byte array.

Implementation

factory Sr25519PrivateKey.fromBytes(List<int> keyBytes) {
  return Sr25519PrivateKey._(SchnorrkelSecretKey.fromBytes(keyBytes));
}