Documentation ¶
Index ¶
- func ProveSet(x int64, r *big.Int, p paramsSet) (proofSet, error)
- func ProveUL(x, r *big.Int, p paramsUL) (proofUL, error)
- func SetupSet(s []int64) (paramsSet, error)
- func SetupUL(u, l int64) (paramsUL, error)
- func VerifySet(proof_out *proofSet, p *paramsSet) (bool, error)
- func VerifyUL(proof_out *proofUL, p *paramsUL) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProveUL ¶
ProveUL method is used to produce the ZKRP proof that secret x belongs to the interval [0,U^L].
func SetupUL ¶
SetupUL generates the signature for the interval [0,u^l). The value of u should be roughly b/log(b), but we can choose smaller values in order to get smaller parameters, at the cost of having worse performance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.