meerkat-java/mixer/src/main/java/necessary/General.java

26 lines
605 B
Java
Raw Normal View History

2015-12-11 07:41:26 -05:00
package necessary;
import meerkat.protobuf.ConcreteCrypto;
import meerkat.protobuf.Crypto;
import com.google.protobuf.ByteString;
2015-12-14 10:54:44 -05:00
import meerkat.protobuf.Mixing;
import java.math.BigInteger;
2015-12-11 07:41:26 -05:00
public interface General {
/*
given RerandomizableEncryptedMessage returns an equivalent ElGamalCiphertext
*/
ConcreteCrypto.ElGamalCiphertext calcRerandomizable2ElGamal(Crypto.RerandomizableEncryptedMessage enc);
2015-12-14 10:54:44 -05:00
ByteString getG();
ByteString getH();
2015-12-11 07:41:26 -05:00
/*
2015-12-14 10:54:44 -05:00
fiat shamir assumption
2015-12-11 07:41:26 -05:00
*/
2015-12-14 10:54:44 -05:00
BigInteger hash(Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle input);
2015-12-11 07:41:26 -05:00
}