flutter_xpeed_core 0.0.1 copy "flutter_xpeed_core: ^0.0.1" to clipboard
flutter_xpeed_core: ^0.0.1 copied to clipboard

A plugin implementing cryptography tools used by the Xpeed cryptocurrency.

flutter_xpeed_core #

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

Examples:

# 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
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A plugin implementing cryptography tools used by the Xpeed cryptocurrency.

Homepage

License

MIT (LICENSE)

Dependencies

convert, fixnum, flutter, hex, pointycastle

More

Packages that depend on flutter_xpeed_core