public class NaiveThresholdSigProof extends Object
| Constructor and Description |
|---|
NaiveThresholdSigProof() |
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
createMsgToSign(BackwardTransfer[] bt,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount) |
static CreateProofResult |
createProof(List<BackwardTransfer> btList,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount,
List<SchnorrSignature> schnorrSignatureList,
List<SchnorrPublicKey> schnorrPublicKeyList,
long threshold,
String provingKeyPath,
boolean zk) |
static CreateProofResult |
createProof(List<BackwardTransfer> btList,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount,
List<SchnorrSignature> schnorrSignatureList,
List<SchnorrPublicKey> schnorrPublicKeyList,
long threshold,
String provingKeyPath,
boolean checkProvingKey,
boolean zk) |
static CreateProofResult |
createProof(List<BackwardTransfer> btList,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount,
List<SchnorrSignature> schnorrSignatureList,
List<SchnorrPublicKey> schnorrPublicKeyList,
long threshold,
String provingKeyPath,
boolean checkProvingKey,
boolean zk,
boolean compressed_pk,
boolean compress_proof) |
static FieldElement |
getConstant(List<SchnorrPublicKey> schnorrPublicKeys,
long threshold) |
static boolean |
setup(ProvingSystemType psType,
long maxPks,
String provingKeyPath,
String verificationKeyPath,
boolean zk,
int maxProofSize,
int maxVkSize) |
static boolean |
setup(ProvingSystemType psType,
long maxPks,
String provingKeyPath,
String verificationKeyPath,
boolean zk,
int maxProofSize,
int maxVkSize,
boolean compressPk,
boolean compressVk) |
static boolean |
setup(ProvingSystemType psType,
long maxPks,
String provingKeyPath,
String verificationKeyPath,
int maxProofSize,
int maxVkSize) |
static boolean |
verifyProof(List<BackwardTransfer> btList,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount,
FieldElement constant,
long quality,
byte[] proof,
boolean checkProof,
String verificationKeyPath,
boolean checkVerificationKey) |
static boolean |
verifyProof(List<BackwardTransfer> btList,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount,
FieldElement constant,
long quality,
byte[] proof,
String verificationKeyPath) |
public static FieldElement getConstant(List<SchnorrPublicKey> schnorrPublicKeys, long threshold)
public static FieldElement createMsgToSign(BackwardTransfer[] bt, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount)
public static boolean setup(ProvingSystemType psType, long maxPks, String provingKeyPath, String verificationKeyPath, boolean zk, int maxProofSize, int maxVkSize, boolean compressPk, boolean compressVk)
public static boolean setup(ProvingSystemType psType, long maxPks, String provingKeyPath, String verificationKeyPath, boolean zk, int maxProofSize, int maxVkSize)
public static boolean setup(ProvingSystemType psType, long maxPks, String provingKeyPath, String verificationKeyPath, int maxProofSize, int maxVkSize)
public static CreateProofResult createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, String provingKeyPath, boolean checkProvingKey, boolean zk, boolean compressed_pk, boolean compress_proof)
public static CreateProofResult createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, String provingKeyPath, boolean checkProvingKey, boolean zk)
public static CreateProofResult createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, String provingKeyPath, boolean zk)
public static boolean verifyProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, FieldElement constant, long quality, byte[] proof, boolean checkProof, String verificationKeyPath, boolean checkVerificationKey)
public static boolean verifyProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, FieldElement constant, long quality, byte[] proof, String verificationKeyPath)
Copyright © 2020–2021. All rights reserved.