pubKeyToWalletAddr static method

Future<String?> pubKeyToWalletAddr(
  1. Uint8List pubkey
)

pubKeyToWalletAddr converts a public key to its NKN wallet address

Implementation

static Future<String?> pubKeyToWalletAddr(Uint8List pubkey) async {
  try {
    final String address = await _methodChannel.invokeMethod('pubKeyToWalletAddr', {
      'pubKey': pubkey,
    });
    return address;
  } catch (e) {
    return null;
  }
}