getPublicKey method

Future<Uint8List> getPublicKey(
  1. int accountId
)

Method to get public key. It's called from rust

Implementation

Future<Uint8List> getPublicKey(int accountId) async {
  try {
    return await _handler.getPublicKey(accountId);
  } on LedgerOperationCancelledException {
    throw ErrorCode.cancelled;
  } catch (error) {
    throw ErrorCode.generic;
  }
}