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