Low-level functions for NANO/BANANO written in DART. Similar structure to jnano-commons for Java
# 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 (nano_/ban_ address) String address = NanoAccounts.createAccount(NanoAccountType.NANO, 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);
BREAKING Switch from xrb_ to nano_ prefix
Add this to your package's pubspec.yaml file:
dependencies: flutter_nano_core: ^1.1.0
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.1.0||Apr 17, 2019|
|1.0.4||Feb 20, 2019|
|1.0.3||Feb 20, 2019|
|1.0.2||Feb 1, 2019|
|1.0.1||Jan 17, 2019|
|1.0.0||Jan 3, 2019|
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]
We analyzed this package on Apr 24, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
flutter_nano_core.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=2.0.0-dev.68.0 <3.0.0|