dartcoin 0.0.0

  • README.md
  • Installing
  • Versions
  • 18

dartcoin-lib

Bitcoin library witten in Google Dart (dartlang.org).

This library is still in very early development so it is far from usable. Excpect many refactors to happen before we achieve a stable state.

All help is of course welcome!

Use this package as a library

1. Depend on it

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


dependencies:
  dartcoin: "^0.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:dartcoin/dartcoin.dart';
  
Version Uploaded Documentation Archive
0.0.0 Jan 26, 2014 Go to the documentation of dartcoin 0.0.0 Download dartcoin 0.0.0 archive

Analysis

We analyzed this package on May 24, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
60 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
18
Learn more about scoring.

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Make sure dartfmt runs.

Suggestions

  • Make sure dartfmt runs.

    Running dartfmt -n . failed with the following output:

    dartfmt on lib/ failed with exit code 65
    Could not format because the source could not be parsed:
    
    line 523, column 55 of /tmp/pana-WEPZNW/lib/src/script/script_executor.dart: Expected to find ')'.
                  executeCheckSig(txContainingThis, (int) index, script, stack, lastCodeSepLocation, opcode);
                                                          ^^^^^
    line 523, column 55 of /tmp/pana-WEPZNW/lib/src/script/script_executor.dart: Expected to find ';'.
                  executeCheckSig(txContainingThis, (int) index, script, stack, lastCodeSepLocation, opcode);
                                                          ^
    line 523, column 55 of /tmp/pana-WEPZNW/lib/src/script/script_executor.dart: Expected to find ';'.
    
  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Make sure dartfmt runs.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Homepage does not exists.

    We were unable to access http://www.dartcoin.org/ at the time of the analysis.

  • Use constrained dependencies.

    The pubspec.yaml contains 5 dependencies without version constraints. Specify version ranges for the following dependencies: bignum, cipher, crypto, json, json_rpc.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 98 errors 107 hints.

    Strong-mode analysis of lib/src/core/base58check.dart failed with the following error:

    line: 50 col: 14
    The list literal type 'List<int>' isn't of expected type 'Uint8List'. The list's type can be changed with an explicit generic type argument or by changing the element types.

    Strong-mode analysis of lib/src/core/ec_key.dart failed with the following error:

    line: 145 col: 5
    Undefined class 'ECPoint'.

    Similar analysis of the following files failed:

    • lib/src/core/sha256hash.dart (error)
    • lib/src/core/transaction.dart (error)
    • lib/src/core/utils.dart (error)
    • lib/src/json/json-rpc/bitcoin_api.dart (error)
    • lib/src/script/commons/multisig_output.dart (error)
    • lib/src/script/commons/pay_to_address_input.dart (error)
    • lib/src/script/commons/pay_to_address_output.dart (error)
    • lib/src/script/commons/pay_to_pub_key_input.dart (error)
    • lib/src/script/commons/pay_to_pub_key_output.dart (error)
    • lib/src/script/script_executor.dart (error)
    • lib/src/wire/inventory_item.dart (error)
    • lib/src/wire/message.dart (error)
    • lib/dartcoin.dart (hint)
    • lib/json/json.dart (hint)
    • lib/src/core/address.dart (hint)
    • lib/src/core/bitcoin_serialization.dart (hint)
    • lib/src/core/block.dart (hint)
    • lib/src/core/transaction_input.dart (hint)
    • lib/src/core/transaction_outpoint.dart (hint)
    • lib/src/core/transaction_output.dart (hint)
    • lib/src/core/units.dart (hint)
    • lib/src/core/varint.dart (hint)
    • lib/src/core/varstr.dart (hint)
    • lib/src/json/json_encoder.dart (hint)
    • lib/src/params/main_net.dart (hint)
    • lib/src/params/network_parameters.dart (hint)
    • lib/src/script/script.dart (hint)
    • lib/src/script/script_chunk.dart (hint)
    • lib/src/script/script_op_codes.dart (hint)
    • lib/src/wire/inventory_item_type.dart (hint)
    • lib/src/wire/messages/addr_message.dart (hint)
    • lib/src/wire/messages/alert_message.dart (hint)
    • lib/src/wire/messages/block_message.dart (hint)
    • lib/src/wire/messages/getaddr_message.dart (hint)
    • lib/src/wire/messages/getblocks_message.dart (hint)
    • lib/src/wire/messages/getdata_message.dart (hint)
    • lib/src/wire/messages/getheaders_message.dart (hint)
    • lib/src/wire/messages/headers_message.dart (hint)
    • lib/src/wire/messages/inv_message.dart (hint)
    • lib/src/wire/messages/inventory_item_container_message.dart (hint)
    • lib/src/wire/messages/mempool_message.dart (hint)
    • lib/src/wire/messages/notfound_message.dart (hint)
    • lib/src/wire/messages/ping_message.dart (hint)
    • lib/src/wire/messages/pong_message.dart (hint)
    • lib/src/wire/messages/request_message.dart (hint)
    • lib/src/wire/messages/tx_message.dart (hint)
    • lib/src/wire/messages/verack_message.dart (hint)
    • lib/src/wire/messages/version_message.dart (hint)
    • lib/wire/wire.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use dartcoin.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
bignum >=0.0.4 0.0.7 0.1.0
cipher >=0.5.1 0.7.1
crypto any 2.0.3
json any 0.10.0
json_rpc any 0.1.2
Transitive dependencies
charcode 1.1.1
collection 1.14.9
convert 2.0.1
fixnum 0.9.1+2 0.10.7
typed_data 1.1.5