experiments

package
v0.0.0-...-e663500 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PoKE

func PoKE(base, exp, newAcc, N *big.Int)

PoKE tests the process of PoKE

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 TestPoKE

func TestPoKE()

TestPoKE tests PoKE's running time.

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

func TestRSAMembershipPreComputeDIParallel(setSize int, limit int)

TestRSAMembershipPreComputeDIParallel tests the time to pre-compute all the membership proofs of one RSA accumulator, for different set size, with single core

func TestRange

func TestRange()

TestRange tests the bit length of product with DI hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL