dart_randomx 1.0.6
dart_randomx: ^1.0.6 copied to clipboard
Dart wrapper for RandomX proof-of-work (PoW) algorithm with built-in binaries for Linux and macOS.
We analyzed this package 24 hours ago, and awarded it 80 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
22 out of 45 API elements (48.9 %) have documentation comments.
Some symbols that are missing documentation: dart_randomx.FFIFunctionRandomxDestroy, dart_randomx.FFIFunctionRandomxGetID, dart_randomx.FFIFunctionRandomxHash, dart_randomx.FFIFunctionRandomxHashFirst, dart_randomx.FFIFunctionRandomxHashLast.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:dart_randomx/dart_randomx.dartthat imports:package:dart_randomx/src/dart_randomx_base.dartthat imports:package:ffi/ffi.dartthat imports:package:ffi/src/utf16.dartthat imports:dart:ffi
0/50 points: code has no errors, warnings, lints, or formatting issues
ERROR: The method 'UnmodifiableUint8ListView' isn't defined for the type 'RandomX'.
lib/src/dart_randomx_base.dart:277:16
╷
277 │ _initKey = UnmodifiableUint8ListView(Uint8List.fromList(key));
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/dart_randomx_base.dart
WARNING: The operand must be 'null', so the condition is always 'false'.
lib/src/dart_randomx_base.dart:469:9
╷
469 │ if (error != null) {
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/dart_randomx_base.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
base_codecs |
^1.0.1 |
1.0.1 | 1.0.1 | |
collection |
^1.15.0 |
1.19.1 | 1.19.1 | |
ffi |
^1.1.2 |
1.2.1 | 2.1.5 | |
path |
^1.8.0 |
1.9.1 | 1.9.1 | |
statistics |
^1.0.7 |
1.2.1 | 1.2.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
clock |
- | 1.1.2 | 1.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
data_serializer |
- | 1.2.1 | 1.2.1 | |
intl |
- | 0.20.2 | 0.20.2 | |
meta |
- | 1.17.0 | 1.17.0 | |
typed_data |
- | 1.4.0 | 1.4.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^1.1.2` on ffi does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions ffi to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 1 error:
UNDEFINED_METHOD-lib/src/dart_randomx_base.dart:277:16- The method 'UnmodifiableUint8ListView' isn't defined for the type 'RandomX'.
Run dart pub downgrade and then dart analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.5, Dart 3.10.7.
Check the analysis log for details.