Package nxt

Class PhasingPoll


  • public final class PhasingPoll
    extends java.lang.Object
    • Field Detail

      • acceptedHashFunctions

        public static final java.util.Set<HashFunction> acceptedHashFunctions
    • Method Detail

      • getHashFunction

        public static HashFunction getHashFunction​(byte code)
      • getPoll

        public static PhasingPoll getPoll​(long id)
      • getVoterPhasedTransactions

        public static DbIterator<nxt.TransactionImpl> getVoterPhasedTransactions​(long voterId,
                                                                                 int from,
                                                                                 int to)
      • getHoldingPhasedTransactions

        public static DbIterator<nxt.TransactionImpl> getHoldingPhasedTransactions​(long holdingId,
                                                                                   VoteWeighting.VotingModel votingModel,
                                                                                   long accountId,
                                                                                   boolean withoutWhitelist,
                                                                                   int from,
                                                                                   int to)
      • getAccountPhasedTransactions

        public static DbIterator<nxt.TransactionImpl> getAccountPhasedTransactions​(long accountId,
                                                                                   int from,
                                                                                   int to)
      • getAccountPhasedTransactionCount

        public static int getAccountPhasedTransactionCount​(long accountId)
      • getLinkedPhasedTransactions

        public static java.util.List<? extends Transaction> getLinkedPhasedTransactions​(byte[] linkedTransactionFullHash)
      • getWhitelist

        public long[] getWhitelist()
      • getQuorum

        public long getQuorum()
      • getFullHash

        public byte[] getFullHash()
      • getLinkedFullHashes

        public java.util.List<byte[]> getLinkedFullHashes()
      • getHashedSecret

        public byte[] getHashedSecret()
      • getAlgorithm

        public byte getAlgorithm()
      • verifySecret

        public boolean verifySecret​(byte[] revealedSecret)
      • countVotes

        public long countVotes()
      • getId

        public final long getId()
      • getAccountId

        public final long getAccountId()
      • getFinishHeight

        public final int getFinishHeight()
      • getVoteWeighting

        public final VoteWeighting getVoteWeighting()