test_class.file: pross-common/src/test/java/com/ibm/pross/common/util/pvss/PublicSharingTest.java
test_class.identifier: PublicSharingTest
test_case.body: @Test
  	public void testVerifyShare() {
  		fail("Not yet implemented");
  	}
test_case.class_method_signature: PublicSharingTest.testVerifyShare()
test_case.full_signature: @Test public void testVerifyShare()
test_case.identifier: testVerifyShare
test_case.invocations: fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testVerifyShare()
focal_class.declarator: serialVersionUID = -7866009350143080725L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -7866009350143080725L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: pedersenCommitments
focal_class.modifier: private final
focal_class.original_string: private final EcPoint[] pedersenCommitments;
focal_class.type: EcPoint[]
focal_class.var_name: pedersenCommitments
focal_class.declarator: encryptedShares1
focal_class.modifier: private final
focal_class.original_string: private final BigInteger[] encryptedShares1;
focal_class.type: BigInteger[]
focal_class.var_name: encryptedShares1
focal_class.declarator: encryptedShares2
focal_class.modifier: private final
focal_class.original_string: private final BigInteger[] encryptedShares2;
focal_class.type: BigInteger[]
focal_class.var_name: encryptedShares2
focal_class.declarator: proofs
focal_class.modifier: private final
focal_class.original_string: private final PedersenEqRangeProof[] proofs;
focal_class.type: PedersenEqRangeProof[]
focal_class.var_name: proofs
focal_class.declarator: numShares
focal_class.modifier: private final
focal_class.original_string: private final int numShares;
focal_class.type: int
focal_class.var_name: numShares
focal_class.declarator: threshold
focal_class.modifier: private final
focal_class.original_string: private final int threshold;
focal_class.type: int
focal_class.var_name: threshold
focal_class.file: pross-common/src/main/java/com/ibm/pross/common/util/pvss/PublicSharing.java
focal_class.identifier: PublicSharing
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: PublicSharing.PublicSharing(final EcPoint[] pedersenCommitments, final BigInteger[] encryptedShares1,
  			final BigInteger[] encryptedShares2, final PedersenEqRangeProof[] proofs)
focal_class.full_signature: public  PublicSharing(final EcPoint[] pedersenCommitments, final BigInteger[] encryptedShares1,
  			final BigInteger[] encryptedShares2, final PedersenEqRangeProof[] proofs)
focal_class.identifier: PublicSharing
focal_class.modifiers: public
focal_class.parameters: (final EcPoint[] pedersenCommitments, final BigInteger[] encryptedShares1,
  			final BigInteger[] encryptedShares2, final PedersenEqRangeProof[] proofs)
focal_class.signature:  PublicSharing(final EcPoint[] pedersenCommitments, final BigInteger[] encryptedShares1,
  			final BigInteger[] encryptedShares2, final PedersenEqRangeProof[] proofs)
focal_class.class_method_signature: PublicSharing.getPedersenCommitments()
focal_class.full_signature: public EcPoint[] getPedersenCommitments()
focal_class.identifier: getPedersenCommitments
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EcPoint[]
focal_class.signature: EcPoint[] getPedersenCommitments()
focal_class.class_method_signature: PublicSharing.getEncryptedShares1()
focal_class.full_signature: public BigInteger[] getEncryptedShares1()
focal_class.identifier: getEncryptedShares1
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BigInteger[]
focal_class.signature: BigInteger[] getEncryptedShares1()
focal_class.class_method_signature: PublicSharing.getEncryptedShares2()
focal_class.full_signature: public BigInteger[] getEncryptedShares2()
focal_class.identifier: getEncryptedShares2
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BigInteger[]
focal_class.signature: BigInteger[] getEncryptedShares2()
focal_class.class_method_signature: PublicSharing.getProofs()
focal_class.full_signature: public PedersenEqRangeProof[] getProofs()
focal_class.identifier: getProofs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PedersenEqRangeProof[]
focal_class.signature: PedersenEqRangeProof[] getProofs()
focal_class.class_method_signature: PublicSharing.getNumShares()
focal_class.full_signature: public int getNumShares()
focal_class.identifier: getNumShares
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumShares()
focal_class.class_method_signature: PublicSharing.getThreshold()
focal_class.full_signature: public int getThreshold()
focal_class.identifier: getThreshold
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getThreshold()
focal_class.class_method_signature: PublicSharing.verifyAllShares(final PaillierPublicKey[] shareholderKeys)
focal_class.full_signature: public boolean verifyAllShares(final PaillierPublicKey[] shareholderKeys)
focal_class.identifier: verifyAllShares
focal_class.modifiers: public
focal_class.parameters: (final PaillierPublicKey[] shareholderKeys)
focal_class.return: boolean
focal_class.signature: boolean verifyAllShares(final PaillierPublicKey[] shareholderKeys)
focal_class.class_method_signature: PublicSharing.verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey)
focal_class.full_signature: public boolean verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey)
focal_class.identifier: verifyShare
focal_class.modifiers: public
focal_class.parameters: (final int shareIndex, final PaillierPublicKey encryptionKey)
focal_class.return: boolean
focal_class.signature: boolean verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey)
focal_class.class_method_signature: PublicSharing.getSecretCommitment()
focal_class.full_signature: public EcPoint getSecretCommitment()
focal_class.identifier: getSecretCommitment
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EcPoint
focal_class.signature: EcPoint getSecretCommitment()
focal_class.class_method_signature: PublicSharing.accessShare1(final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.full_signature: public ShamirShare accessShare1(final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.identifier: accessShare1
focal_class.modifiers: public
focal_class.parameters: (final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.return: ShamirShare
focal_class.signature: ShamirShare accessShare1(final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.class_method_signature: PublicSharing.accessShare2(final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.full_signature: public ShamirShare accessShare2(final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.identifier: accessShare2
focal_class.modifiers: public
focal_class.parameters: (final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.return: ShamirShare
focal_class.signature: ShamirShare accessShare2(final int shareIndex, final PaillierPrivateKey decryptionKey)
focal_class.class_method_signature: PublicSharing.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: PublicSharing.getSize()
focal_class.full_signature: public long getSize()
focal_class.identifier: getSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSize()
focal_class.class_method_signature: PublicSharing.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: PublicSharing.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_method.body: public boolean verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey) {
  
  		// Get the corresponding share to validate
  		final BigInteger encryptedShare1 = this.encryptedShares1[shareIndex];
  		final BigInteger encryptedShare2 = this.encryptedShares2[shareIndex];
  
  		// Use the Pedersen commitments to determine g^share_i using polynomial
  		// evaluation "in the exponent"
  		final BigInteger xPosition = BigInteger.valueOf(shareIndex + 1);
  		final EcPoint shareCommitment = PublicSharingGenerator.interpolatePedersonCommitments(xPosition,
  				this.pedersenCommitments);
  
  		// Check the proof
  		final PedersenEqRangeProof proof = this.proofs[shareIndex];
  		return PedersenEqRangeProofVerifier.isValid(proof, encryptedShare1, encryptedShare2, shareCommitment,
  				encryptionKey);
  	}
focal_method.class_method_signature: PublicSharing.verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey)
focal_method.full_signature: public boolean verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey)
focal_method.identifier: verifyShare
focal_method.invocations: valueOf interpolatePedersonCommitments isValid
focal_method.modifiers: public
focal_method.parameters: (final int shareIndex, final PaillierPublicKey encryptionKey)
focal_method.return: boolean
focal_method.signature: boolean verifyShare(final int shareIndex, final PaillierPublicKey encryptionKey)