coinlib 1.0.0 copy "coinlib: ^1.0.0" to clipboard
coinlib: ^1.0.0 copied to clipboard

A straight-forward, modular library for Peercoin and other Satoshi-based UTXO blockchains

2
likes
130/ 160
pub points
618
downloads

We analyzed this package 5 days ago, and awarded it 130 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

221 out of 506 API elements (43.7 %) have documentation comments.

Some symbols that are missing documentation: coinlib.Address.program, coinlib.Base58Address.Base58Address.fromString, coinlib.Base58Address.hash, coinlib.Bech32.bech32CheckConst, coinlib.Bech32.bech32mCheckConst.

Passed check 10/10 points: Package has an example

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

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:coinlib/coinlib.dart that imports:
  • package:coinlib/src/coinlib_base.dart that imports:
  • package:coinlib/src/address.dart that imports:
  • package:coinlib/src/scripts/script.dart that imports:
  • package:coinlib/src/scripts/operations.dart that imports:
  • package:coinlib/src/tx/input_signature.dart that imports:
  • package:coinlib/src/crypto/ecdsa_signature.dart that imports:
  • package:coinlib/src/crypto/ec_public_key.dart that imports:
  • package:coinlib/src/bindings/secp256k1.dart that imports:
  • package:coinlib/src/bindings/secp256k1_web.dart that imports:
  • package:wasm_interop/wasm_interop.dart that imports:
  • package:js/js_util.dart that imports:
  • dart:js_util

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 54 issues. Showing the first 2:

WARNING: Unnecessary cast.

lib/src/crypto/hd_key.dart:264:29

    ╷
264 │     final hash = hmacSha512(utf8.encode("Bitcoin seed") as Uint8List, seed);
    │                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/crypto/hd_key.dart

WARNING: Unnecessary cast.

lib/src/crypto/message_signature.dart:18:29

   ╷
18 │     => writer.writeVarSlice(utf8.encode(msg) as Uint8List);
   │                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/crypto/message_signature.dart

Failed report section
Support up-to-date dependencies
30 / 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
collection ^1.17.1 1.19.1 1.19.1
crypto ^3.0.2 3.0.6 3.0.6
dart_base_x ^1.0.0 1.0.0 1.0.0
ffi ^2.1.0 2.1.4 2.1.4
hex ^0.2.0 0.2.0 0.2.0
path ^1.8.0 1.9.1 1.9.1
pointycastle ^3.7.3 3.9.1 4.0.0
wasm_interop ^2.0.1 2.0.1 2.0.1
Transitive dependencies
Package Constraint Compatible Latest Notes
convert - 3.1.2 3.1.2
js - 0.6.7 0.7.2 Discontinued
meta - 1.16.0 1.16.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 `^3.7.3` on pointycastle does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions pointycastle to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
130
points
618
downloads

Publisher

verified publisherpeercoin.net

Weekly Downloads

A straight-forward, modular library for Peercoin and other Satoshi-based UTXO blockchains

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, crypto, dart_base_x, ffi, hex, path, pointycastle, wasm_interop

More

Packages that depend on coinlib