publicKeyFromSeed function
Converts a seed to a public key.
Takes a seed as input and returns the corresponding public key as a list of integers. The seed is used to generate a key pair using the ed25519 algorithm, and then the public key is extracted from the key pair.
Implementation
List<int> publicKeyFromSeed(String seed) {
final keypair =
KeyPair.ed25519.fromSeed(Uint8List.fromList(hex.decode(seed)));
return keypair.publicKey.bytes;
}