getPublicKeyFromAddress function

Uint8List getPublicKeyFromAddress(
  1. Address addr
)

Returns the 32-byte Ed25519 public key for the given addr.

Implementation

Uint8List getPublicKeyFromAddress(Address addr) {
  return getAddressEncoder().encode(addr);
}