Versions in this module Expand all Collapse all v2 v2.3.3 Oct 19, 2023 Changes in this version + func PedersenAddCommitment(commitment1, commitment2 []byte) ([]byte, error) + func PedersenAddCommitmentWithOpening(commitment1, commitment2, opening1, opening2 []byte) ([]byte, []byte, error) + func PedersenAddNum(commitment []byte, value uint64) ([]byte, error) + func PedersenAddOpening(opening1, opening2 []byte) ([]byte, error) + func PedersenCommitRandomOpening(x uint64) ([]byte, []byte, error) + func PedersenCommitSpecificOpening(x uint64, r []byte) ([]byte, error) + func PedersenMulNum(commitment1 []byte, value uint64) ([]byte, error) + func PedersenMulNumWithOpening(commitment []byte, opening []byte, value uint64) ([]byte, []byte, error) + func PedersenMulOpening(opening1 []byte, value uint64) ([]byte, error) + func PedersenNeg(commitment []byte) ([]byte, error) + func PedersenNegOpening(opening []byte) ([]byte, error) + func PedersenRNG() ([]byte, error) + func PedersenSubCommitment(commitment1, commitment2 []byte) ([]byte, error) + func PedersenSubCommitmentWithOpening(commitment1, commitment2, opening1, opening2 []byte) ([]byte, []byte, error) + func PedersenSubNum(commitment []byte, value uint64) ([]byte, error) + func PedersenSubOpening(opening1, opening2 []byte) ([]byte, error) + func PedersenVerify(commitment, opening []byte, value uint64) (bool, error) + func ProveAfterAddCommitment(x, y uint64, openingX, openingY, commitmentX, commitmentY []byte) ([]byte, []byte, []byte, error) + func ProveAfterAddNum(x, y uint64, openingX, commitmentX []byte) ([]byte, []byte, error) + func ProveAfterMulNum(x, y uint64, openingX, commitmentX []byte) ([]byte, []byte, []byte, error) + func ProveAfterSubCommitment(x, y uint64, openingX, openingY, commitmentX, commitmentY []byte) ([]byte, []byte, []byte, error) + func ProveAfterSubNum(x, y uint64, openingX, commitmentX []byte) ([]byte, []byte, error) + func ProveRandomOpening(x uint64) ([]byte, []byte, []byte, error) + func ProveSpecificOpening(x uint64, opening []byte) ([]byte, []byte, error) + func Verify(proof []byte, commitment []byte) (bool, error)