SolanaPublicKey.fromBytes constructor

SolanaPublicKey.fromBytes(
  1. List<int> publicKeyBytes
)

Factory method to create a SolanaPublicKey instance from bytes.

Implementation

factory SolanaPublicKey.fromBytes(List<int> publicKeyBytes) {
  final publicKey = Ed25519PublicKey.fromBytes(publicKeyBytes);
  return SolanaPublicKey._(publicKey);
}