nem2_crypto 1.0.3

nem2_crypto #

ProximaX Catapult implementation ed26619 encryption modules for Dart.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  nem2_crypto: ^1.0.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:nem2_crypto/nem2_crypto.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
3
Health:
Code health derived from static analysis. [more]
61
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
63
Overall:
Weighted score of the above. [more]
32
Learn more about scoring.

We analyzed this package on Dec 7, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:nem2_crypto/nem2_crypto.dart.

Health suggestions

Fix lib/imp/catapult_nacl.dart. (-18.17 points)

Analysis of lib/imp/catapult_nacl.dart reported 40 hints, including:

line 164 col 29: DO use curly braces for all flow control structures.

line 679 col 30: DO use curly braces for all flow control structures.

line 680 col 29: DO use curly braces for all flow control structures.

line 684 col 9: DO use curly braces for all flow control structures.

line 698 col 9: DO use curly braces for all flow control structures.

Fix lib/imp/sha3.dart. (-13.53 points)

Analysis of lib/imp/sha3.dart reported 29 hints, including:

line 12 col 37: Unnecessary new keyword.

line 15 col 47: Unnecessary new keyword.

line 20 col 20: Unnecessary new keyword.

line 23 col 40: Unnecessary new keyword.

line 81 col 18: Unnecessary new keyword.

Fix lib/imp/catapult_signature.dart. (-4.89 points)

Analysis of lib/imp/catapult_signature.dart reported 10 hints, including:

line 69 col 7: DO use curly braces for all flow control structures.

line 80 col 42: DO use curly braces for all flow control structures.

line 93 col 57: DO use curly braces for all flow control structures.

line 95 col 7: DO use curly braces for all flow control structures.

line 105 col 18: Unnecessary new keyword.

Fix additional 4 files with analysis or formatting issues. (-9.40 points)

Additional issues in the following files:

  • lib/src/key_pair.dart (7 hints)
  • lib/src/nem2_crypto_utils.dart (6 hints)
  • lib/src/key_model.dart (4 hints)
  • lib/src/crypto.dart (2 hints)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-17 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and nem2_crypto.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
fixnum ^0.10.9 0.10.11
hex ^0.1.2 0.1.2
pointycastle ^1.0.1 1.0.2
Dev dependencies
test ^1.5.3