Documentation
¶
Index ¶
Constants ¶
View Source
const N = 64
N is number of bits in range So amount will be between 0...2^(N-1)
Variables ¶
View Source
var H = [32]byte{0x8b, 0x65, 0x59, 0x70, 0x15, 0x37, 0x99, 0xaf, 0x2a, 0xea, 0xdc, 0x9f, 0xf1, 0xad, 0xd0, 0xea, 0x6c, 0x72, 0x51, 0xd5, 0x41, 0x54, 0xcf, 0xa9, 0x2c, 0x17, 0x3a, 0x0d, 0xd3, 0x9c, 0x1f, 0x94}
H is The other basepoint for use in Pedersen Commitments H = G.HashToEC(), where G is the basepoint
View Source
var M = 1
M is the number of outputs for one bulletproof
Functions ¶
Types ¶
type BitCommitment ¶
BitCommitment will be a struct used to hold the values aL and aR
func BitCommit ¶
func BitCommit(v *big.Int) BitCommitment
BitCommit will take the value v producing aL and aR N.B. This has been specialised for N <= 64
type Proof ¶
type Proof struct {
V []pedersen.Commitment // Curve points 32 bytes
Blinders []ristretto.Scalar
A ristretto.Point // Curve point 32 bytes
S ristretto.Point // Curve point 32 bytes
T1 ristretto.Point // Curve point 32 bytes
T2 ristretto.Point // Curve point 32 bytes
IPProof *innerproduct.Proof
// contains filtered or unexported fields
}
Proof is the constructed BulletProof
Click to show internal directories.
Click to hide internal directories.