Package nxt.ms

Class CurrencyMinting

java.lang.Object
nxt.ms.CurrencyMinting

public final class CurrencyMinting extends Object
  • Field Details

    • acceptedHashFunctions

      public static final Set<HashFunction> 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

      public static byte[] getTarget(BigInteger numericTarget)
    • getNumericTarget

      public static BigInteger getNumericTarget(Currency currency, long unitsQNT)
    • getNumericTarget

      public static BigInteger getNumericTarget(int min, int max, long unitsQNT, long currentMintableSupplyQNT, long totalMintableSupplyQNT)