Skip to content

l7960261/flutter_hades_core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_hades_core

Low-level functions for HADES/CHARON written in DART. Similar structure to jnano-commons for Java

Examples:

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

# Create private key from seed at index 0
String privateKey = HadesKeys.seedToPrivate(seed, 0);
# Create public key from private key
String publicKey = HadesKeys.createPublicKey(privateKey);
# Create account from public get (hades_/charon_ address)
String address = HadesAccounts.createAccount(HadesAccountType.HADES, publicKey);

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages