Uses of Class
com.horizen.librustsidechains.FieldElement
-
-
Uses of FieldElement in com.horizen.certnative
Methods in com.horizen.certnative that return FieldElement Modifier and Type Method Description static FieldElementNaiveThresholdSignatureWKeyRotation. createMsgToSign(WithdrawalCertificate withdrawalCertificate)static FieldElementNaiveThresholdSigProof. createMsgToSign(BackwardTransfer[] bt, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<FieldElement> customFields)Compute message to be signedstatic FieldElementNaiveThresholdSignatureWKeyRotation. getConstant(FieldElement genesisKeyRootHash, long threshold)static FieldElementNaiveThresholdSigProof. getConstant(List<SchnorrPublicKey> schnorrPublicKeys, long threshold)Compute constant parameterFieldElement[]WithdrawalCertificate. getCustomFields()FieldElementWithdrawalCertificate. getHash()FieldElementWithdrawalCertificate. getMcbScTxsCom()static FieldElementNaiveThresholdSignatureWKeyRotation. getMsgToSignForMasterKeyUpdate(SchnorrPublicKey newMasterKey, int epochNumber, FieldElement scId)static FieldElementNaiveThresholdSignatureWKeyRotation. getMsgToSignForSigningKeyUpdate(SchnorrPublicKey newSigningKey, int epochNumber, FieldElement scId)FieldElementWithdrawalCertificate. getScId()static FieldElementNaiveThresholdSignatureWKeyRotation. nativeGetMsgToSignForMasterKeyUpdate(SchnorrPublicKey newMasterKey, int epochNumber, FieldElement scId)static FieldElementNaiveThresholdSignatureWKeyRotation. nativeGetMsgToSignForSigningKeyUpdate(SchnorrPublicKey newSigningKey, int epochNumber, FieldElement scId)Methods in com.horizen.certnative with parameters of type FieldElement Modifier and Type Method Description static FieldElementNaiveThresholdSigProof. createMsgToSign(BackwardTransfer[] bt, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<FieldElement> customFields)Compute message to be signedstatic CreateProofResultNaiveThresholdSignatureWKeyRotation. createProof(ValidatorKeysUpdatesList keysSignaturesList, WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, List<SchnorrSignature> certSignaturesList, long maxPks, long threshold, FieldElement genesisKeysRootHash, String provingKeyPath, boolean zk)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSignatureWKeyRotation. createProof(ValidatorKeysUpdatesList keysSignaturesList, WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, List<SchnorrSignature> certSignaturesList, long maxPks, long threshold, FieldElement genesisKeysRootHash, Optional<Integer> supportedDegree, String provingKeyPath, boolean zk)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSignatureWKeyRotation. createProof(ValidatorKeysUpdatesList keysSignaturesList, WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, List<SchnorrSignature> certSignaturesList, long maxPks, long threshold, FieldElement genesisKeysRootHash, Optional<Integer> supportedDegree, String provingKeyPath, boolean checkProvingKey, boolean zk)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSignatureWKeyRotation. createProof(ValidatorKeysUpdatesList keysSignaturesList, WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, List<SchnorrSignature> certSignaturesList, long maxPks, long threshold, FieldElement genesisKeysRootHash, Optional<Integer> supportedDegree, String provingKeyPath, boolean checkProvingKey, boolean zk, boolean compressedPk, boolean compressProof)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSigProof. createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, List<FieldElement> customFields, String provingKeyPath, boolean zk)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSigProof. createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, List<FieldElement> customFields, Optional<Integer> segmentSize, String provingKeyPath, boolean zk)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSigProof. createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, List<FieldElement> customFields, Optional<Integer> segmentSize, String provingKeyPath, boolean checkProvingKey, boolean zk)Compute proof for given parametersstatic CreateProofResultNaiveThresholdSigProof. createProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, List<FieldElement> customFields, Optional<Integer> segmentSize, String provingKeyPath, boolean checkProvingKey, boolean zk, boolean compressed_pk, boolean compress_proof)Compute proof for given parametersstatic Optional<String>NaiveThresholdSignatureWKeyRotation. debugCircuit(ValidatorKeysUpdatesList keysSignaturesList, WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, List<SchnorrSignature> certSignatures, long maxPks, long threshold, FieldElement genesisKeysRootHash)Checks if possible to create a valid proof with the supplied data.static Optional<String>NaiveThresholdSigProof. debugCircuit(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<SchnorrSignature> schnorrSignatureList, List<SchnorrPublicKey> schnorrPublicKeyList, long threshold, List<FieldElement> customFields)Checks if possible to create a valid proof with the supplied data.static FieldElementNaiveThresholdSignatureWKeyRotation. getConstant(FieldElement genesisKeyRootHash, long threshold)static FieldElementNaiveThresholdSignatureWKeyRotation. getMsgToSignForMasterKeyUpdate(SchnorrPublicKey newMasterKey, int epochNumber, FieldElement scId)static FieldElementNaiveThresholdSignatureWKeyRotation. getMsgToSignForSigningKeyUpdate(SchnorrPublicKey newSigningKey, int epochNumber, FieldElement scId)static FieldElementNaiveThresholdSignatureWKeyRotation. nativeGetMsgToSignForMasterKeyUpdate(SchnorrPublicKey newMasterKey, int epochNumber, FieldElement scId)static FieldElementNaiveThresholdSignatureWKeyRotation. nativeGetMsgToSignForSigningKeyUpdate(SchnorrPublicKey newSigningKey, int epochNumber, FieldElement scId)voidWithdrawalCertificate. setCustomFields(FieldElement[] customFields)voidWithdrawalCertificate. setMcbScTxsCom(FieldElement mcbScTxsCom)voidWithdrawalCertificate. setScId(FieldElement scId)static booleanNaiveThresholdSignatureWKeyRotation. verifyProof(WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, FieldElement genesisConstant, byte[] proof, boolean checkProof, String verificationKeyPath, boolean checkVerificationKey)Verify proof using the supplied parametersstatic booleanNaiveThresholdSignatureWKeyRotation. verifyProof(WithdrawalCertificate withdrawalCertificate, Optional<WithdrawalCertificate> prevWithdrawalCertificate, FieldElement genesisConstant, byte[] proof, String verificationKeyPath)Verify proof using the supplied parametersstatic booleanNaiveThresholdSigProof. verifyProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, FieldElement constant, long quality, List<FieldElement> customFields, byte[] proof, boolean checkProof, String verificationKeyPath, boolean checkVerificationKey)Verify proof using the supplied parametersstatic booleanNaiveThresholdSigProof. verifyProof(List<BackwardTransfer> btList, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, FieldElement constant, long quality, List<FieldElement> customFields, byte[] proof, String verificationKeyPath)Verify proof using the supplied parametersMethod parameters in com.horizen.certnative with type arguments of type FieldElement Modifier and Type Method Description static FieldElementNaiveThresholdSigProof. createMsgToSign(BackwardTransfer[] bt, FieldElement scId, int epochNumber, FieldElement endCumulativeScTxCommTreeRoot, long btrFee, long ftMinAmount, List<FieldElement> customFields)Compute message to be signedConstructors in com.horizen.certnative with parameters of type FieldElement Constructor Description WithdrawalCertificate(FieldElement scId, int epochNumber, List<BackwardTransfer> btList, long quality, FieldElement mcbScTxsCom, long ftMinAmount, long btrMinFee, List<FieldElement> customFields)WithdrawalCertificate(FieldElement scId, int epochNumber, List<BackwardTransfer> btList, FieldElement mcbScTxsCom, long ftMinAmount, long btrMinFee, List<FieldElement> customFields) -
Uses of FieldElement in com.horizen.commitmenttreenative
Methods in com.horizen.commitmenttreenative that return types with arguments of type FieldElement Modifier and Type Method Description Optional<FieldElement>CommitmentTree. getBtrCommitment(byte[] scId)Optional<List<FieldElement>>CommitmentTree. getBtrLeaves(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<List<FieldElement>>CommitmentTree. getFwtLeaves(byte[] scId)Optional<FieldElement>CommitmentTree. getScCommitment(byte[] scId)Optional<FieldElement>CommitmentTree. getScCrCommitment(byte[] scId)Methods in com.horizen.commitmenttreenative with parameters of type FieldElement Modifier and Type Method Description static booleanCommitmentTree. verifyScAbsence(byte[] scId, ScAbsenceProof absenceProof, FieldElement commitment)static booleanCommitmentTree. verifyScCommitment(FieldElement scCommitment, ScExistenceProof existenceProof, FieldElement commitment) -
Uses of FieldElement in com.horizen.cswnative
Methods in com.horizen.cswnative that return FieldElement Modifier and Type Method Description FieldElementCswFtProverData. getMcbScTxsComStart()FieldElementCswSysData. getNullifier()FieldElementCswFtProverData. getScbBtrTreeRoot()FieldElementCswFtProverData. getScCreationTxHash()FieldElement[]CswFtProverData. getScTxsComHashes()FieldElementCswFtProverData. getwCertTreeRoot()Methods in com.horizen.cswnative that return types with arguments of type FieldElement Modifier and Type Method Description Optional<FieldElement>CswSysData. getConstant()Optional<FieldElement>CswSysData. getMcbScTxsComEnd()Optional<FieldElement>CswSysData. getScLastWcertHash()Methods in com.horizen.cswnative with parameters of type FieldElement Modifier and Type Method Description static byte[]CswProof. createProof(int rangeSize, int numCustomFields, CswSysData sysData, FieldElement scId, Optional<WithdrawalCertificate> lastWcert, Optional<CswUtxoProverData> utxoData, Optional<CswFtProverData> ftData, String provingKeyPath)Compute proof for given parameters.static byte[]CswProof. createProof(int rangeSize, int numCustomFields, CswSysData sysData, FieldElement scId, Optional<WithdrawalCertificate> lastWcert, Optional<CswUtxoProverData> utxoData, Optional<CswFtProverData> ftData, Optional<Integer> segmentSize, String provingKeyPath)Compute proof for given parameters.static byte[]CswProof. createProof(int rangeSize, int numCustomFields, CswSysData sysData, FieldElement scId, Optional<WithdrawalCertificate> lastWcert, Optional<CswUtxoProverData> utxoData, Optional<CswFtProverData> ftData, Optional<Integer> segmentSize, String provingKeyPath, boolean zk)Compute proof for given parametersstatic byte[]CswProof. createProof(int rangeSize, int numCustomFields, CswSysData sysData, FieldElement scId, Optional<WithdrawalCertificate> lastWcert, Optional<CswUtxoProverData> utxoData, Optional<CswFtProverData> ftData, Optional<Integer> segmentSize, String provingKeyPath, boolean checkProvingKey, boolean zk)Compute proof for given parametersstatic byte[]CswProof. createProof(int rangeSize, int numCustomFields, CswSysData sysData, FieldElement scId, Optional<WithdrawalCertificate> lastWcert, Optional<CswUtxoProverData> utxoData, Optional<CswFtProverData> ftData, Optional<Integer> segmentSize, String provingKeyPath, boolean checkProvingKey, boolean zk, boolean compressed_pk, boolean compress_proof)Compute proof for given parametersstatic Optional<String>CswProof. debugCircuit(int rangeSize, int numCustomFields, CswSysData sysData, FieldElement scId, Optional<WithdrawalCertificate> lastWcert, Optional<CswUtxoProverData> utxoData, Optional<CswFtProverData> ftData)Checks if possible to create a valid proof with the supplied data.static booleanCswProof. verifyProof(CswSysData sysData, FieldElement scId, byte[] proof, boolean checkProof, String verificationKeyPath, boolean checkVerificationKey)Verify proof using the supplied parametersstatic booleanCswProof. verifyProof(CswSysData sysData, FieldElement scId, byte[] proof, String verificationKeyPath)Verify proof using the supplied parametersConstructors in com.horizen.cswnative with parameters of type FieldElement Constructor Description CswFtProverData(ForwardTransferOutput output, byte[] ftInputSecretKey, FieldElement mcbScTxsComStart, MerklePath merklePathToScHash, MerklePath ftTreePath, FieldElement scCreationCommitment, FieldElement scbBtrTreeRoot, FieldElement wCertTreeRoot, List<FieldElement> scTxsComHashes)CswSysData(Optional<FieldElement> constant, Optional<FieldElement> scLastWcertHash, Optional<FieldElement> mcbScTxsComEnd, long amount, FieldElement nullifier, byte[] receiver)Constructor parameters in com.horizen.cswnative with type arguments of type FieldElement Constructor Description CswFtProverData(ForwardTransferOutput output, byte[] ftInputSecretKey, FieldElement mcbScTxsComStart, MerklePath merklePathToScHash, MerklePath ftTreePath, FieldElement scCreationCommitment, FieldElement scbBtrTreeRoot, FieldElement wCertTreeRoot, List<FieldElement> scTxsComHashes)CswSysData(Optional<FieldElement> constant, Optional<FieldElement> scLastWcertHash, Optional<FieldElement> mcbScTxsComEnd, long amount, FieldElement nullifier, byte[] receiver) -
Uses of FieldElement in com.horizen.fwtnative
Methods in com.horizen.fwtnative that return FieldElement Modifier and Type Method Description FieldElementForwardTransferOutput. getHash()FieldElementForwardTransferOutput. getNullifier() -
Uses of FieldElement in com.horizen.librustsidechains
Methods in com.horizen.librustsidechains that return FieldElement Modifier and Type Method Description static FieldElementFieldElement. createFromLong(long value)Convert an integer value to a field elementstatic FieldElementFieldElement. createRandom()static FieldElementFieldElement. createRandom(long seed)static FieldElementFieldElement. createRandom(Random r)static FieldElementFieldElement. deserialize(byte[] fieldElementBytes)Deserialize a FieldElement from "fieldElementBytes"static FieldElementFieldElement. joinAt(FieldElement fe1, int index1, FieldElement fe2, int index2)The inverse of the splitAt() method: join fe1.bytes[0..index1) and fe2.bytes[0..index2) in a single byte array and deserialize a FieldElement out of it.static FieldElementFieldElement. joinAt(FieldElement fe1, int index1, FieldElement fe2, int index2, boolean checkZeroAfterIdx)The inverse of the splitAt() method: join fe1.bytes[0..index1) and fe2.bytes[0..index2) in a single byte array and deserialize a FieldElement out of it.Methods in com.horizen.librustsidechains that return types with arguments of type FieldElement Modifier and Type Method Description List<FieldElement>FieldElement. splitAt(int index)Split this FieldElement into two FieldElements.Methods in com.horizen.librustsidechains with parameters of type FieldElement Modifier and Type Method Description static FieldElementFieldElement. joinAt(FieldElement fe1, int index1, FieldElement fe2, int index2)The inverse of the splitAt() method: join fe1.bytes[0..index1) and fe2.bytes[0..index2) in a single byte array and deserialize a FieldElement out of it.static FieldElementFieldElement. joinAt(FieldElement fe1, int index1, FieldElement fe2, int index2, boolean checkZeroAfterIdx)The inverse of the splitAt() method: join fe1.bytes[0..index1) and fe2.bytes[0..index2) in a single byte array and deserialize a FieldElement out of it. -
Uses of FieldElement in com.horizen.merkletreenative
Methods in com.horizen.merkletreenative that return FieldElement Modifier and Type Method Description FieldElementMerklePath. apply(FieldElement leaf)FieldElementInMemoryAppendOnlyMerkleTree. root()FieldElementInMemorySparseMerkleTree. root()Return the root of the tree, only if the tree is in "finalized" state.Methods in com.horizen.merkletreenative with parameters of type FieldElement Modifier and Type Method Description booleanInMemoryAppendOnlyMerkleTree. append(FieldElement input)FieldElementMerklePath. apply(FieldElement leaf)booleanMerklePath. verify(int merkleTreeHeight, FieldElement leaf, FieldElement root)booleanMerklePath. verify(FieldElement leaf, FieldElement root)Method parameters in com.horizen.merkletreenative with type arguments of type FieldElement Modifier and Type Method Description voidInMemorySparseMerkleTree. addLeaves(Map<Long,FieldElement> leaves)Add the specified leaves at the specified positions inside the tree. -
Uses of FieldElement in com.horizen.poseidonnative
Methods in com.horizen.poseidonnative that return FieldElement Modifier and Type Method Description static FieldElementPoseidonHash. computePoseidonHash(FieldElement[] inputs)Deprecated.Kept for backward compatibility if needed.FieldElementPoseidonHash. finalizeHash()FieldElementPoseidonHashable. getHash()Compute Poseidon Hash of this instanceMethods in com.horizen.poseidonnative with parameters of type FieldElement Modifier and Type Method Description static FieldElementPoseidonHash. computePoseidonHash(FieldElement[] inputs)Deprecated.Kept for backward compatibility if needed.static PoseidonHashPoseidonHash. getInstance(FieldElement[] personalization)static PoseidonHashPoseidonHash. getInstanceConstantLength(int inputSize, FieldElement[] personalization)static PoseidonHashPoseidonHash. getInstanceVariableLength(boolean modRate, FieldElement[] personalization)voidPoseidonHash. reset(FieldElement[] personalization)voidPoseidonHash. update(FieldElement input) -
Uses of FieldElement in com.horizen.schnorrnative
Methods in com.horizen.schnorrnative that return FieldElement Modifier and Type Method Description FieldElementSchnorrPublicKey. getHash()static FieldElementValidatorKeysUpdatesList. getInputKeysRootHash(SchnorrPublicKey[] signingKeys, SchnorrPublicKey[] masterKeys, long maxPks)Utility: computes the validator keys merkle root given the set of signing keys and master keys passed as input to the function.FieldElementValidatorKeysUpdatesList. getKeysRootHash()Computes the current validator keys merkle root.FieldElementValidatorKeysUpdatesList. getUpdatedKeysRootHash()Computes the updated validator keys merkle root.Methods in com.horizen.schnorrnative with parameters of type FieldElement Modifier and Type Method Description SchnorrSignatureSchnorrKeyPair. signMessage(FieldElement message)booleanSchnorrPublicKey. verifySignature(SchnorrSignature signature, FieldElement message) -
Uses of FieldElement in com.horizen.scutxonative
Methods in com.horizen.scutxonative that return FieldElement Modifier and Type Method Description FieldElementScUtxoOutput. getHash()FieldElementScUtxoOutput. getNullifier() -
Uses of FieldElement in com.horizen.vrfnative
Methods in com.horizen.vrfnative that return FieldElement Modifier and Type Method Description FieldElementVRFProveResult. getVRFOutput()FieldElementVRFPublicKey. proofToHash(VRFProof proof, FieldElement message)Methods in com.horizen.vrfnative with parameters of type FieldElement Modifier and Type Method Description FieldElementVRFPublicKey. proofToHash(VRFProof proof, FieldElement message)VRFProveResultVRFKeyPair. prove(FieldElement message)Constructors in com.horizen.vrfnative with parameters of type FieldElement Constructor Description VRFProveResult(VRFProof vrfProof, FieldElement vrfOutput)
-