public final class CurrencyMinting
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Set<HashFunction> |
acceptedHashFunctions |
Modifier and Type | Method and Description |
---|---|
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) |
static boolean |
meetsTarget(long accountId,
Currency currency,
Attachment.MonetarySystemCurrencyMinting attachment) |
public static final java.util.Set<HashFunction> acceptedHashFunctions
public static boolean meetsTarget(long accountId, Currency currency, Attachment.MonetarySystemCurrencyMinting attachment)
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)