public final class CurrencyMint
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
long |
getAccountId() |
long |
getCounter() |
static long |
getCounter(long currencyId,
long accountId) |
long |
getCurrencyId() |
static byte[] |
getHash(byte algorithm,
long nonce,
long currencyId,
long units,
long counter,
long accountId) |
static byte[] |
getHash(HashFunction hashFunction,
long nonce,
long currencyId,
long units,
long counter,
long accountId) |
static java.math.BigInteger |
getNumericTarget(Currency currency,
long units) |
static java.math.BigInteger |
getNumericTarget(int min,
int max,
long units,
long currentMintableSupply,
long totalMintableSupply) |
static byte[] |
getTarget(java.math.BigInteger numericTarget) |
static byte[] |
getTarget(int min,
int max,
long units,
long currentMintableSupply,
long totalMintableSupply) |
static boolean |
meetsTarget(byte[] hash,
byte[] target) |
public long getCurrencyId()
public long getAccountId()
public long getCounter()
public static long getCounter(long currencyId, long accountId)
public static boolean meetsTarget(byte[] hash, byte[] target)
public static byte[] getHash(byte algorithm, long nonce, long currencyId, long units, long counter, long accountId)
public static byte[] getHash(HashFunction hashFunction, long nonce, long currencyId, long units, long counter, long accountId)
public static byte[] getTarget(int min, int max, long units, long currentMintableSupply, long totalMintableSupply)
public static byte[] getTarget(java.math.BigInteger numericTarget)
public static java.math.BigInteger getNumericTarget(Currency currency, long units)
public static java.math.BigInteger getNumericTarget(int min, int max, long units, long currentMintableSupply, long totalMintableSupply)