资 源 简 介
Usage Example:
//create a data set to test the accumulator
ArrayList dataSet = new ArrayList ();
dataSet.add("Hello");
dataSet.add("World");
//create the RSAAccumulator object with a bit size for the random number
RSAAccumulator rsaAccumulator = new RSAAccumulator(256);
//insert the first element
rsaAccumulator.insertElement(dataSet.get(0));
//get the current accumulator and use it to insert the next data
BigInteger curAcc = rsaAccumulator.getAccumulator();
rsaAccumulator.insertElement(dataSet.get(1), curAcc);
curAcc = rsaAccumulator.getAccumulator();
//however, you can directly insert an element like the first data. That means, rsaAccumulator.insertElement(dataSet.get(1)); will also work.
//repeat the above step to insert more data
//To check the existence of an item, first create the identity
BigInteger identity = rsa