Documentation ¶
Index ¶
- Constants
- Variables
- func ArrayScalarToBytes(arr *[]*crypto.Scalar) ([]byte, error)
- type HybridCipherText
- type PaymentWitness
- type PaymentWitnessParam
- type Proof
- type ProofForConversion
- type ProofV1
- type ProofV2
- type RangeProof
- type RangeProofV1
- type RangeProofV2
- type SchnorrPrivateKey
- type SchnorrPublicKey
- type SchnorrSignature
Constants ¶
const ( RingSize = utils.RingSize Ed25519KeySize = crypto.Ed25519KeySize )
Variables ¶
var PedCom = crypto.PedCom
PedCom represents the parameters for the Pedersen commitment scheme.
Functions ¶
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 ProofForConversion ¶
type ProofForConversion = conversion.ConversionProof
ProofForConversion represents a Proof used in conversion transactions. (e.g. to convert UTXOs v1 into UTXOs v2).
type 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 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.