Class BatchBuilder


  • public final class BatchBuilder
    extends java.lang.Object
    Batch format: TIMESTAMP(long) + N_NONCES(int) + SEED(long) + N_MESSAGES(int) + N_MESSAGES*[MSGSIZE(int),MSG(byte),SIG(byte)] + The methods does not try to enforce any constraint, so be correct when using it.
    • Constructor Summary

      Constructors 
      Constructor Description
      BatchBuilder​(long seed)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] makeBatch​(java.util.List<TOMMessage> msgs, int numNounces, long timestamp, boolean useSignatures)  
      byte[] makeBatch​(java.util.List<TOMMessage> msgs, int numNounces, long seed, long timestamp, boolean useSignatures)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchBuilder

        public BatchBuilder​(long seed)
    • Method Detail

      • makeBatch

        public byte[] makeBatch​(java.util.List<TOMMessage> msgs,
                                int numNounces,
                                long timestamp,
                                boolean useSignatures)
      • makeBatch

        public byte[] makeBatch​(java.util.List<TOMMessage> msgs,
                                int numNounces,
                                long seed,
                                long timestamp,
                                boolean useSignatures)