Package com.horizen.provingsystemnative
Class ProvingSystem
- java.lang.Object
-
- com.horizen.provingsystemnative.ProvingSystem
-
public class ProvingSystem extends Object
-
-
Constructor Summary
Constructors Constructor Description ProvingSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckProofVkSize(boolean zk, int supportedSegmentSize, int maxProofSize, int maxVkSize, String verificationKeyPath)static booleangenerateDLogKeys(ProvingSystemType psType, int segmentSize)Generates DLOG keys of specified size and stores them in memorystatic ProvingSystemTypegetProofProvingSystemType(byte[] proof)static ProvingSystemTypegetProverKeyProvingSystemType(String provingKeyPath)static ProvingSystemTypegetVerifierKeyProvingSystemType(String verifierKeyPath)
-
-
-
Method Detail
-
generateDLogKeys
public static boolean generateDLogKeys(ProvingSystemType psType, int segmentSize)
Generates DLOG keys of specified size and stores them in memory- Parameters:
psType- - the proving system for which generating the keyssegmentSize- - the size of the keys- Returns:
- True if operation was successfull, False otherwise.
-
checkProofVkSize
public static boolean checkProofVkSize(boolean zk, int supportedSegmentSize, int maxProofSize, int maxVkSize, String verificationKeyPath)
-
getProverKeyProvingSystemType
public static ProvingSystemType getProverKeyProvingSystemType(String provingKeyPath)
-
getVerifierKeyProvingSystemType
public static ProvingSystemType getVerifierKeyProvingSystemType(String verifierKeyPath)
-
getProofProvingSystemType
public static ProvingSystemType getProofProvingSystemType(byte[] proof)
-
-