privacy

package
v1.0.1-beta.0...-9a7f616 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	RingSize       = utils.RingSize
	Ed25519KeySize = crypto.Ed25519KeySize
)

Variables

View Source
var PedCom = crypto.PedCom

PedCom represents the parameters for the Pedersen commitment scheme.

Functions

func ArrayScalarToBytes

func ArrayScalarToBytes(arr *[]*crypto.Scalar) ([]byte, error)

ArrayScalarToBytes parses a slice of scalars into a flatten slice of bytes.

Types

type HybridCipherText

type HybridCipherText = hybridencryption.HybridCipherText

HybridCipherText represents a ciphertext in the hybrid encryption scheme.

type PaymentWitness

type PaymentWitness = zkp.PaymentWitness

PaymentWitness is a witness used to construct a ProofV1.

type PaymentWitnessParam

type PaymentWitnessParam = zkp.PaymentWitnessParam

PaymentWitnessParam is used to initialize a PaymentWitness.

type Proof

type Proof = proof.Proof

Proof represents a payment proof.

type ProofForConversion

type ProofForConversion = conversion.ConversionProof

ProofForConversion represents a Proof used in conversion transactions. (e.g. to convert UTXOs v1 into UTXOs v2).

type ProofV1

type ProofV1 = zkp.ProofV1

ProofV1 represents a Proof of version 1 used in transactions v1.

type ProofV2

type ProofV2 = v2.ProofV2

ProofV2 represents a Proof of version 2 used in transactions v2.

func ProveV2

func ProveV2(inputCoins []coin.PlainCoin, outputCoins []*coin.CoinV2, sharedSecrets []*crypto.Point, hasPrivacy bool, paymentInfo []*key.PaymentInfo) (*ProofV2, error)

ProveV2 returns a ProofV2 based on the given input coins, output coins, shared secrets, etc. It is usually used in constructing a transaction of version 2.

type RangeProof

type RangeProof = range_proof.RangeProof

RangeProof represents a range proof.

type RangeProofV1

type RangeProofV1 = bulletProofsV1.RangeProof

RangeProofV1 represents a RangeProof of version 1 used in transactions v1.

type RangeProofV2

type RangeProofV2 = bulletproofs.RangeProof

RangeProofV2 represents a RangeProof of version 2 used in transactions v2.

type SchnorrPrivateKey

type SchnorrPrivateKey = schnorr.SchnorrPrivateKey

SchnorrPrivateKey is a private key used in the Schnorr signature scheme.

type SchnorrPublicKey

type SchnorrPublicKey = schnorr.SchnorrPublicKey

SchnorrPublicKey is a public key used in the Schnorr signature scheme.

type SchnorrSignature

type SchnorrSignature = schnorr.SchnSignature

SchnorrSignature represents a Schnorr signature.

Jump to

Keyboard shortcuts

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