ark_dart_crypto 1.0.0

  • Readme
  • Changelog
  • Installing
  • 36

Ark Dart - Crypto #

A simple Cryptography Implementation in Dart for the Ark Blockchain.

Build Status Codecov Latest Version License: MIT

Documentation #

You can find installation instructions and detailed instructions on how to use this package at the dedicated documentation site.

Security #

If you discover a security vulnerability within this package, please send an e-mail to All security vulnerabilities will be promptly addressed.

Credits #

License #

MIT © ArkEcosystem

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased #

1.0.0 - 2019-07-15 #

Added #

  • Initial release

Use this package as a library

1. Depend on it

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

  ark_dart_crypto: ^1.0.0

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:ark_dart_crypto/ark_dart_crypto.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health issues and suggestions

Document public APIs. (-1 points)

111 out of 111 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/utils/signature.dart. (-13.09 points)

Analysis of lib/src/utils/signature.dart reported 28 hints, including:

line 36 col 38: Unnecessary new keyword.

line 37 col 34: Unnecessary new keyword.

line 40 col 38: Unnecessary new keyword.

line 46 col 42: Unnecessary new keyword.

line 50 col 38: Unnecessary new keyword.

Fix lib/src/transactions/transaction.dart. (-3.45 points)

Analysis of lib/src/transactions/transaction.dart reported 7 hints, including:

line 45 col 20: Unnecessary new keyword.

line 86 col 21: Unnecessary new keyword.

line 96 col 18: Unnecessary new keyword.

line 99 col 29: Unnecessary new keyword.

line 106 col 9: Use isNotEmpty instead of length

Fix lib/src/transactions/deserializer.dart. (-2.48 points)

Analysis of lib/src/transactions/deserializer.dart reported 5 hints:

line 12 col 25: Unnecessary new keyword.

line 13 col 29: Unnecessary new keyword.

line 90 col 29: Unnecessary new keyword.

line 95 col 16: Unnecessary new keyword.

line 101 col 25: Unnecessary new keyword.

Fix additional 14 files with analysis or formatting issues. (-7.97 points)

Additional issues in the following files:

  • lib/src/utils/buffer.dart (5 hints)
  • lib/src/identities/private_key.dart (3 hints)
  • lib/src/identities/address.dart (2 hints)
  • lib/src/transactions/builder.dart (2 hints)
  • lib/src/configuration/network.dart (1 hint)
  • lib/src/identities/public_key.dart (1 hint)
  • lib/src/identities/wif.dart (1 hint)
  • lib/src/transactions/serializer.dart (1 hint)
  • lib/ark_dart_crypto.dart (Run dartfmt to format lib/ark_dart_crypto.dart.)
  • lib/src/configuration/fee.dart (Run dartfmt to format lib/src/configuration/fee.dart.)
  • lib/src/networks/devnet.dart (Run dartfmt to format lib/src/networks/devnet.dart.)
  • lib/src/networks/mainnet.dart (Run dartfmt to format lib/src/networks/mainnet.dart.)
  • lib/src/networks/network.dart (Run dartfmt to format lib/src/networks/network.dart.)
  • lib/src/networks/testnet.dart (Run dartfmt to format lib/src/networks/testnet.dart.)

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

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

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
bip32 ^1.0.5 1.0.5
bs58check ^1.0.1 1.0.1
convert ^2.1.1 2.1.1
crypto ^2.0.6 2.1.4
pointycastle ^1.0.1 1.0.2
Transitive dependencies
charcode 1.1.3
collection 1.14.12
hex 0.1.2
typed_data 1.1.6
Dev dependencies
test ^1.6.4
test_coverage ^0.3.0