Package nxt.ms
Class CurrencyMinting
java.lang.Object
nxt.ms.CurrencyMinting
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]getHash(byte algorithm, long nonce, long currencyId, long unitsQNT, long counter, long accountId) static byte[]getHash(HashFunction hashFunction, long nonce, long currencyId, long unitsQNT, long counter, long accountId) static BigIntegergetNumericTarget(int min, int max, long unitsQNT, long currentMintableSupplyQNT, long totalMintableSupplyQNT) static BigIntegergetNumericTarget(Currency currency, long unitsQNT) static byte[]getTarget(int min, int max, long unitsQNT, long currentMintableSupplyQNT, long totalMintableSupplyQNT) static byte[]getTarget(BigInteger numericTarget) static booleanmeetsTarget(byte[] hash, byte[] target) static booleanmeetsTarget(long accountId, Currency currency, CurrencyMintingAttachment attachment)
-
Field Details
-
acceptedHashFunctions
-
-
Method Details
-
meetsTarget
public static boolean meetsTarget(long accountId, Currency currency, CurrencyMintingAttachment attachment) -
meetsTarget
public static boolean meetsTarget(byte[] hash, byte[] target) -
getHash
public static byte[] getHash(byte algorithm, long nonce, long currencyId, long unitsQNT, long counter, long accountId) -
getHash
public static byte[] getHash(HashFunction hashFunction, long nonce, long currencyId, long unitsQNT, long counter, long accountId) -
getTarget
public static byte[] getTarget(int min, int max, long unitsQNT, long currentMintableSupplyQNT, long totalMintableSupplyQNT) -
getTarget
-
getNumericTarget
-
getNumericTarget
public static BigInteger getNumericTarget(int min, int max, long unitsQNT, long currentMintableSupplyQNT, long totalMintableSupplyQNT)
-