public class Zkp extends Object
| 构造器和说明 |
|---|
Zkp() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
liftedElgamalContractHomomorphicAdd(byte[] first,
byte[] second,
byte[] res)
同态加
|
static int |
liftedElgamalContractHomomorphicSub(byte[] first,
byte[] second,
byte[] res)
同态减
|
static int |
liftedElgamalContractRangeVerify(byte[][] ciphertext,
int size,
int perValueBitSize,
byte[] publicKey,
byte[] proof,
int proofLen,
int[] verifyResult) |
static int |
liftedElgamalContractZeroCheckVerify(byte[] proof,
int proofLen,
int[] verifyResult) |
static int |
liftedElgamalRangeContextFree()
free 范围证明上下文
|
static int |
liftedElgamalRangeContextInit(int genNums)
范围证明上下初始化 需要使用 lifted_elgamal_range_context
|
static int |
liftedElgamalRangeProofFree(byte[] proof)
释放 proof
|
static byte[] |
liftedElgamalRangeProve(byte[][] ciphertext,
long[] msg,
int size,
int perValueBitSize,
byte[] publicKey,
byte[] privateKey,
int[] proofLen)
证明 需要使用 lifted_elgamal_range_context
|
static int |
liftedElgamalRangeVerify(byte[][] ciphertext,
int size,
int perValueBitSize,
byte[] publicKey,
byte[] proof,
int proofLen,
int[] verifyResult)
verify 需要使用 lifted_elgamal_range_context
|
static int |
liftedElgamalZeroCheckContextFree()
释放 零值检测 证明的上下文,需要使用 lifted_elgamal_zero_check_context
|
static int |
liftedElgamalZeroCheckContextInit()
初始化 零值检测 证明的上下文,需要使用 lifted_elgamal_zero_check_context
|
static int |
liftedElgamalZeroCheckProofFree(byte[] proof)
释放零值检测证明
|
static byte[] |
liftedElgamalZeroCheckProve(byte[] ciphertext,
byte[] privateKey,
int[] proofLen)
零值检测prove 需要使用 lifted_elgamal_zero_check_context
|
static int |
liftedElgamalZeroCheckVerify(byte[] ciphertext,
byte[] proof,
int proofLen,
int[] verifyResult)
零值检测证明验证 需要使用lifted_elgamal_zero_check_context
|
public static int liftedElgamalRangeContextInit(int genNums)
genNums - public static int liftedElgamalRangeContextFree()
public static byte[] liftedElgamalRangeProve(byte[][] ciphertext,
long[] msg,
int size,
int perValueBitSize,
byte[] publicKey,
byte[] privateKey,
int[] proofLen)
ciphertext - msg - size - perValueBitSize - publicKey - privateKey - proofLen - public static int liftedElgamalRangeVerify(byte[][] ciphertext,
int size,
int perValueBitSize,
byte[] publicKey,
byte[] proof,
int proofLen,
int[] verifyResult)
ciphertext - size - perValueBitSize - publicKey - proof - proofLen - public static int liftedElgamalRangeProofFree(byte[] proof)
proof - public static int liftedElgamalZeroCheckContextInit()
public static int liftedElgamalZeroCheckContextFree()
public static byte[] liftedElgamalZeroCheckProve(byte[] ciphertext,
byte[] privateKey,
int[] proofLen)
ciphertext - privateKey - proofLen - public static int liftedElgamalZeroCheckVerify(byte[] ciphertext,
byte[] proof,
int proofLen,
int[] verifyResult)
ciphertext - proof - proofLen - verifyResult - public static int liftedElgamalZeroCheckProofFree(byte[] proof)
proof - public static int liftedElgamalContractHomomorphicAdd(byte[] first,
byte[] second,
byte[] res)
first - second - res - public static int liftedElgamalContractHomomorphicSub(byte[] first,
byte[] second,
byte[] res)
first - second - res - public static int liftedElgamalContractZeroCheckVerify(byte[] proof,
int proofLen,
int[] verifyResult)
proof - proofLen - verifyResult - public static int liftedElgamalContractRangeVerify(byte[][] ciphertext,
int size,
int perValueBitSize,
byte[] publicKey,
byte[] proof,
int proofLen,
int[] verifyResult)
ciphertext - size - perValueBitSize - publicKey - proof - proofLen - verifyResult - Copyright © 2022. All rights reserved.