Class ProvingSystem


  • public class ProvingSystem
    extends Object
    • Constructor Detail

      • ProvingSystem

        public ProvingSystem()
    • 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 keys
        segmentSize - - 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)