SolanaVerifier.fromKeyBytes constructor

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

Factory method to create an SolanaVerifier instance from key bytes.

Implementation

factory SolanaVerifier.fromKeyBytes(List<int> keyBytes) {
  final pub = Ed25519PublicKey.fromBytes(keyBytes);
  final verifyingKey = EDDSAPublicKey(
      SolanaSignerConst.ed25519Generator, pub.compressed.sublist(1));
  return SolanaVerifier._(verifyingKey);
}