Documentation ¶
Index ¶
- func PoKE(base, exp, newAcc, N *big.Int)
- func TestBasicZKrsa()
- func TestDifferentGroupSize()
- func TestDifferentGroupingSize(setSize int)
- func TestDifferentMembership()
- func TestDifferentMembershipForDI()
- func TestDifferentMembershipForDISingleThread()
- func TestDifferentPrecomputationTableSize()
- func TestFirstLayerPercentage()
- func TestMembership()
- func TestMembershipVerify()
- func TestMultiSwapWithDifferentSize()
- func TestNotusMultiSwap(setsize, updatedSetSize uint32)
- func TestNotusParallel(setsize, updatedSetSize uint32)
- func TestPoKE()
- func TestPreComputeTableSize(setSize int)
- func TestProduct()
- func TestProduct2()
- func TestProduct3()
- func TestRSAMembershipPreCompute(setSize int)
- func TestRSAMembershipPreComputeDIParallel(setSize int, limit int)
- func TestRange()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestBasicZKrsa ¶
func TestBasicZKrsa()
TestBasicZKrsa test a naive case of zero-knowledge RSA accumulator
func TestDifferentGroupSize ¶
func TestDifferentGroupSize()
TestDifferentGroupSize tests the pre-computation time with different group size.
func TestDifferentGroupingSize ¶
func TestDifferentGroupingSize(setSize int)
TestDifferentGroupingSize tests the pre-computation time with different group size.
func TestDifferentMembership ¶
func TestDifferentMembership()
TestDifferentMembership test the RSAMembershipPreCompute time for different set size.
func TestDifferentMembershipForDI ¶
func TestDifferentMembershipForDI()
TestDifferentMembershipForDI tests RSAMembershipPreComputeDI in parallel with different set size and number of cores. Make sure you have enough cores on your test machine.
func TestDifferentMembershipForDISingleThread ¶
func TestDifferentMembershipForDISingleThread()
TestDifferentMembershipForDISingleThread tests the membership pre-computation time under different number of users with single core
func TestDifferentPrecomputationTableSize ¶
func TestDifferentPrecomputationTableSize()
TestDifferentPrecomputationTableSize tests the running time with different table size.
func TestFirstLayerPercentage ¶
func TestFirstLayerPercentage()
TestFirstLayerPercentage tests the first layer of divide-and-conquer
func TestMembership ¶
func TestMembership()
TestMembership tests the running time to generate a membership proof without precomputation
func TestMembershipVerify ¶
func TestMembershipVerify()
TestMembershipVerify test the time to verify a membership proof
func TestMultiSwapWithDifferentSize ¶
func TestMultiSwapWithDifferentSize()
TestMultiSwapWithDifferentSize tests the ZK-MultiSwap under different swap size. This tests requires large memory!
func TestNotusMultiSwap ¶
func TestNotusMultiSwap(setsize, updatedSetSize uint32)
TestNotusMultiSwap tests the Notus system and zk-MultiSwap "almost" in single thread
func TestNotusParallel ¶
func TestNotusParallel(setsize, updatedSetSize uint32)
TestNotusParallel test Notus with at most 32 cores
func TestPreComputeTableSize ¶
func TestPreComputeTableSize(setSize int)
TestPreComputeTableSize tests the time to pre-compute all the membership proofs of one RSA accumulator, for different set size, with single core
func TestProduct ¶
func TestProduct()
TestProduct test different ways to calculate product of a large set
func TestProduct2 ¶
func TestProduct2()
TestProduct2 test different ways to calculate product of a large set
func TestProduct3 ¶
func TestProduct3()
TestProduct3 test different ways to calculate product of a large set
func TestRSAMembershipPreCompute ¶
func TestRSAMembershipPreCompute(setSize int)
TestRSAMembershipPreCompute tests the time to pre-compute all the membership proofs of one RSA accumulator, for different set size, with single core
func TestRSAMembershipPreComputeDIParallel ¶
TestRSAMembershipPreComputeDIParallel tests the time to pre-compute all the membership proofs of one RSA accumulator, for different set size, with single core
Types ¶
This section is empty.