publicKeyFromAddress function

List<int> publicKeyFromAddress(
  1. String address
)

Converts an address to a public key.

Takes an address as input and returns the corresponding public key as a list of integers. The address is decoded using the Keyring library, and then the decoded public key is returned.

Implementation

List<int> publicKeyFromAddress(String address) {
  final keyring = Keyring();
  final decodedPublicKey = keyring.decodeAddress(address);
  return decodedPublicKey.toList();
}