flutter_xpeed_core 0.0.1

  • Readme
  • Changelog
  • Installing
  • 42

flutter_xpeed_core #

Low-level functions for XPEED written in DART. Similar structure to jnano-commons for Java Original Source from flutter_nano_core


# Generate a random seed
String randomSeed = NanoSeeds.generateSeed();
# Validate a seed
bool seedIsValid = NanoSeeds.isValid(randomSeed);

# Create private key from seed at index 0
String privateKey = NanoKeys.seedToPrivate(seed, 0);
# Create public key from private key
String publicKey = NanoKeys.createPublicKey(privateKey);
# Create account from public get (xpd_ address)
String address = NanoAccounts.createAccount(NanoAccountType.XPD, publicKey);

# Compute state block hash
computeStateHash(int accountType, String account, String previous, String representative, BigInt balance, String link);

# Sign a block
NanoSignatures.signBlock(hash, privateKey);

[0.0.1] - 2019-04-09 #

  • Initial Release

Use this package as a library

1. Depend on it

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

  flutter_xpeed_core: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support 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:flutter_xpeed_core/flutter_xpeed_core.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
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/src/NanoAccounts.dart.

Run flutter format to format lib/src/NanoAccounts.dart.

Format lib/src/NanoBlocks.dart.

Run flutter format to format lib/src/NanoBlocks.dart.

Maintenance issues and suggestions

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

At the time of the analysis the homepage field https://xpeedcoin.com 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 flutter_xpeed_core.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Package is getting outdated.

The package was last published 52 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
convert ^2.1.1 2.1.1
fixnum ^0.10.9 0.10.11
flutter 0.0.0
hex ^0.1.2 0.1.2
pointycastle ^1.0.1 1.0.2
Transitive dependencies
charcode 1.1.3
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies