Package bftsmart.tom.util
Class BatchBuilder
- java.lang.Object
-
- bftsmart.tom.util.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)
-
-
-
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)
-
-