SolanaPrivateKey.fromSeed constructor

SolanaPrivateKey.fromSeed(
  1. List<int> keyBytes
)

Factory method to create a SolanaPrivateKey instance from a seed represented as a list of bytes.

Implementation

factory SolanaPrivateKey.fromSeed(List<int> keyBytes) {
  final privateKey = Ed25519PrivateKey.fromBytes(keyBytes);
  return SolanaPrivateKey._(privateKey);
}