| Modifier and Type | Method and Description |
|---|---|
Optional<FieldElement> |
CommitmentTree.getBtrCommitment(byte[] scId) |
Optional<FieldElement> |
CommitmentTree.getCertCommitment(byte[] scId) |
Optional<FieldElement> |
CommitmentTree.getCommitment() |
Optional<List<FieldElement>> |
CommitmentTree.getCrtLeaves(byte[] scId) |
Optional<FieldElement> |
CommitmentTree.getCswCommitment(byte[] scId) |
Optional<FieldElement> |
CommitmentTree.getFwtCommitment(byte[] scId) |
Optional<FieldElement> |
CommitmentTree.getScCommitment(byte[] scId) |
Optional<FieldElement> |
CommitmentTree.getScCrCommitment(byte[] scId) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CommitmentTree.verifyScAbsence(byte[] scId,
ScAbsenceProof absenceProof,
FieldElement commitment) |
static boolean |
CommitmentTree.verifyScCommitment(FieldElement scCommitment,
ScExistenceProof existenceProof,
FieldElement commitment) |
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
FieldElement.createFromLong(long value) |
static FieldElement |
FieldElement.createRandom() |
static FieldElement |
FieldElement.createRandom(long seed) |
static FieldElement |
FieldElement.deserialize(byte[] fieldElementBytes) |
| Modifier and Type | Method and Description |
|---|---|
FieldElement |
MerklePath.apply(FieldElement leaf) |
FieldElement |
InMemoryOptimizedMerkleTree.root() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
InMemoryOptimizedMerkleTree.append(FieldElement input) |
FieldElement |
MerklePath.apply(FieldElement leaf) |
boolean |
MerklePath.verify(FieldElement leaf,
FieldElement root) |
boolean |
MerklePath.verify(int merkleTreeHeight,
FieldElement leaf,
FieldElement root) |
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
PoseidonHash.computePoseidonHash(FieldElement[] inputs)
Deprecated.
Kept for backward compatibility if needed. Use init -> update -> finalize
procedure instead.
|
FieldElement |
PoseidonHash.finalizeHash() |
FieldElement |
PoseidonHash.reset() |
FieldElement |
PoseidonHash.reset(FieldElement[] personalization) |
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
PoseidonHash.computePoseidonHash(FieldElement[] inputs)
Deprecated.
Kept for backward compatibility if needed. Use init -> update -> finalize
procedure instead.
|
static PoseidonHash |
PoseidonHash.getInstance(FieldElement[] personalization) |
static PoseidonHash |
PoseidonHash.getInstanceConstantLength(int inputSize,
FieldElement[] personalization) |
static PoseidonHash |
PoseidonHash.getInstanceVariableLength(boolean modRate,
FieldElement[] personalization) |
FieldElement |
PoseidonHash.reset(FieldElement[] personalization) |
void |
PoseidonHash.update(FieldElement input) |
| Modifier and Type | Method and Description |
|---|---|
SchnorrSignature |
SchnorrKeyPair.signMessage(FieldElement message) |
boolean |
SchnorrPublicKey.verifySignature(SchnorrSignature signature,
FieldElement message) |
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
NaiveThresholdSigProof.createMsgToSign(BackwardTransfer[] bt,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount) |
static FieldElement |
NaiveThresholdSigProof.getConstant(List<SchnorrPublicKey> schnorrPublicKeys,
long threshold) |
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
NaiveThresholdSigProof.createMsgToSign(BackwardTransfer[] bt,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount) |
static CreateProofResult |
NaiveThresholdSigProof.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 |
NaiveThresholdSigProof.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 |
NaiveThresholdSigProof.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 boolean |
NaiveThresholdSigProof.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 |
NaiveThresholdSigProof.verifyProof(List<BackwardTransfer> btList,
FieldElement scId,
int epochNumber,
FieldElement endCumulativeScTxCommTreeRoot,
long btrFee,
long ftMinAmount,
FieldElement constant,
long quality,
byte[] proof,
String verificationKeyPath) |
| Modifier and Type | Method and Description |
|---|---|
FieldElement |
VRFProveResult.getVRFOutput() |
FieldElement |
VRFPublicKey.proofToHash(VRFProof proof,
FieldElement message) |
| Modifier and Type | Method and Description |
|---|---|
FieldElement |
VRFPublicKey.proofToHash(VRFProof proof,
FieldElement message) |
VRFProveResult |
VRFKeyPair.prove(FieldElement message) |
| Constructor and Description |
|---|
VRFProveResult(VRFProof vrfProof,
FieldElement vrfOutput) |
Copyright © 2020–2021. All rights reserved.