Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSecretForCurves ¶
GenerateSecretForCurves generates a secret value that has a corresponding commitment on both curves.
Types ¶
type Proof ¶
type Proof struct {
CommitmentA, CommitmentB Point
// contains filtered or unexported fields
}
Proof represents a DLEq proof and commitment to the witness.
func NewProof ¶
NewProof returns a new proof for the given secret on the given curves. The witness x must be in little-endian and smaller than the minimum order of the two curves.
func (*Proof) Deserialize ¶
Deserialize decodes the proof for the given curves. The curves must match those passed into `NewProof`.
Click to show internal directories.
Click to hide internal directories.