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

1
likes
150/ 160
pub points
45%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

221 out of 487 API elements (45.4 %) 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.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 51 issues. Showing the first 2:

INFO: 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

INFO: 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

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
collection ^1.17.1 1.19.0 1.19.0
crypto ^3.0.2 3.0.3 3.0.3
dart_base_x ^1.0.0 1.0.0 1.0.0
ffi ^2.1.0 2.1.2 2.1.2
hex ^0.2.0 0.2.0 0.2.0
path ^1.8.0 1.9.0 1.9.0
pointycastle ^3.7.3 3.9.1 3.9.1
wasm_interop ^2.0.1 2.0.1 2.0.1
Transitive dependencies
Package Constraint Compatible Latest
convert - 3.1.1 3.1.1
js - 0.6.7 0.7.1
meta - 1.15.0 1.15.0
typed_data - 1.3.2 1.3.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.7, Dart 3.4.4.

Check the analysis log for details.

1
likes
150
pub points
45%
popularity

Publisher

verified publisherpeercoin.net

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