class PublicSharing implements Serializable {

	public boolean verifyAllShares(final PaillierPublicKey[] shareholderKeys) {

		// Make sure each proof can be verified
		for (int i = 0; i < shareholderKeys.length; i++) {
			if (!verifyShare(i, shareholderKeys[i])) {
				return false;
			}
		}

		// Return true only if all proofs were validated
		return true;
	}

	public  PublicSharing(final EcPoint[] pedersenCommitments, final BigInteger[] encryptedShares1,
			final BigInteger[] encryptedShares2, final PedersenEqRangeProof[] proofs);

}