public final class CurrencyMint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
ZEROS |
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(byte min,
byte max,
long units,
float currentSupply,
float totalSupply) |
static byte[] |
getTarget(byte min,
byte max,
long units,
long currentSupply,
long totalSupply) |
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(byte min, byte max, long units, long currentSupply, long totalSupply)
public static java.math.BigInteger getNumericTarget(byte min, byte max, long units, float currentSupply, float totalSupply)