getKeys method

List<CryptoHDKey> getKeys()

Implementation

List<CryptoHDKey> getKeys() {
  Response response = getKeysLen(nativeObject).ref;
  response.throwIfPresent();
  final length = response.data.getUInt32();
  List<CryptoHDKey> cryptoHDKeys = [];
  for (int i = 0; i < length; i++) {
    response = getKey(nativeObject, i).ref;
    response.throwIfPresent();
    cryptoHDKeys.add(CryptoHDKey(response.data.getObject()));
  }
  return cryptoHDKeys;
}