SolanaSigner.fromKeyBytes constructor

SolanaSigner.fromKeyBytes(
  1. List<int> keyBytes
)

Factory method to create an SolanaSigner instance from key bytes.

Implementation

factory SolanaSigner.fromKeyBytes(List<int> keyBytes) {
  // Create an EDDSA private key from the key bytes using the ED25519 curve.
  final signingKey = EDDSAPrivateKey(
      SolanaSignerConst.ed25519Generator, keyBytes, () => SHA512());
  return SolanaSigner._(signingKey);
}