getPublicViewKey function
Implementation
String getPublicViewKey() {
final errorBoxPointer = monero_flutter.buildErrorBoxPointer();
final viewKeyPointer =
monero_flutter.bindings.public_view_key(errorBoxPointer);
final viewKey = viewKeyPointer.cast<Utf8>().toDartString();
calloc.free(viewKeyPointer);
final errorInfo = monero_flutter.extractErrorInfo(errorBoxPointer);
if (0 != errorInfo.code) {
throw Exception(errorInfo.getErrorMessage());
}
return viewKey;
}