public class NativeRangeProof extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BLIND_SZIE |
static int |
COMMIT_SIZE |
static int |
MAX_PROOF_COMMITS |
static int |
RET_ERROR |
static int |
RET_ERROR_BAD_INPUT |
static int |
RET_ERROR_NOT_SUPPORT |
static int |
RET_NO |
static int |
RET_SUCCESS |
static int |
RET_VERIFY_FAIL |
static int |
RET_VERIFY_PASS |
static int |
RET_YES |
| 构造器和说明 |
|---|
NativeRangeProof() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
nativeBlindFactorGenerate(byte[] blind) |
static int |
nativeBlindFactorsSum(byte[] blind,
byte[][] posBlinds,
int szPos,
byte[][] negBlinds,
int szNeg) |
static int |
nativeBulletProofBatchGenerate(byte[] proof,
byte[][] blind,
long[] value,
int nCommits) |
static int |
nativeBulletProofBatchVerify(byte[] proof,
byte[][] commits,
int nCommits) |
static int |
nativeBulletProofGenerate(byte[] proof,
byte[] blind,
long value) |
static int |
nativeBulletProofVerify(byte[] proof,
byte[] commit) |
static int |
nativeGetBlindFactorLength() |
static int |
nativeGetCommitLength() |
static int |
nativeGetProofLength(int nCommits) |
static int |
nativeGetVersion() |
static int |
nativePedersenCommitAdd(byte[] commit,
byte[] commit1,
byte[] commit2) |
static int |
nativePedersenCommitGenerate(byte[] commit,
byte[] blind,
long value) |
static int |
nativePedersenCommitsSum(byte[] commit,
byte[][] posCommits,
int szPos,
byte[][] negCommits,
int szNeg) |
static int |
nativePedersenCommitsSumIsZero(byte[][] posCommits,
int szPos,
byte[][] negCommits,
int szNeg) |
static int |
nativePedersenCommitSub(byte[] commit,
byte[] commit1,
byte[] commit2) |
static int |
nativePedersenCommitVerify(byte[] commit,
byte[] blind,
long value) |
static int |
nativeRangeProofFree() |
static int |
nativeRangeProofInit() |
public static final int RET_SUCCESS
public static final int RET_VERIFY_PASS
public static final int RET_VERIFY_FAIL
public static final int RET_YES
public static final int RET_NO
public static final int RET_ERROR
public static final int RET_ERROR_BAD_INPUT
public static final int RET_ERROR_NOT_SUPPORT
public static final int BLIND_SZIE
public static final int COMMIT_SIZE
public static final int MAX_PROOF_COMMITS
public static int nativeGetBlindFactorLength()
public static int nativeGetCommitLength()
public static int nativeRangeProofInit()
public static int nativeRangeProofFree()
public static int nativeBlindFactorGenerate(byte[] blind)
public static int nativeBlindFactorsSum(byte[] blind,
byte[][] posBlinds,
int szPos,
byte[][] negBlinds,
int szNeg)
public static int nativePedersenCommitGenerate(byte[] commit,
byte[] blind,
long value)
public static int nativePedersenCommitVerify(byte[] commit,
byte[] blind,
long value)
public static int nativePedersenCommitsSumIsZero(byte[][] posCommits,
int szPos,
byte[][] negCommits,
int szNeg)
public static int nativePedersenCommitsSum(byte[] commit,
byte[][] posCommits,
int szPos,
byte[][] negCommits,
int szNeg)
public static int nativePedersenCommitAdd(byte[] commit,
byte[] commit1,
byte[] commit2)
public static int nativePedersenCommitSub(byte[] commit,
byte[] commit1,
byte[] commit2)
public static int nativeBulletProofGenerate(byte[] proof,
byte[] blind,
long value)
public static int nativeBulletProofVerify(byte[] proof,
byte[] commit)
public static int nativeBulletProofBatchGenerate(byte[] proof,
byte[][] blind,
long[] value,
int nCommits)
public static int nativeBulletProofBatchVerify(byte[] proof,
byte[][] commits,
int nCommits)
public static int nativeGetProofLength(int nCommits)
public static int nativeGetVersion()
Copyright © 2022. All rights reserved.