dart_randomx 1.0.6 copy "dart_randomx: ^1.0.6" to clipboard
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.

80/ 160
pub points
21
downloads

We analyzed this package 24 hours ago, and awarded it 80 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 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.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 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.dart that imports:
  • package:dart_randomx/src/dart_randomx_base.dart that imports:
  • package:ffi/ffi.dart that imports:
  • package:ffi/src/utf16.dart that imports:
  • dart:ffi
Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 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.

Weekly downloads

Display as:
By versions:
2
likes
80
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Dart wrapper for RandomX proof-of-work (PoW) algorithm with built-in binaries for Linux and macOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

base_codecs, collection, ffi, path, statistics

More

Packages that depend on dart_randomx